Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/modules/mod_zoobreadcrumb/tmpl/default.php
Назад
<?php // No direct access defined( '_JEXEC' ) or die; /*$db =&JFactory::getDBO();*/ $db =JFactory::getDBO(); $jinput = JFactory::getApplication()->input; $Itemid=$jinput->getInt( 'Itemid', 0 ); $category_id=$jinput->getInt( 'category_id', 0 ); if ($Itemid<>117 and $Itemid<>108 and $Itemid<>109) $Itemid=117; ?> <?php if ($category_id<>2376): ?> <div class="module<?php echo $moduleclass_sfx; ?>"> <div class="zoo-breadcrumb"> <div class="wrap"> <ul> <li><a href="/">Главная</a></li> <?php $m=array(); $i=$category_id; do { $list = $db->setQuery('SELECT id,name,parent FROM #__zoo_category where id='.$i)->loadAssoc(); if ($list['id']<>'') { $m[]=array('id'=>$list['id'],'name'=>$list['name']); $i=$list['parent']; } } while ($list['parent']<>"0" and $list['parent']<>"2376"); $m=array_reverse($m, TRUE); foreach( $m as $item) { if ($category_id==$item['id']) { echo "<li><span>{$item['name']}</span></li>"; } else { echo "<li><a href=\"/index.php?option=com_zoo&category_id={$item['id']}&Itemid={$Itemid}&view=category\">{$item['name']}</a></li>"; } } ?> </ul> </div> </div> </div> <?php endif; ?>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка