当前位置: 首页>>代码示例>>PHP>>正文


PHP TagsHelperRoute::getItemRoute方法代码示例

本文整理汇总了PHP中TagsHelperRoute::getItemRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP TagsHelperRoute::getItemRoute方法的具体用法?PHP TagsHelperRoute::getItemRoute怎么用?PHP TagsHelperRoute::getItemRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TagsHelperRoute的用法示例。


在下文中一共展示了TagsHelperRoute::getItemRoute方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

        ?>
		</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();
    }
}
开发者ID:ejailesb,项目名称:repo,代码行数:31,代码来源:default_items.php

示例2: htmlspecialchars

                ?>
						<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 
开发者ID:ForAEdesWeb,项目名称:AEW1,代码行数:31,代码来源:default_items.php

示例3: getTagTree

 /**
  * @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);
 }
开发者ID:b2un0,项目名称:joomla-plugin-xmap-tags,代码行数:37,代码来源:com_tags.php


注:本文中的TagsHelperRoute::getItemRoute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。