本文整理汇总了PHP中RevSliderFunctionsWP::getArrSortBy方法的典型用法代码示例。如果您正苦于以下问题:PHP RevSliderFunctionsWP::getArrSortBy方法的具体用法?PHP RevSliderFunctionsWP::getArrSortBy怎么用?PHP RevSliderFunctionsWP::getArrSortBy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RevSliderFunctionsWP
的用法示例。
在下文中一共展示了RevSliderFunctionsWP::getArrSortBy方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
$arrSlides = $slider->getSlides(false);
}
$numSlides = count($arrSlides);
$linksSliderSettings = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER, 'id=' . $sliderID);
//treat in case of slides from gallery
if ($slider->isSlidesFromPosts() == false) {
//removed in 5.0
} else {
//slides from posts
$sourceType = $slider->getParam('source_type', 'posts');
$showSortBy = $sourceType == 'posts' ? true : false;
//get button links
$urlNewPost = RevSliderFunctionsWP::getUrlNewPost();
$linkNewPost = RevSliderFunctions::getHtmlLink($urlNewPost, '<i class="revicon-pencil-1"></i>' . __('New Post', REVSLIDER_TEXTDOMAIN), 'button_new_post', 'button-primary revblue', true);
//get ordering
$arrSortBy = RevSliderFunctionsWP::getArrSortBy();
$sortBy = $slider->getParam('post_sortby', RevSlider::DEFAULT_POST_SORTBY);
$selectSortBy = RevSliderFunctions::getHTMLSelect($arrSortBy, $sortBy, "id='select_sortby'", true);
?>
<div class="wrap settings_wrap">
<div class="title_line">
<div id="icon-options-general" class="icon32"></div>
<div class="view_title"><?php
_e('Edit Posts', REVSLIDER_TEXTDOMAIN);
?>
: <?php
echo $slider->getTitle();
?>
</div>
</div>