XOOPS Cube Legacy base repository
修訂 | 01e19f0ffd40b9a0d5d09eab62b11c137f6747b0 (tree) |
---|---|
時間 | 2011-11-16 22:12:45 |
作者 | nbuy <nbuy@704c...> |
Commiter | nbuy |
replace more effective method use for speedup
git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@1054 704cf05f-ae62-4b0e-a484-234ee0250e75
@@ -1,12 +1,12 @@ | ||
1 | 1 | <{foreach item=module from=$modules}> |
2 | 2 | |
3 | 3 | <{if $module->hasAdminIndex()}> |
4 | - <div id="t<{$module->mXoopsModule->getShow('mid')}>" class="head"> | |
5 | - <a href="javascript:void(0)" onclick="ccToggle(<{$module->mXoopsModule->getShow('mid')}>)"><img src="<{"design/max.png"|theme}>" alt="" id="i<{$module->mXoopsModule->getShow('mid')}>" /></a> | |
6 | - <a href="<{$module->getAdminIndex()|xoops_escape:link}>"><{$module->mXoopsModule->getShow('name')}></a> | |
4 | + <div id="t<{$module->mXoopsModule->getVar('mid')}>" class="head"> | |
5 | + <a href="javascript:void(0)" onclick="ccToggle(<{$module->mXoopsModule->getVar('mid')}>)"><img src="<{"design/max.png"|theme}>" alt="" id="i<{$module->mXoopsModule->getVar('mid')}>" /></a> | |
6 | + <a href="<{$module->getAdminIndex()|xoops_escape:link}>"><{$module->mXoopsModule->getVar('name')}></a> | |
7 | 7 | </div> |
8 | 8 | |
9 | - <div id="c<{$module->mXoopsModule->getShow('mid')}>" class="submenu"> | |
9 | + <div id="c<{$module->mXoopsModule->getVar('mid')}>" class="submenu"> | |
10 | 10 | <ul> |
11 | 11 | <{if $module->getAdminMenu()}> |
12 | 12 | <{foreach item=menu from=$module->getAdminMenu()}> |
@@ -15,26 +15,26 @@ | ||
15 | 15 | <{/if}> |
16 | 16 | <{/foreach}> |
17 | 17 | |
18 | - <{if $module->mXoopsModule->getInfo('blocks') && $module->mXoopsModule->getShow('dirname') != "legacy" && $module->mXoopsModule->getShow('dirname') != "altsys" && $module->mXoopsModule->getShow('dirname') != "system"}> | |
18 | + <{if $module->mXoopsModule->getInfo('blocks') && $module->mXoopsModule->getVar('dirname', 'N') != "legacy" && $module->mXoopsModule->getVar('dirname', 'N') != "altsys" && $module->mXoopsModule->getVar('dirname', 'N') != "system"}> | |
19 | 19 | <li> |
20 | - <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&dirname=<{$module->mXoopsModule->getShow('dirname')}>"> | |
20 | + <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>"> | |
21 | 21 | <img src="<{"icons/blocks.png"|theme}>" alt="" title="" /> |
22 | 22 | <{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}> |
23 | 23 | </a> |
24 | 24 | </li> |
25 | 25 | <li> |
26 | - <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&dirname=<{$module->mXoopsModule->getShow('dirname')}>"> | |
26 | + <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>"> | |
27 | 27 | <img src="<{"icons/block_add.png"|theme}>" alt="" title="" /> |
28 | 28 | <{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}> |
29 | 29 | </a> |
30 | 30 | </li> |
31 | 31 | <{/if}> |
32 | 32 | |
33 | - <{if $module->mXoopsModule->getShow('dirname') != "legacyRender" && $module->mXoopsModule->getShow('dirname') != "altsys" && $module->mXoopsModule->getShow('dirname') != "system"}> | |
33 | + <{if $module->mXoopsModule->getVar('dirname', 'N') != "legacyRender" && $module->mXoopsModule->getVar('dirname', 'N') != "altsys" && $module->mXoopsModule->getVar('dirname', 'N') != "system"}> | |
34 | 34 | <{foreach item=tplmodule from=$tplmodules}> |
35 | - <{if $module->mXoopsModule->getShow('dirname') == $tplmodule}> | |
35 | + <{if $module->mXoopsModule->getVar('dirname', 'N') == $tplmodule}> | |
36 | 36 | <li> |
37 | - <a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&tpl_module=<{$module->mXoopsModule->getShow('dirname')}>&sort=-9"> | |
37 | + <a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&tpl_module=<{$module->mXoopsModule->getVar('dirname', 'N')}>&sort=-9"> | |
38 | 38 | <img src="<{"icons/templates.png"|theme}>" alt="" title="" /> |
39 | 39 | <{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}> |
40 | 40 | </a> |
@@ -45,7 +45,7 @@ | ||
45 | 45 | |
46 | 46 | <{if $module->mXoopsModule->getInfo('hasComments')}> |
47 | 47 | <li> |
48 | - <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&com_modid=<{$module->mXoopsModule->getShow('mid')}>&sort=-8"> | |
48 | + <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&com_modid=<{$module->mXoopsModule->getVar('mid')}>&sort=-8"> | |
49 | 49 | <img src="<{"icons/comments.png"|theme}>" alt="" title="" /> |
50 | 50 | <{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}> |
51 | 51 | </a> |
@@ -54,7 +54,7 @@ | ||
54 | 54 | |
55 | 55 | <{if $module->mXoopsModule->hasNeedUpdate()}> |
56 | 56 | <li> |
57 | - <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=<{$module->mXoopsModule->getShow('dirname')}>"> | |
57 | + <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>"> | |
58 | 58 | <img src="<{"icons/upgrade.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" /> |
59 | 59 | <{$smarty.const._AD_LEGACY_LANG_UPGRADE}> |
60 | 60 | </a> |
@@ -63,20 +63,20 @@ | ||
63 | 63 | <{else}> |
64 | 64 | |
65 | 65 | <li> |
66 | - <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=<{$module->mXoopsModule->getShow('dirname')}>"> | |
66 | + <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>"> | |
67 | 67 | <img src="<{"icons/update.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" /> |
68 | 68 | <{$smarty.const._AD_LEGACY_LANG_UPGRADE}> |
69 | 69 | </a> |
70 | 70 | </li> |
71 | 71 | <{/if}> |
72 | 72 | |
73 | - <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&mid=<{$module->mXoopsModule->getShow('mid')}>"> | |
73 | + <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&mid=<{$module->mXoopsModule->getVar('mid', 'N')}>"> | |
74 | 74 | <img src="<{"icons/module_edit.png"|theme}>" alt="" title="" /> |
75 | 75 | <{$smarty.const._EDIT}> |
76 | 76 | </a> |
77 | 77 | </li> |
78 | 78 | <li> |
79 | - <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&dirname=<{$module->mXoopsModule->getShow('dirname')}>"> | |
79 | + <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&dirname=<{$module->mXoopsModule->getVar('dirname', 'N')}>"> | |
80 | 80 | <img src="<{"icons/info.png"|theme}>" alt="" title="" /> |
81 | 81 | <{$smarty.const._AD_LEGACY_LANG_INFORMATION}> |
82 | 82 | </a> |
@@ -204,7 +204,7 @@ function ccOpenCid() | ||
204 | 204 | |
205 | 205 | <noscript> |
206 | 206 | <div id="menunavi"> |
207 | - <h2><{$currentModule->mXoopsModule->getShow('name')}></h2> | |
207 | + <h2><{$currentModule->mXoopsModule->getVar('name')}></h2> | |
208 | 208 | <{if $currentModule->getAdminMenu()}> |
209 | 209 | <ul class="submenunavi"> |
210 | 210 | <{foreach item=menu from=$currentModule->getAdminMenu()}> |
@@ -213,23 +213,23 @@ function ccOpenCid() | ||
213 | 213 | <{/if}> |
214 | 214 | <{/foreach}> |
215 | 215 | |
216 | - <{if $currentModule->mXoopsModule->getInfo('blocks') && $currentModule->mXoopsModule->getShow('dirname') != "legacy" && $currentModule->mXoopsModule->getShow('dirname') != "altsys" && $currentModule->mXoopsModule->getShow('dirname') != "system"}> | |
217 | - <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}></a></li> | |
218 | - <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}></a></li> | |
216 | + <{if $currentModule->mXoopsModule->getInfo('blocks') && $currentModule->mXoopsModule->getVar('dirname', 'N') != "legacy" && $currentModule->mXoopsModule->getVar('dirname', 'N') != "altsys" && $currentModule->mXoopsModule->getVar('dirname', 'N') != "system"}> | |
217 | + <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}></a></li> | |
218 | + <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}></a></li> | |
219 | 219 | <{/if}> |
220 | - <{if $currentModule->mXoopsModule->getInfo('templates') && $currentModule->mXoopsModule->getShow('dirname') != "legacyRender" && $currentModule->mXoopsModule->getShow('dirname') != "altsys" && $currentModule->mXoopsModule->getShow('dirname') != "system"}> | |
221 | - <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&tpl_module=<{$currentModule->mXoopsModule->getShow('dirname')}>&sort=-9"><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}></a></li> | |
220 | + <{if $currentModule->mXoopsModule->getInfo('templates') && $currentModule->mXoopsModule->getVar('dirname', 'N') != "legacyRender" && $currentModule->mXoopsModule->getVar('dirname', 'N') != "altsys" && $currentModule->mXoopsModule->getVar('dirname', 'N') != "system"}> | |
221 | + <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&tpl_module=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>&sort=-9"><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}></a></li> | |
222 | 222 | <{/if}> |
223 | 223 | <{if $currentModule->mXoopsModule->getInfo('hasComments')}> |
224 | - <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&com_modid=<{$currentModule->mXoopsModule->getShow('mid')}>&sort=-8"><{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}></a></li> | |
224 | + <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&com_modid=<{$currentModule->mXoopsModule->getVar('mid')}>&sort=-8"><{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}></a></li> | |
225 | 225 | <{/if}> |
226 | 226 | <{if $currentModule->mXoopsModule->hasNeedUpdate()}> |
227 | - <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><{$smarty.const._AD_LEGACY_LANG_UPGRADE}> <img src="<{"icons/update.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" /></a></li> | |
227 | + <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><{$smarty.const._AD_LEGACY_LANG_UPGRADE}> <img src="<{"icons/update.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" /></a></li> | |
228 | 228 | <{else}> |
229 | - <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><img src="<{"icons/upgrade.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" /> <{$smarty.const._AD_LEGACY_LANG_UPGRADE}></a></li> | |
229 | + <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><img src="<{"icons/upgrade.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" /> <{$smarty.const._AD_LEGACY_LANG_UPGRADE}></a></li> | |
230 | 230 | <{/if}> |
231 | - <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&mid=<{$currentModule->mXoopsModule->getShow('mid')}>"><{$smarty.const._EDIT}></a></li> | |
232 | - <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&dirname=<{$currentModule->mXoopsModule->getShow('dirname')}>"><{$smarty.const._AD_LEGACY_LANG_INFORMATION}></a></li> | |
231 | + <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&mid=<{$currentModule->mXoopsModule->getVar('mid')}>"><{$smarty.const._EDIT}></a></li> | |
232 | + <li><img src="<{"icons/upgrade.png"|theme}>" alt="" title="" /> <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&dirname=<{$currentModule->mXoopsModule->getVar('dirname', 'N')}>"><{$smarty.const._AD_LEGACY_LANG_INFORMATION}></a></li> | |
233 | 233 | </ul> |
234 | 234 | <{/if}> |
235 | 235 | </div> |