Exemplo n.º 1
0
        $item->level_diff = isset($this->items[$i + 1]) ? $item->level - $this->items[$i + 1]->level : 0;
    }
    echo '<ul>';
    for ($i = 0; $i < $itemcount; $i++) {
        $item =& $this->items[$i];
        // The next item is deeper.
        if ($item->deeper) {
            echo "<li>";
        } elseif ($item->shallower) {
            echo "<li>";
        } else {
            echo "<li>";
        }
        ?>
  	    <span class="item-title"><a href="<?php 
        echo ContentRoute::category('index.php?option=com_content&view=category&id=' . $this->escape($item->slug));
        ?>
">
			<?php 
        echo $this->escape($item->title);
        ?>
</a>
		</span>
		<?php 
        if ($item->description) {
            ?>
			<div class="category-desc">
				<?php 
            echo $item->description;
            ?>
			</div>
Exemplo n.º 2
0
?>

<?php 
echo $this->item->event->beforeDisplayContent;
?>

<div class="item-info">
	<?php 
if ($params->get('show_category')) {
    ?>
		<span class="item-category">
			<?php 
    if ($params->get('link_category')) {
        ?>
				<a href="<?php 
        echo JRoute::_(ContentRoute::category($this->item->catslug));
        ?>
">
					<?php 
        echo $this->escape($this->item->category_title);
        ?>
 </a>
			<?php 
    } else {
        ?>
				<?php 
        echo $this->escape($this->item->category_title);
        ?>
			<?php 
    }
    ?>
Exemplo n.º 3
0
 <dt class="article-info-term"><?php 
    echo JText::_('JContent_Article_Infos');
    ?>
</dt>
<?php 
}
if ($params->get('show_category')) {
    ?>
<dd class="category-name"><?php 
    echo JText::_('JContent_Category');
    ?>
                <?php 
    if ($params->get('link_category')) {
        ?>
                	<?php 
        echo '<a href="' . JRoute::_(ContentRoute::category($this->item->catslug)) . '">';
        ?>
                	<?php 
        echo $this->escape($this->item->category_title);
        ?>
</a>
                	<?php 
    } else {
        ?>
                	<?php 
        echo $this->escape($this->item->category_title);
        ?>
				<?php 
    }
    ?>
     </dd>
Exemplo n.º 4
0
    ?>
	no siblings
<?php 
} else {
    ?>
	<h5>Siblings</h5>
	<ul>
		<?php 
    foreach ($this->siblings as &$item) {
        ?>
		<li>
			<?php 
        if ($item->id != $this->item->id) {
            ?>
			<a href="<?php 
            echo JRoute::_(ContentRoute::category($item->slug));
            ?>
">
				<?php 
            echo $this->escape($item->title);
            ?>
</a>
			<?php 
        } else {
            ?>
				<?php 
            echo $this->escape($item->title);
            ?>
			<?php 
        }
        ?>