PHP Classes

File: config/imageconfig.php

Recommend this page to a friend!
  Classes of Goffy G   wgGallery   config/imageconfig.php   Download  
File: config/imageconfig.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: wgGallery
Image gallery module for XOOPS CMS
Author: By
Last change:
Date: 3 years ago
Size: 1,441 bytes
 

Contents

Class file image Download
<?php

$moduleDirName
= basename(dirname(__DIR__));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);

// extra module configs
$modversion['config'][] = [
   
'name' => 'imageConfigs',
   
'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG',
   
'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC',
   
'formtype' => 'line_break',
   
'valuetype' => 'textbox',
   
'default' => 'head',
];

$modversion['config'][] = [
   
'name' => 'imageWidth',
   
'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH',
   
'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC',
   
'formtype' => 'textbox',
   
'valuetype' => 'int',
   
'default' => 1200,
];
// =1024/16

$modversion['config'][] = [
   
'name' => 'imageHeight',
   
'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT',
   
'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC',
   
'formtype' => 'textbox',
   
'valuetype' => 'int',
   
'default' => 800,
];
// =768/16

$modversion['config'][] = [
   
'name' => 'imageUploadPath',
   
'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH',
   
'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC',
   
'formtype' => 'textbox',
   
'valuetype' => 'text',
   
'default' => 'uploads/' . $modversion['dirname'] . '/images',
];