@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | if (!defined("XOOPS_ROOT_PATH")) { |
11 | - die("XOOPS root path not defined"); |
|
11 | + die("XOOPS root path not defined"); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | /** |
@@ -18,53 +18,53 @@ discard block |
||
18 | 18 | |
19 | 19 | class SmartPrinterFriendly |
20 | 20 | { |
21 | - var $_title; |
|
22 | - var $_dsc; |
|
23 | - var $_content; |
|
24 | - var $_tpl; |
|
25 | - var $_pageTitle = false; |
|
26 | - var $_width = 680; |
|
27 | - |
|
28 | - function SmartPrinterFriendly($content, $title=false, $dsc=false) |
|
29 | - { |
|
30 | - $this->_title = $title; |
|
31 | - $this->_dsc = $dsc; |
|
32 | - $this->_content = $content; |
|
33 | - } |
|
34 | - |
|
35 | - function render() |
|
36 | - { |
|
37 | - /** |
|
38 | - * @todo move the output to a template |
|
39 | - * @todo make the output XHTML compliant |
|
40 | - */ |
|
41 | - |
|
42 | - include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
43 | - |
|
44 | - $this->_tpl = new XoopsTpl(); |
|
45 | - |
|
46 | - $this->_tpl->assign('smartobject_print_pageTitle', $this->_pageTitle ? $this->_pageTitle : $this->_title); |
|
47 | - $this->_tpl->assign('smartobject_print_title', $this->_title); |
|
48 | - $this->_tpl->assign('smartobject_print_dsc', $this->_dsc); |
|
49 | - $this->_tpl->assign('smartobject_print_content', $this->_content); |
|
50 | - $this->_tpl->assign('smartobject_print_width', $this->_width); |
|
51 | - |
|
52 | - $current_urls = smart_getCurrentUrls(); |
|
53 | - $current_url = $current_urls['full']; |
|
54 | - |
|
55 | - $this->_tpl->assign('smartobject_print_currenturl', $current_url); |
|
56 | - $this->_tpl->assign('smartobject_print_url', $this->url); |
|
57 | - |
|
58 | - $this->_tpl->display( 'db:smartobject_print.html' ); |
|
59 | - } |
|
60 | - |
|
61 | - function setPageTitle($text) { |
|
62 | - $this->_pageTitle = $text; |
|
63 | - } |
|
64 | - |
|
65 | - function setWidth($width) { |
|
66 | - $this->_width = $width; |
|
67 | - } |
|
21 | + var $_title; |
|
22 | + var $_dsc; |
|
23 | + var $_content; |
|
24 | + var $_tpl; |
|
25 | + var $_pageTitle = false; |
|
26 | + var $_width = 680; |
|
27 | + |
|
28 | + function SmartPrinterFriendly($content, $title=false, $dsc=false) |
|
29 | + { |
|
30 | + $this->_title = $title; |
|
31 | + $this->_dsc = $dsc; |
|
32 | + $this->_content = $content; |
|
33 | + } |
|
34 | + |
|
35 | + function render() |
|
36 | + { |
|
37 | + /** |
|
38 | + * @todo move the output to a template |
|
39 | + * @todo make the output XHTML compliant |
|
40 | + */ |
|
41 | + |
|
42 | + include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
43 | + |
|
44 | + $this->_tpl = new XoopsTpl(); |
|
45 | + |
|
46 | + $this->_tpl->assign('smartobject_print_pageTitle', $this->_pageTitle ? $this->_pageTitle : $this->_title); |
|
47 | + $this->_tpl->assign('smartobject_print_title', $this->_title); |
|
48 | + $this->_tpl->assign('smartobject_print_dsc', $this->_dsc); |
|
49 | + $this->_tpl->assign('smartobject_print_content', $this->_content); |
|
50 | + $this->_tpl->assign('smartobject_print_width', $this->_width); |
|
51 | + |
|
52 | + $current_urls = smart_getCurrentUrls(); |
|
53 | + $current_url = $current_urls['full']; |
|
54 | + |
|
55 | + $this->_tpl->assign('smartobject_print_currenturl', $current_url); |
|
56 | + $this->_tpl->assign('smartobject_print_url', $this->url); |
|
57 | + |
|
58 | + $this->_tpl->display( 'db:smartobject_print.html' ); |
|
59 | + } |
|
60 | + |
|
61 | + function setPageTitle($text) { |
|
62 | + $this->_pageTitle = $text; |
|
63 | + } |
|
64 | + |
|
65 | + function setWidth($width) { |
|
66 | + $this->_width = $width; |
|
67 | + } |
|
68 | 68 | |
69 | 69 | } |
70 | 70 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | var $_pageTitle = false; |
26 | 26 | var $_width = 680; |
27 | 27 | |
28 | - function SmartPrinterFriendly($content, $title=false, $dsc=false) |
|
28 | + function SmartPrinterFriendly($content, $title = false, $dsc = false) |
|
29 | 29 | { |
30 | 30 | $this->_title = $title; |
31 | 31 | $this->_dsc = $dsc; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $this->_tpl->assign('smartobject_print_currenturl', $current_url); |
56 | 56 | $this->_tpl->assign('smartobject_print_url', $this->url); |
57 | 57 | |
58 | - $this->_tpl->display( 'db:smartobject_print.html' ); |
|
58 | + $this->_tpl->display('db:smartobject_print.html'); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | function setPageTitle($text) { |
@@ -16,49 +16,49 @@ |
||
16 | 16 | } |
17 | 17 | include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobject.php"; |
18 | 18 | /** |
19 | - * SmartObject base SEO-enabled class |
|
20 | - * |
|
21 | - * Base class representing a single SmartObject with "search engine optimisation" capabilities |
|
22 | - * |
|
23 | - * @package SmartObject |
|
24 | - * @author marcan <[email protected]> |
|
25 | - * @link http://smartfactory.ca The SmartFactory |
|
26 | - */ |
|
19 | + * SmartObject base SEO-enabled class |
|
20 | + * |
|
21 | + * Base class representing a single SmartObject with "search engine optimisation" capabilities |
|
22 | + * |
|
23 | + * @package SmartObject |
|
24 | + * @author marcan <[email protected]> |
|
25 | + * @link http://smartfactory.ca The SmartFactory |
|
26 | + */ |
|
27 | 27 | class SmartSeoObject extends SmartObject { |
28 | - function SmartSeoObject() { |
|
29 | - $this->initCommonVar("meta_keywords"); |
|
30 | - $this->initCommonVar("meta_description"); |
|
31 | - $this->initCommonVar("short_url"); |
|
32 | - $this->seoEnabled = true; |
|
33 | - } |
|
28 | + function SmartSeoObject() { |
|
29 | + $this->initCommonVar("meta_keywords"); |
|
30 | + $this->initCommonVar("meta_description"); |
|
31 | + $this->initCommonVar("short_url"); |
|
32 | + $this->seoEnabled = true; |
|
33 | + } |
|
34 | 34 | |
35 | - /** |
|
36 | - * Return the value of the short_url field of this object |
|
37 | - * |
|
38 | - * @return string |
|
39 | - */ |
|
40 | - function short_url() |
|
41 | - { |
|
42 | - return $this->getVar('short_url'); |
|
43 | - } |
|
35 | + /** |
|
36 | + * Return the value of the short_url field of this object |
|
37 | + * |
|
38 | + * @return string |
|
39 | + */ |
|
40 | + function short_url() |
|
41 | + { |
|
42 | + return $this->getVar('short_url'); |
|
43 | + } |
|
44 | 44 | |
45 | - /** |
|
46 | - * Return the value of the meta_keywords field of this object |
|
47 | - * |
|
48 | - * @return string |
|
49 | - */ |
|
50 | - function meta_keywords() |
|
51 | - { |
|
52 | - return $this->getVar('meta_keywords'); |
|
53 | - } |
|
45 | + /** |
|
46 | + * Return the value of the meta_keywords field of this object |
|
47 | + * |
|
48 | + * @return string |
|
49 | + */ |
|
50 | + function meta_keywords() |
|
51 | + { |
|
52 | + return $this->getVar('meta_keywords'); |
|
53 | + } |
|
54 | 54 | |
55 | - /** |
|
56 | - * Return the value of the meta_description field of this object |
|
57 | - * |
|
58 | - * @return string |
|
59 | - */ |
|
60 | - function meta_description() |
|
61 | - { |
|
62 | - return $this->getVar('meta_description'); |
|
63 | - } |
|
55 | + /** |
|
56 | + * Return the value of the meta_description field of this object |
|
57 | + * |
|
58 | + * @return string |
|
59 | + */ |
|
60 | + function meta_description() |
|
61 | + { |
|
62 | + return $this->getVar('meta_description'); |
|
63 | + } |
|
64 | 64 | } |
65 | 65 | \ No newline at end of file |
@@ -14,7 +14,7 @@ |
||
14 | 14 | if (!defined("XOOPS_ROOT_PATH")) { |
15 | 15 | die("XOOPS root path not defined"); |
16 | 16 | } |
17 | -include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobject.php"; |
|
17 | +include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobject.php"; |
|
18 | 18 | /** |
19 | 19 | * SmartObject base SEO-enabled class |
20 | 20 | * |
@@ -3,8 +3,7 @@ discard block |
||
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Id: xoops_version.php 3439 2008-07-05 11:40:55Z malanciault |
6 | - |
|
7 | -* Module: SmartContent |
|
6 | + * Module: SmartContent |
|
8 | 7 | * Author: The SmartFactory <www.smartfactory.ca> |
9 | 8 | * Licence: GNU |
10 | 9 | */ |
@@ -45,8 +44,8 @@ discard block |
||
45 | 44 | $modversion['min_xoops'] = "2.5.6"; |
46 | 45 | $modversion['min_admin'] = '1.1'; |
47 | 46 | $modversion['min_db'] = array( |
48 | - 'mysql' => '5.0.7', |
|
49 | - 'mysqli' => '5.0.7' |
|
47 | + 'mysql' => '5.0.7', |
|
48 | + 'mysqli' => '5.0.7' |
|
50 | 49 | ); |
51 | 50 | |
52 | 51 | // --- |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | // ----- BUG: not read other language file ----- |
75 | 75 | //include_once(XOOPS_ROOT_PATH.'/modules/smartobject/language/english/common.php'); |
76 | 76 | global $xoopsConfig; |
77 | -$common_file = XOOPS_ROOT_PATH.'/modules/smartobject/language/'.$xoopsConfig['language'].'/common.php'; |
|
78 | -if ( file_exists($common_file) ) { |
|
77 | +$common_file = XOOPS_ROOT_PATH . '/modules/smartobject/language/' . $xoopsConfig['language'] . '/common.php'; |
|
78 | +if (file_exists($common_file)) { |
|
79 | 79 | $flag_common = true; |
80 | 80 | include_once $common_file; |
81 | 81 | } else { |
82 | - include_once(XOOPS_ROOT_PATH.'/modules/smartobject/language/english/common.php'); |
|
82 | + include_once(XOOPS_ROOT_PATH . '/modules/smartobject/language/english/common.php'); |
|
83 | 83 | } |
84 | 84 | // ----- |
85 | 85 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $i++; |
121 | 121 | $modversion['blocks'][$i]['file'] = "addto.php"; |
122 | 122 | $modversion['blocks'][$i]['name'] = _MI_SOBJECT_ADDTO_TITLE; |
123 | -$modversion['blocks'][$i]['description'] = _MI_SOBJECT_ADDTO_DESC; |
|
123 | +$modversion['blocks'][$i]['description'] = _MI_SOBJECT_ADDTO_DESC; |
|
124 | 124 | $modversion['blocks'][$i]['show_func'] = "smartobject_addto_show"; |
125 | 125 | $modversion['blocks'][$i]['edit_func'] = "smartobject_addto_edit"; |
126 | 126 | //$modversion['blocks'][$i]['options'] = "0"; |
@@ -8,19 +8,19 @@ |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | function smartobject_plugin_smartband() { |
11 | - global $xoopsConfig; |
|
12 | - include_once(XOOPS_ROOT_PATH."/modules/smartband/language/".$xoopsConfig['language']."/main.php"); |
|
11 | + global $xoopsConfig; |
|
12 | + include_once(XOOPS_ROOT_PATH."/modules/smartband/language/".$xoopsConfig['language']."/main.php"); |
|
13 | 13 | |
14 | - $pluginInfo = array(); |
|
15 | - $pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP; |
|
16 | - $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
17 | - $pluginInfo['items']['item']['request'] = 'itemid'; |
|
14 | + $pluginInfo = array(); |
|
15 | + $pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP; |
|
16 | + $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
17 | + $pluginInfo['items']['item']['request'] = 'itemid'; |
|
18 | 18 | |
19 | - $pluginInfo['items']['category']['caption'] = _MD_ARTALBUM_CATEGORY; |
|
20 | - $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
21 | - $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
19 | + $pluginInfo['items']['category']['caption'] = _MD_ARTALBUM_CATEGORY; |
|
20 | + $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
21 | + $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
22 | 22 | |
23 | - return $pluginInfo; |
|
23 | + return $pluginInfo; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | ?> |
27 | 27 | \ No newline at end of file |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | function smartobject_plugin_smartband() { |
11 | 11 | global $xoopsConfig; |
12 | - include_once(XOOPS_ROOT_PATH."/modules/smartband/language/".$xoopsConfig['language']."/main.php"); |
|
12 | + include_once(XOOPS_ROOT_PATH . "/modules/smartband/language/" . $xoopsConfig['language'] . "/main.php"); |
|
13 | 13 | |
14 | 14 | $pluginInfo = array(); |
15 | 15 | $pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP; |
@@ -8,14 +8,14 @@ |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | function smartobject_plugin_xcgal() { |
11 | - global $xoopsConfig; |
|
11 | + global $xoopsConfig; |
|
12 | 12 | |
13 | - $pluginInfo = array(); |
|
14 | - $pluginInfo['items']['album']['caption'] = 'Album'; |
|
15 | - $pluginInfo['items']['item']['url'] = 'thumbnails.php?album=%u'; |
|
16 | - $pluginInfo['items']['item']['request'] = 'album'; |
|
13 | + $pluginInfo = array(); |
|
14 | + $pluginInfo['items']['album']['caption'] = 'Album'; |
|
15 | + $pluginInfo['items']['item']['url'] = 'thumbnails.php?album=%u'; |
|
16 | + $pluginInfo['items']['item']['request'] = 'album'; |
|
17 | 17 | |
18 | - return $pluginInfo; |
|
18 | + return $pluginInfo; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | ?> |
22 | 22 | \ No newline at end of file |
@@ -8,17 +8,17 @@ |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | function smartobject_plugin_smartpartner() { |
11 | - $pluginInfo = array(); |
|
11 | + $pluginInfo = array(); |
|
12 | 12 | |
13 | - $pluginInfo['items']['partner']['caption'] = 'Partner'; |
|
14 | - $pluginInfo['items']['partner']['url'] = 'partner.php?partnerid=%u'; |
|
15 | - $pluginInfo['items']['partner']['request'] = 'partnerid'; |
|
13 | + $pluginInfo['items']['partner']['caption'] = 'Partner'; |
|
14 | + $pluginInfo['items']['partner']['url'] = 'partner.php?partnerid=%u'; |
|
15 | + $pluginInfo['items']['partner']['request'] = 'partnerid'; |
|
16 | 16 | |
17 | - $pluginInfo['items']['category']['caption'] = 'Category'; |
|
18 | - $pluginInfo['items']['category']['url'] = 'index.php?view_category_id=%u'; |
|
19 | - $pluginInfo['items']['category']['request'] = 'view_category_id'; |
|
17 | + $pluginInfo['items']['category']['caption'] = 'Category'; |
|
18 | + $pluginInfo['items']['category']['url'] = 'index.php?view_category_id=%u'; |
|
19 | + $pluginInfo['items']['category']['request'] = 'view_category_id'; |
|
20 | 20 | |
21 | - return $pluginInfo; |
|
21 | + return $pluginInfo; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | ?> |
25 | 25 | \ No newline at end of file |
@@ -8,17 +8,17 @@ |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | function smartobject_plugin_smartshop() { |
11 | - $pluginInfo = array(); |
|
11 | + $pluginInfo = array(); |
|
12 | 12 | |
13 | - $pluginInfo['items']['item']['caption'] = 'Item'; |
|
14 | - $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
15 | - $pluginInfo['items']['item']['request'] = 'itemid'; |
|
13 | + $pluginInfo['items']['item']['caption'] = 'Item'; |
|
14 | + $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
15 | + $pluginInfo['items']['item']['request'] = 'itemid'; |
|
16 | 16 | |
17 | - $pluginInfo['items']['category']['caption'] = 'Category'; |
|
18 | - $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
19 | - $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
17 | + $pluginInfo['items']['category']['caption'] = 'Category'; |
|
18 | + $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
19 | + $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
20 | 20 | |
21 | - return $pluginInfo; |
|
21 | + return $pluginInfo; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | ?> |
25 | 25 | \ No newline at end of file |
@@ -8,17 +8,17 @@ |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | function smartobject_plugin_smartsection() { |
11 | - $pluginInfo = array(); |
|
11 | + $pluginInfo = array(); |
|
12 | 12 | |
13 | - $pluginInfo['items']['item']['caption'] = 'Article'; |
|
14 | - $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
15 | - $pluginInfo['items']['item']['request'] = 'itemid'; |
|
13 | + $pluginInfo['items']['item']['caption'] = 'Article'; |
|
14 | + $pluginInfo['items']['item']['url'] = 'item.php?itemid=%u'; |
|
15 | + $pluginInfo['items']['item']['request'] = 'itemid'; |
|
16 | 16 | |
17 | - $pluginInfo['items']['category']['caption'] = 'Category'; |
|
18 | - $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
19 | - $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
17 | + $pluginInfo['items']['category']['caption'] = 'Category'; |
|
18 | + $pluginInfo['items']['category']['url'] = 'category.php?categoryid=%u'; |
|
19 | + $pluginInfo['items']['category']['request'] = 'categoryid'; |
|
20 | 20 | |
21 | - return $pluginInfo; |
|
21 | + return $pluginInfo; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | ?> |
25 | 25 | \ No newline at end of file |