https://www.stekip.gr/stekip/library.html
ο κώδικας php είναι αυτός
Code: Select all
<table class="books">
<tbody>
<?php foreach($this->items as $id => $item) : ?>
<?php
if(!isset($this->items[$id + 1]))
{
$class = 'last';
}
?>
<tr>
<td class="<?php echo $class; ?> folder">
<h4 class="item-title">
<?php echo str_repeat('<span class="indent"></span>', $item->level) ?>
<?php $class = '';?>
<?php if ($this->params->get('catimage')!="-1"){
if($this->params->get('catimage')=='icon-folder'){?>
<i class="icon-folder"></i>
<?php }else{?>
<?php $catimage=$this->params->get('catimage')== "cat_custom_image"?$item->params->get('image','components/com_abook/assets/images/no_img_cat.png') : "components/com_abook/assets/images/folder/".$this->params->get('catimage', "folder_blue.png"); ?>
<img class="cat-img-folder" src="<?php echo $catimage; ?>" style="vertical-align:middle;" alt="<?php echo JText::_('COM_ABOOK_CATEGORY').' '.$this->escape($item->title); ?>" />
<?php }
}?>
<a href="<?php echo JRoute::_(AbookHelperRoute::getCategoryRoute($item->slug));?>">
<?php echo $this->escape($item->title); ?></a>
<?php if ($this->params->get('show_item_count', 0) == 1) :?>
<span class="badge badge-secondary tip" title="<?php echo JHtml::tooltipText('COM_ABOOK_NUM_ITEMS')?>">
<?php echo $item->numitems; ?>
</span>
<?php endif; ?>
<?php if ($this->params->get('show_alt_title', 0) == 1) :?>
<p><small><?php print_r($item->params->get('alt_title')); ?></small></p>
<?php endif; ?>
</h4>
<?php if ($item->description && $this->params->get('show_list_description', 0) == 1): ?>
<div class="category-desc">
<?php echo JHtml::_('content.prepare', $item->description); ?>
</div>
<?php endif; ?>
<?php /*if(count($item->getChildren()) > 0) :
$this->items[$item->id] = $item->getChildren();
$this->parent = $item;
$this->maxLevel--;
echo $this->loadTemplate('items');
$this->parent = $item->getParent();
$this->maxLevel++;
endif; */?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
Ευχαριστώ πολύ