@@ -2,5 +2,5 @@ |
||
| 2 | 2 | |
| 3 | 3 | function smarthook_footer_start() |
| 4 | 4 | { |
| 5 | - // code... |
|
| 5 | + // code... |
|
| 6 | 6 | } |
@@ -14,22 +14,22 @@ |
||
| 14 | 14 | * SmartObject library path |
| 15 | 15 | */ |
| 16 | 16 | if (!defined('SMARTOBJECT_URL')) { |
| 17 | - define('SMARTOBJECT_URL', XOOPS_URL . '/modules/smartobject/'); |
|
| 17 | + define('SMARTOBJECT_URL', XOOPS_URL . '/modules/smartobject/'); |
|
| 18 | 18 | } |
| 19 | 19 | if (!defined('SMARTOBJECT_ROOT_PATH')) { |
| 20 | - define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/smartobject/'); |
|
| 20 | + define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/smartobject/'); |
|
| 21 | 21 | } |
| 22 | 22 | if (!defined('SMARTOBJECT_IMAGES_URL')) { |
| 23 | - define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL . 'assets/images/'); |
|
| 23 | + define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL . 'assets/images/'); |
|
| 24 | 24 | } |
| 25 | 25 | if (!defined('SMARTOBJECT_IMAGES_ROOT_PATH')) { |
| 26 | - define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/'); |
|
| 26 | + define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/'); |
|
| 27 | 27 | } |
| 28 | 28 | if (!defined('SMARTOBJECT_IMAGES_ACTIONS_URL')) { |
| 29 | - define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL . 'assets/images/actions/'); |
|
| 29 | + define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL . 'assets/images/actions/'); |
|
| 30 | 30 | } |
| 31 | 31 | if (!defined('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH')) { |
| 32 | - define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/actions/'); |
|
| 32 | + define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/actions/'); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -14,16 +14,16 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | if (!class_exists('Projax')) { |
| 17 | - include __DIR__ . '/classes/JavaScript.php'; |
|
| 18 | - include __DIR__ . '/classes/Prototype.php'; |
|
| 19 | - include __DIR__ . '/classes/Scriptaculous.php'; |
|
| 17 | + include __DIR__ . '/classes/JavaScript.php'; |
|
| 18 | + include __DIR__ . '/classes/Prototype.php'; |
|
| 19 | + include __DIR__ . '/classes/Scriptaculous.php'; |
|
| 20 | 20 | |
| 21 | - // For $projax = new Projax(); |
|
| 21 | + // For $projax = new Projax(); |
|
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * Class projax |
|
| 25 | - */ |
|
| 26 | - class projax extends Scriptaculous |
|
| 27 | - { |
|
| 28 | - } |
|
| 23 | + /** |
|
| 24 | + * Class projax |
|
| 25 | + */ |
|
| 26 | + class projax extends Scriptaculous |
|
| 27 | + { |
|
| 28 | + } |
|
| 29 | 29 | } |
@@ -66,10 +66,10 @@ discard block |
||
| 66 | 66 | global $xoopsConfig; |
| 67 | 67 | $common_file = XOOPS_ROOT_PATH . '/modules/smartobject/language/' . $xoopsConfig['language'] . '/common.php'; |
| 68 | 68 | if (file_exists($common_file)) { |
| 69 | - $flag_common = true; |
|
| 70 | - require_once $common_file; |
|
| 69 | + $flag_common = true; |
|
| 70 | + require_once $common_file; |
|
| 71 | 71 | } else { |
| 72 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/language/english/common.php'; |
|
| 72 | + require_once XOOPS_ROOT_PATH . '/modules/smartobject/language/english/common.php'; |
|
| 73 | 73 | } |
| 74 | 74 | // ----- |
| 75 | 75 | |
@@ -105,10 +105,10 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | // ------------------- Help files ------------------- // |
| 107 | 107 | $modversion['helpsection'] = [ |
| 108 | - ['name' => _MI_SOBJECT_OVERVIEW, 'link' => 'page=help'], |
|
| 109 | - ['name' => _MI_SOBJECT_DISCLAIMER, 'link' => 'page=disclaimer'], |
|
| 110 | - ['name' => _MI_SOBJECT_LICENSE, 'link' => 'page=license'], |
|
| 111 | - ['name' => _MI_SOBJECT_SUPPORT, 'link' => 'page=support'], |
|
| 108 | + ['name' => _MI_SOBJECT_OVERVIEW, 'link' => 'page=help'], |
|
| 109 | + ['name' => _MI_SOBJECT_DISCLAIMER, 'link' => 'page=disclaimer'], |
|
| 110 | + ['name' => _MI_SOBJECT_LICENSE, 'link' => 'page=license'], |
|
| 111 | + ['name' => _MI_SOBJECT_SUPPORT, 'link' => 'page=support'], |
|
| 112 | 112 | ]; |
| 113 | 113 | |
| 114 | 114 | |
@@ -152,16 +152,16 @@ |
||
| 152 | 152 | define('_CO_SOBJECT_UPLOAD_IMAGE', 'Upload a new image:'); |
| 153 | 153 | define('_CO_SOBJECT_VERSION_HISTORY', 'Version History'); |
| 154 | 154 | define( |
| 155 | - '_CO_SOBJECT_WARNING_BETA', |
|
| 156 | - 'This module comes as is, without any guarantees whatsoever. This module is BETA, meaning it is still under active development. This release is meant for <b>testing purposes only</b> and we <b>strongly</b> recommend that you do not use it on a live website or in a production environment.' |
|
| 155 | + '_CO_SOBJECT_WARNING_BETA', |
|
| 156 | + 'This module comes as is, without any guarantees whatsoever. This module is BETA, meaning it is still under active development. This release is meant for <b>testing purposes only</b> and we <b>strongly</b> recommend that you do not use it on a live website or in a production environment.' |
|
| 157 | 157 | ); |
| 158 | 158 | define( |
| 159 | - '_CO_SOBJECT_WARNING_FINAL', |
|
| 160 | - 'This module comes as is, without any guarantees whatsoever. Although this module is not beta, it is still under active development. This release can be used in a live website or a production environment, but its use is under your own responsibility, which means the author is not responsible.' |
|
| 159 | + '_CO_SOBJECT_WARNING_FINAL', |
|
| 160 | + 'This module comes as is, without any guarantees whatsoever. Although this module is not beta, it is still under active development. This release can be used in a live website or a production environment, but its use is under your own responsibility, which means the author is not responsible.' |
|
| 161 | 161 | ); |
| 162 | 162 | define( |
| 163 | - '_CO_SOBJECT_WARNING_RC', |
|
| 164 | - 'This module comes as is, without any guarantees whatsoever. This module is a Release Candidate and should not be used on a production web site. The module is still under active development and its use is under your own responsibility, which means the author is not responsible.' |
|
| 163 | + '_CO_SOBJECT_WARNING_RC', |
|
| 164 | + 'This module comes as is, without any guarantees whatsoever. This module is a Release Candidate and should not be used on a production web site. The module is still under active development and its use is under your own responsibility, which means the author is not responsible.' |
|
| 165 | 165 | ); |
| 166 | 166 | define('_CO_SOBJECT_WEIGHT_FORM_CAPTION', 'Weight'); |
| 167 | 167 | define('_CO_SOBJECT_WEIGHT_FORM_DSC', ''); |
@@ -9,15 +9,15 @@ |
||
| 9 | 9 | |
| 10 | 10 | function smartobject_plugin_smartpartner() |
| 11 | 11 | { |
| 12 | - $pluginInfo = []; |
|
| 12 | + $pluginInfo = []; |
|
| 13 | 13 | |
| 14 | - $pluginInfo['items']['partner']['caption'] = 'Partner'; |
|
| 15 | - $pluginInfo['items']['partner']['url'] = 'partner.php?partnerid=%u'; |
|
| 16 | - $pluginInfo['items']['partner']['request'] = 'partnerid'; |
|
| 14 | + $pluginInfo['items']['partner']['caption'] = 'Partner'; |
|
| 15 | + $pluginInfo['items']['partner']['url'] = 'partner.php?partnerid=%u'; |
|
| 16 | + $pluginInfo['items']['partner']['request'] = 'partnerid'; |
|
| 17 | 17 | |
| 18 | - $pluginInfo['items']['category']['caption'] = 'Category'; |
|
| 19 | - $pluginInfo['items']['category']['url'] = 'index.php?view_category_id=%u'; |
|
| 20 | - $pluginInfo['items']['category']['request'] = 'view_category_id'; |
|
| 18 | + $pluginInfo['items']['category']['caption'] = 'Category'; |
|
| 19 | + $pluginInfo['items']['category']['url'] = 'index.php?view_category_id=%u'; |
|
| 20 | + $pluginInfo['items']['category']['request'] = 'view_category_id'; |
|
| 21 | 21 | |
| 22 | - return $pluginInfo; |
|
| 22 | + return $pluginInfo; |
|
| 23 | 23 | } |
@@ -9,15 +9,15 @@ |
||
| 9 | 9 | |
| 10 | 10 | function smartobject_plugin_smartshop() |
| 11 | 11 | { |
| 12 | - $pluginInfo = []; |
|
| 12 | + $pluginInfo = []; |
|
| 13 | 13 | |
| 14 | - $pluginInfo['items']['item']['caption'] = 'Item'; |
|
| 15 | - $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
| 16 | - $pluginInfo['items']['item']['request'] = 'itemid'; |
|
| 14 | + $pluginInfo['items']['item']['caption'] = 'Item'; |
|
| 15 | + $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
| 16 | + $pluginInfo['items']['item']['request'] = 'itemid'; |
|
| 17 | 17 | |
| 18 | - $pluginInfo['items']['category']['caption'] = 'Category'; |
|
| 19 | - $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
| 20 | - $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
| 18 | + $pluginInfo['items']['category']['caption'] = 'Category'; |
|
| 19 | + $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
| 20 | + $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
| 21 | 21 | |
| 22 | - return $pluginInfo; |
|
| 22 | + return $pluginInfo; |
|
| 23 | 23 | } |
@@ -9,17 +9,17 @@ |
||
| 9 | 9 | |
| 10 | 10 | function smartobject_plugin_smartband() |
| 11 | 11 | { |
| 12 | - global $xoopsConfig; |
|
| 13 | - require_once XOOPS_ROOT_PATH . '/modules/smartband/language/' . $xoopsConfig['language'] . '/main.php'; |
|
| 12 | + global $xoopsConfig; |
|
| 13 | + require_once XOOPS_ROOT_PATH . '/modules/smartband/language/' . $xoopsConfig['language'] . '/main.php'; |
|
| 14 | 14 | |
| 15 | - $pluginInfo = []; |
|
| 16 | - $pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP; |
|
| 17 | - $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
| 18 | - $pluginInfo['items']['item']['request'] = 'itemid'; |
|
| 15 | + $pluginInfo = []; |
|
| 16 | + $pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP; |
|
| 17 | + $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
| 18 | + $pluginInfo['items']['item']['request'] = 'itemid'; |
|
| 19 | 19 | |
| 20 | - $pluginInfo['items']['category']['caption'] = _MD_ARTALBUM_CATEGORY; |
|
| 21 | - $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
| 22 | - $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
| 20 | + $pluginInfo['items']['category']['caption'] = _MD_ARTALBUM_CATEGORY; |
|
| 21 | + $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
| 22 | + $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
| 23 | 23 | |
| 24 | - return $pluginInfo; |
|
| 24 | + return $pluginInfo; |
|
| 25 | 25 | } |
@@ -9,12 +9,12 @@ |
||
| 9 | 9 | |
| 10 | 10 | function smartobject_plugin_xcgal() |
| 11 | 11 | { |
| 12 | - global $xoopsConfig; |
|
| 12 | + global $xoopsConfig; |
|
| 13 | 13 | |
| 14 | - $pluginInfo = []; |
|
| 15 | - $pluginInfo['items']['album']['caption'] = 'Album'; |
|
| 16 | - $pluginInfo['items']['item']['url'] = 'thumbnails.php?album=%u'; |
|
| 17 | - $pluginInfo['items']['item']['request'] = 'album'; |
|
| 14 | + $pluginInfo = []; |
|
| 15 | + $pluginInfo['items']['album']['caption'] = 'Album'; |
|
| 16 | + $pluginInfo['items']['item']['url'] = 'thumbnails.php?album=%u'; |
|
| 17 | + $pluginInfo['items']['item']['request'] = 'album'; |
|
| 18 | 18 | |
| 19 | - return $pluginInfo; |
|
| 19 | + return $pluginInfo; |
|
| 20 | 20 | } |