/home/techb158/public_html/wp-content/plugins/revslider/admin/views
Edit: /home/techb158/public_html/wp-content/plugins/revslider/admin/views/builder-slider-forms.php (138633B)
* @link https://www.themepunch.com/
* @copyright 2019 ThemePunch
*/
if(!defined('ABSPATH')) exit();
$rs_f = RevSliderGlobals::instance()->get('RevSliderFunctions');
//$rs_info = new RevSliderSliderInfo($slider_id);
// GET POST TYPED AND CATEGORIES
$post_types_with_categories = $rs_f->get_post_types_with_categories_for_client();
$json_tax_with_cats = $rs_f->json_encode_client_side($post_types_with_categories);
$post_type = $rs_f->get_post_type_assoc();
// GET LATEST RECENT POSTS AND POPULAR POSTS
$uslider = new RevSliderSlider();
$pop_posts = $uslider->get_popular_posts(15);
$rec_posts = $uslider->get_latest_posts(15);
$recent = array();
$popular = array();
if (!empty($pop_posts)) {
foreach ($pop_posts as $p_post) {
$popular[] = $p_post['ID'];
}
}
if (!empty($rec_posts)) {
foreach ($rec_posts as $r_post) {
$recent[] = $r_post['ID'];
}
}
$wc_sortby = RevSliderWooCommerce::getArrSortBy();
$api = 'revapi'; // . $slider_id;
?>