@@ -9,15 +9,15 @@ |
||
9 | 9 | |
10 | 10 | function smartobject_plugin_smartpartner() |
11 | 11 | { |
12 | - $pluginInfo = array(); |
|
12 | + $pluginInfo = array(); |
|
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_smartsection() |
11 | 11 | { |
12 | - $pluginInfo = array(); |
|
12 | + $pluginInfo = array(); |
|
13 | 13 | |
14 | - $pluginInfo['items']['item']['caption'] = 'Article'; |
|
15 | - $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
16 | - $pluginInfo['items']['item']['request'] = 'itemid'; |
|
14 | + $pluginInfo['items']['item']['caption'] = 'Article'; |
|
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,12 +9,12 @@ |
||
9 | 9 | |
10 | 10 | function smartobject_plugin_xcgal() |
11 | 11 | { |
12 | - global $xoopsConfig; |
|
12 | + global $xoopsConfig; |
|
13 | 13 | |
14 | - $pluginInfo = array(); |
|
15 | - $pluginInfo['items']['album']['caption'] = 'Album'; |
|
16 | - $pluginInfo['items']['item']['url'] = 'thumbnails.php?album=%u'; |
|
17 | - $pluginInfo['items']['item']['request'] = 'album'; |
|
14 | + $pluginInfo = array(); |
|
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 | } |
@@ -9,15 +9,15 @@ |
||
9 | 9 | |
10 | 10 | function smartobject_plugin_smartshop() |
11 | 11 | { |
12 | - $pluginInfo = array(); |
|
12 | + $pluginInfo = array(); |
|
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 | } |
@@ -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 | /** |
@@ -17,13 +17,13 @@ |
||
17 | 17 | $smartobjectCurrencyHandler = xoops_getModuleHandler('currency', 'smartobject'); |
18 | 18 | |
19 | 19 | if (!$smartobjectCurrenciesObj) { |
20 | - $smartobjectCurrenciesObj = $smartobjectCurrencyHandler->getCurrencies(); |
|
20 | + $smartobjectCurrenciesObj = $smartobjectCurrencyHandler->getCurrencies(); |
|
21 | 21 | } |
22 | 22 | if (!$smartobjectCurrenciesArray) { |
23 | - foreach ($smartobjectCurrenciesObj as $currencyid => $currencyObj) { |
|
24 | - if ($currencyObj->getVar('default_currency', 'e')) { |
|
25 | - $smartobjectDefaultCurrency = $currencyObj; |
|
26 | - } |
|
27 | - $smartobjectCurrenciesArray[$currencyid] = $currencyObj->getCode(); |
|
28 | - } |
|
23 | + foreach ($smartobjectCurrenciesObj as $currencyid => $currencyObj) { |
|
24 | + if ($currencyObj->getVar('default_currency', 'e')) { |
|
25 | + $smartobjectDefaultCurrency = $currencyObj; |
|
26 | + } |
|
27 | + $smartobjectCurrenciesArray[$currencyid] = $currencyObj->getCode(); |
|
28 | + } |
|
29 | 29 | } |
@@ -10,45 +10,45 @@ |
||
10 | 10 | |
11 | 11 | class SmartTip |
12 | 12 | { |
13 | - public $id; |
|
14 | - public $caption; |
|
15 | - public $message; |
|
16 | - public $visible; |
|
17 | - public $_tpl; |
|
13 | + public $id; |
|
14 | + public $caption; |
|
15 | + public $message; |
|
16 | + public $visible; |
|
17 | + public $_tpl; |
|
18 | 18 | |
19 | - /** |
|
20 | - * SmartTip constructor. |
|
21 | - * @param $id |
|
22 | - * @param $caption |
|
23 | - * @param $message |
|
24 | - * @param bool $visible |
|
25 | - */ |
|
26 | - public function __construct($id, $caption, $message, $visible = false) |
|
27 | - { |
|
28 | - $this->id = $id; |
|
29 | - $this->caption = $caption; |
|
30 | - $this->message = $message; |
|
31 | - $this->visible = $visible; |
|
32 | - $this->_tpl = new XoopsTpl(); |
|
33 | - } |
|
19 | + /** |
|
20 | + * SmartTip constructor. |
|
21 | + * @param $id |
|
22 | + * @param $caption |
|
23 | + * @param $message |
|
24 | + * @param bool $visible |
|
25 | + */ |
|
26 | + public function __construct($id, $caption, $message, $visible = false) |
|
27 | + { |
|
28 | + $this->id = $id; |
|
29 | + $this->caption = $caption; |
|
30 | + $this->message = $message; |
|
31 | + $this->visible = $visible; |
|
32 | + $this->_tpl = new XoopsTpl(); |
|
33 | + } |
|
34 | 34 | |
35 | - /** |
|
36 | - * @param bool $outputNow |
|
37 | - * @return mixed|string|void |
|
38 | - */ |
|
39 | - public function render($outputNow = true) |
|
40 | - { |
|
41 | - $aTip = array( |
|
42 | - 'id' => $this->id, |
|
43 | - 'caption' => $this->caption, |
|
44 | - 'message' => $this->message, |
|
45 | - 'visible' => $this->visible ? 'block' : 'none' |
|
46 | - ); |
|
47 | - $this->_tpl->assign('tip', $aTip); |
|
48 | - if ($outputNow) { |
|
49 | - $this->_tpl->display('db:smartobject_tip.tpl'); |
|
50 | - } else { |
|
51 | - return $this->_tpl->fetch('db:smartobject_tip.tpl'); |
|
52 | - } |
|
53 | - } |
|
35 | + /** |
|
36 | + * @param bool $outputNow |
|
37 | + * @return mixed|string|void |
|
38 | + */ |
|
39 | + public function render($outputNow = true) |
|
40 | + { |
|
41 | + $aTip = array( |
|
42 | + 'id' => $this->id, |
|
43 | + 'caption' => $this->caption, |
|
44 | + 'message' => $this->message, |
|
45 | + 'visible' => $this->visible ? 'block' : 'none' |
|
46 | + ); |
|
47 | + $this->_tpl->assign('tip', $aTip); |
|
48 | + if ($outputNow) { |
|
49 | + $this->_tpl->display('db:smartobject_tip.tpl'); |
|
50 | + } else { |
|
51 | + return $this->_tpl->fetch('db:smartobject_tip.tpl'); |
|
52 | + } |
|
53 | + } |
|
54 | 54 | } |
@@ -24,44 +24,44 @@ |
||
24 | 24 | */ |
25 | 25 | class SmartSeoObject extends SmartObject |
26 | 26 | { |
27 | - /** |
|
28 | - * SmartSeoObject constructor. |
|
29 | - */ |
|
30 | - public function __construct() |
|
31 | - { |
|
32 | - $this->initCommonVar('meta_keywords'); |
|
33 | - $this->initCommonVar('meta_description'); |
|
34 | - $this->initCommonVar('short_url'); |
|
35 | - $this->seoEnabled = true; |
|
36 | - } |
|
27 | + /** |
|
28 | + * SmartSeoObject constructor. |
|
29 | + */ |
|
30 | + public function __construct() |
|
31 | + { |
|
32 | + $this->initCommonVar('meta_keywords'); |
|
33 | + $this->initCommonVar('meta_description'); |
|
34 | + $this->initCommonVar('short_url'); |
|
35 | + $this->seoEnabled = true; |
|
36 | + } |
|
37 | 37 | |
38 | - /** |
|
39 | - * Return the value of the short_url field of this object |
|
40 | - * |
|
41 | - * @return string |
|
42 | - */ |
|
43 | - public function short_url() |
|
44 | - { |
|
45 | - return $this->getVar('short_url'); |
|
46 | - } |
|
38 | + /** |
|
39 | + * Return the value of the short_url field of this object |
|
40 | + * |
|
41 | + * @return string |
|
42 | + */ |
|
43 | + public function short_url() |
|
44 | + { |
|
45 | + return $this->getVar('short_url'); |
|
46 | + } |
|
47 | 47 | |
48 | - /** |
|
49 | - * Return the value of the meta_keywords field of this object |
|
50 | - * |
|
51 | - * @return string |
|
52 | - */ |
|
53 | - public function meta_keywords() |
|
54 | - { |
|
55 | - return $this->getVar('meta_keywords'); |
|
56 | - } |
|
48 | + /** |
|
49 | + * Return the value of the meta_keywords field of this object |
|
50 | + * |
|
51 | + * @return string |
|
52 | + */ |
|
53 | + public function meta_keywords() |
|
54 | + { |
|
55 | + return $this->getVar('meta_keywords'); |
|
56 | + } |
|
57 | 57 | |
58 | - /** |
|
59 | - * Return the value of the meta_description field of this object |
|
60 | - * |
|
61 | - * @return string |
|
62 | - */ |
|
63 | - public function meta_description() |
|
64 | - { |
|
65 | - return $this->getVar('meta_description'); |
|
66 | - } |
|
58 | + /** |
|
59 | + * Return the value of the meta_description field of this object |
|
60 | + * |
|
61 | + * @return string |
|
62 | + */ |
|
63 | + public function meta_description() |
|
64 | + { |
|
65 | + return $this->getVar('meta_description'); |
|
66 | + } |
|
67 | 67 | } |