?> </div> <?php } ?> <input type="hidden" name="filter_order" value="" /> <input type="hidden" name="filter_order_Dir" value="" /> <input type="hidden" name="limitstart" value="" /> <input type="hidden" name="task" value="" /> </form> <?php } ?> <?php if (!$this->items) { echo '<div class="uk-panel uk-panel-box"><p>' . JText::_('COM_TAGS_NO_ITEMS') . '</p></div>'; } else { foreach ($this->items as $item) { $images = json_decode($item->core_images); $args = array('permalink' => '', 'image' => $this->params->get('tag_list_show_item_image', 1) == 1 && isset($images->image_intro) ? htmlspecialchars($images->image_intro) : '', 'image_alignment' => isset($images->float_intro) ? htmlspecialchars($images->float_intro) : '', 'image_alt' => isset($images->image_intro_alt) ? htmlspecialchars($images->image_intro_alt) : '', 'image_caption' => isset($images->image_intro_caption) ? htmlspecialchars($images->image_intro_caption) : '', 'title' => $this->escape($item->core_title), 'title_link' => '1', 'author' => $item->author, 'author_url' => '', 'date' => $item->core_created_time, 'datetime' => substr($item->core_created_time, 0, 10), 'category' => '', 'category_url' => '', 'hook_aftertitle' => '', 'hook_beforearticle' => '', 'hook_afterarticle' => '', 'article' => $this->params->get('tag_list_show_item_description', 1) ? JHtml::_('string.truncate', $item->core_body, $this->params->get('tag_list_item_maximum_characters')) : '', 'tags' => '', 'edit' => '', 'url' => $item->core_state != 0 ? JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)) : '', 'more' => '', 'previous' => '', 'next' => ''); // Render template echo $warp['template']->render('article', $args); } if ($this->params->get('show_pagination')) { echo $this->pagination->getPagesLinks(); } }
?> <img class="img-responsive" src="<?php echo htmlspecialchars($images->image_intro); ?> " alt="<?php echo htmlspecialchars($images->image_intro_alt); ?> "> <?php } ?> </div> <div class="col-sm-6 item-desc"> <h3> <a href="<?php echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?> "> <?php echo $this->escape($item->core_title); ?> </a> </h3> <?php } ?> <?php echo $item->event->afterDisplayTitle; ?> <?php
/** * @param XmapDisplayerInterface $xmap * @param stdClass $parent * @param array $params * @param array $tagIds * @param array $typesr */ private static function getTagTree($xmap, stdClass $parent, array &$params, array $tagIds, array $typesr = null) { $db = JFactory::getDbo(); $rows = array(); foreach ($tagIds as $tagId) { $listQuery = new JHelperTags(); $query = $listQuery->getTagItemsQuery($tagId, $typesr, false, 'c.core_title', 'ASC', true, $params['language_filter']); $db->setQuery($query); $result = $db->loadObjectList(); if (is_array($result)) { $rows += $result; } } if (empty($rows)) { return; } $xmap->changeLevel(1); foreach ($rows as $row) { $node = new stdclass(); $node->id = $parent->id; $node->name = $row->core_title; $node->uid = $parent->uid . '_' . $row->content_item_id; $node->browserNav = $parent->browserNav; $node->priority = $params['tag_priority']; $node->changefreq = $params['tag_changefreq']; $node->link = TagsHelperRoute::getItemRoute($row->content_item_id, $row->core_alias, $row->core_catid, $row->core_language, $row->type_alias, $row->router); $xmap->printNode($node); } $xmap->changeLevel(-1); }