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


PHP K2HelperHTML::featured方法代码示例

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


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

示例1: setFilters

 protected function setFilters()
 {
     // Sorting filter
     $sortingOptions = array('K2_NONE' => '', 'K2_ID_ASC' => 'id', 'K2_ID_DESC' => 'id.reverse', 'K2_TITLE_ASC' => 'title', 'K2_TITLE_DESC' => 'title.reverse', 'K2_ORDERING' => 'ordering', 'K2_FEATURED_ORDERING' => 'featured_ordering', 'K2_STATE_ASC' => 'state', 'K2_STATE_DESC' => 'state.reverse', 'K2_FEATURED_ASC' => 'featured', 'K2_FEATURED_DESC' => 'featured.reverse', 'K2_CATEGORY_ASC' => 'category', 'K2_CATEGORY_DESC' => 'category.reverse', 'K2_AUTHOR_ASC' => 'author', 'K2_AUTHOR_DESC' => 'author.reverse', 'K2_MODERATOR_ASC' => 'moderator', 'K2_MODERATOR_DESC' => 'moderator.reverse', 'K2_ACCESS_LEVEL_ASC' => 'access', 'K2_ACCESS_LEVEL_DESC' => 'access.reverse', 'K2_CREATED_ASC' => 'created', 'K2_CREATED_DESC' => 'created.reverse', 'K2_MODIFIED_ASC' => 'modified', 'K2_MODIFIED_DESC' => 'modified.reverse', 'K2_LANGUAGE_ASC' => 'language', 'K2_LANGUAGE_DESC' => 'language.reverse', 'K2_HITS_ASC' => 'hits', 'K2_HITS_DESC' => 'hits.reverse');
     K2Response::addFilter('sorting', JText::_('K2_SORT_BY'), K2HelperHTML::sorting($sortingOptions), false, 'header');
     // Categories filter
     K2Response::addFilter('category', JText::_('K2_CATEGORY'), K2HelperHTML::categories('category', null, 'K2_ANY'), false, 'header');
     // Author filter
     K2Response::addFilter('author', JText::_('K2_AUTHOR'), '<input data-widget="user" data-null="' . JText::_('K2_ANY') . '" data-min="0" data-name="' . JText::_('K2_ANY') . '" type="hidden" name="author" value="" />', false, 'header');
     // Author filter
     K2Response::addFilter('tag', JText::_('K2_TAG'), '<input data-widget="tag" data-null="' . JText::_('K2_ANY') . '" data-min="0" data-name="' . JText::_('K2_ANY') . '" type="hidden" name="tag" value="" />', false, 'header');
     // Access filter
     K2Response::addFilter('access', JText::_('K2_ACCESS'), JHtml::_('access.level', 'access', null, '', array(JHtml::_('select.option', '0', JText::_('K2_ANY')))), false, 'header');
     // Language filter
     K2Response::addFilter('language', JText::_('K2_LANGUAGE'), K2HelperHTML::language('language', '', 'K2_ANY'), false, 'header');
     // Search filter
     K2Response::addFilter('search', JText::_('K2_SEARCH'), K2HelperHTML::search(), false, 'sidebar');
     // State filter
     K2Response::addFilter('state', JText::_('K2_STATE'), K2HelperHTML::state('state', null, 'K2_ANY', true), true, 'sidebar');
     // Featured filter
     K2Response::addFilter('featured', JText::_('K2_FEATURED'), K2HelperHTML::featured(), true, 'sidebar');
 }
开发者ID:sofian86,项目名称:k2-v3-dev-build,代码行数:22,代码来源:view.json.php


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