Changeset 15570 for trunk/templates
- Timestamp:
- 10/09/11 03:23:33 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/base/scripts/BxBaseIndexPageView.php
r15338 r15570 107 107 function getBlockCode_SiteStats() { 108 108 return '<div class="dbContent">'.getSiteStatUser().'</div>'; 109 } 110 111 function getBlockCode_Download() { 112 $oSysTemplate = BxDolTemplate::getInstance(); 113 114 $a = BxDolDb::getInstance()->fromCache('sys_box_download', 'getAll', 'SELECT * FROM `sys_box_download` WHERE `disabled` = 0 ORDER BY `order`'); 115 $s = ''; 116 117 foreach ($a as $r) { 118 if ('_' == $r['title'][0]) 119 $r['title'] = _t($r['title']); 120 if ('_' == $r['desc'][0]) 121 $r['desc'] = _t($r['desc']); 122 123 if (0 == strncmp('php:', $r['url'], 4)) 124 $r['url'] = eval(substr($r['url'], 4)); 125 if (!$r['url']) 126 continue; 127 128 $r['icon'] = $oSysTemplate->getIconUrl($r['icon']); 129 $s .= $oSysTemplate->parseHtmlByName('download_box_unit.html', $r); 130 } 131 132 return $s; 109 133 } 110 134 … … 217 241 return array($sCode, $aDBTopMenu, $sPaginate); 218 242 } 219 220 function getBlockCode_Download() { 221 $oSysTemplate = BxDolTemplate::getInstance(); 222 223 $a = BxDolDb::getInstance()->fromCache('sys_box_download', 'getAll', 'SELECT * FROM `sys_box_download` WHERE `disabled` = 0 ORDER BY `order`'); 224 $s = ''; 225 226 foreach ($a as $r) { 227 if ('_' == $r['title'][0]) 228 $r['title'] = _t($r['title']); 229 if ('_' == $r['desc'][0]) 230 $r['desc'] = _t($r['desc']); 231 232 if (0 == strncmp('php:', $r['url'], 4)) 233 $r['url'] = eval(substr($r['url'], 4)); 234 if (!$r['url']) 235 continue; 236 237 $r['icon'] = $oSysTemplate->getIconUrl($r['icon']); 238 $s .= $oSysTemplate->parseHtmlByName('download_box_unit.html', $r); 239 } 240 241 return $s; 243 244 function getPromoCode() { 245 return '<div class="promo_code_wrapper">' . getParam('custom_promo_code') . '</div>'; 242 246 } 243 247 }
Note: See TracChangeset
for help on using the changeset viewer.