Пример #1
0
} elseif ($slider->isSlidesFromStream()) {
    $arrSlides = $slider->getSlidesFromStream(false);
} else {
    $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();