quired_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-1' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_get_view( 'loop', 'listing-mix-1-2' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 2', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-1-2.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_1_2_Shortcode /** * Publisher Mix Listing 1-3 */ class Publisher_Mix_Listing_1_3_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-1-3'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 6, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-1-3', 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-1' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_get_view( 'loop', 'listing-mix-1-3' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 3', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-1-3.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_1_3_Shortcode /** * Publisher Mix Listing 1-4 */ class Publisher_Mix_Listing_1_4_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-1-4'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 3, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-1-4', 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-1-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_get_view( 'loop', 'listing-mix-1-4' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 4', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-1-4.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_1_4_Shortcode /** * Publisher Mix Listing 2-1 */ class Publisher_Mix_Listing_2_1_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-2-1'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 8, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-2-1', 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-2' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_get_view( 'loop', 'listing-mix-2-1' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 5', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-2-1.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_2_1_Shortcode /** * Publisher Mix Listing 2-2 */ class Publisher_Mix_Listing_2_2_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-2-2'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 10, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-2-2', 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'columns'; $atts[] = 'show_excerpt'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-2' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_get_view( 'loop', 'listing-mix-2-2' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 6', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-2-2.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_2_2_Shortcode /** * Publisher Mix Listing 3-1 */ class Publisher_Mix_Listing_3_1_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-3-1'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 4, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-3-1', 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => true, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'columns'; $atts[] = 'show_excerpt'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } publisher_get_view( 'loop', 'listing-mix-3-1' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 7', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-3-1.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_3_1_Shortcode /** * Publisher Mix Listing 7 Widget */ class Publisher_Mix_Listing_3_1_Widget extends Publisher_Theme_Listing_Widget { /** * Register widget. */ function __construct() { parent::__construct( 'bs-mix-listing-3-1', __( 'Listing - Mix 7', 'publisher' ), array( 'description' => __( 'Widget for Mix Listing 7', 'publisher' ) ) ); } /** * Adds backend fields */ function load_fields() { // Back end form fields $this->fields = array_merge( array( array( 'name' => '', 'id' => '_help_img', 'type' => 'image_preview', 'std' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-3-1-big.png', ), array( 'name' => __( 'Widget Title', 'publisher' ), 'id' => 'title', 'type' => 'text', ), ), $this->fields_map_listing_filters(), $this->fields_map_listing_tabs(), $this->fields_map_listing_pagination(), $this->fields_map_listing_design() ); } /** * Loads widget -> shortcode default attrs */ public function load_defaults() { if ( $this->defaults_loaded ) { return; } $this->defaults_loaded = true; $this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id, [], true )->defaults; $this->defaults['paginate'] = 'next_prev'; $this->defaults['pagination-show-label'] = 1; $this->defaults['columns'] = 1; $this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() ); } } /** * Publisher Mix Listing 3-2 */ class Publisher_Mix_Listing_3_2_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-3-2'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 5, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-3-2', 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => true, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } publisher_get_view( 'loop', 'listing-mix-3-2' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 8', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-3-2.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_3_2_Shortcode /** * Publisher Mix Listing 8 Widget */ class Publisher_Mix_Listing_3_2_Widget extends Publisher_Theme_Listing_Widget { /** * Register widget. */ function __construct() { parent::__construct( 'bs-mix-listing-3-2', __( 'Listing - Mix 8', 'publisher' ), array( 'description' => __( 'Widget for Mix Listing 8', 'publisher' ) ) ); } /** * Adds backend fields */ function load_fields() { // Back end form fields $this->fields = array_merge( array( array( 'name' => '', 'id' => '_help_img', 'type' => 'image_preview', 'std' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-3-2-big.png', ), array( 'name' => __( 'Widget Title', 'publisher' ), 'id' => 'title', 'type' => 'text', ), ), $this->fields_map_listing_filters(), $this->fields_map_listing_tabs(), $this->fields_map_listing_pagination(), $this->fields_map_listing_design() ); } /** * Loads widget -> shortcode default attrs */ public function load_defaults() { if ( $this->defaults_loaded ) { return; } $this->defaults_loaded = true; $this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id, [], true )->defaults; $this->defaults['paginate'] = 'next_prev'; $this->defaults['pagination-show-label'] = 1; $this->defaults['columns'] = 1; $this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() ); } } /** * Publisher Mix Listing 3-3 */ class Publisher_Mix_Listing_3_3_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-3-3'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 5, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-3-3', 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => true, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'columns'; $atts[] = 'show_excerpt'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-3' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_get_view( 'loop', 'listing-mix-3-3' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 9', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-3-3.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_3_3_Shortcode /** * Publisher Mix Listing 9 Widget */ class Publisher_Mix_Listing_3_3_Widget extends Publisher_Theme_Listing_Widget { /** * Register widget. */ function __construct() { parent::__construct( 'bs-mix-listing-3-3', __( 'Listing - Mix 9', 'publisher' ), array( 'description' => __( 'Widget for Mix Listing 9', 'publisher' ) ) ); } /** * Adds backend fields */ function load_fields() { // Back end form fields $this->fields = array_merge( array( array( 'name' => '', 'id' => '_help_img', 'type' => 'image_preview', 'std' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-3-3-big.png', ), array( 'name' => __( 'Widget Title', 'publisher' ), 'id' => 'title', 'type' => 'text', ), ), $this->fields_map_listing_filters(), $this->fields_map_listing_tabs(), $this->fields_map_listing_pagination(), $this->fields_map_listing_design() ); } /** * Loads widget -> shortcode default attrs */ public function load_defaults() { if ( $this->defaults_loaded ) { return; } $this->defaults_loaded = true; $this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id, [], true )->defaults; $this->defaults['paginate'] = 'next_prev'; $this->defaults['pagination-show-label'] = 1; $this->defaults['columns'] = 1; $this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() ); } } /** * Publisher Mix Listing 3-4 */ class Publisher_Mix_Listing_3_4_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-3-4'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 4, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-3-4', 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => true, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } publisher_get_view( 'loop', 'listing-mix-3-4' ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 10', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-3-4.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_3_3_Shortcode /** * Publisher Mix Listing 10 Widget */ class Publisher_Mix_Listing_3_4_Widget extends Publisher_Theme_Listing_Widget { /** * Register widget. */ function __construct() { parent::__construct( 'bs-mix-listing-3-4', __( 'Listing - Mix 10', 'publisher' ), array( 'description' => __( 'Widget for Mix Listing 9', 'publisher' ) ) ); } /** * Adds backend fields */ function load_fields() { // Back end form fields $this->fields = array_merge( array( array( 'name' => '', 'id' => '_help_img', 'type' => 'image_preview', 'std' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-3-4-big.png', ), array( 'name' => __( 'Widget Title', 'publisher' ), 'id' => 'title', 'type' => 'text', ), ), $this->fields_map_listing_filters(), $this->fields_map_listing_tabs(), $this->fields_map_listing_pagination(), $this->fields_map_listing_design() ); } /** * Loads widget -> shortcode default attrs */ public function load_defaults() { if ( $this->defaults_loaded ) { return; } $this->defaults_loaded = true; $this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id, [], true )->defaults; $this->defaults['paginate'] = 'next_prev'; $this->defaults['pagination-show-label'] = 1; $this->defaults['columns'] = 1; $this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() ); } } /** * Publisher Mix Listing 4-1 */ class Publisher_Mix_Listing_4_1_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-4-1'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 5, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-4-1', 'show_excerpt_big' => true, 'show_excerpt_small' => true, 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'show_excerpt_big'; $atts[] = 'show_excerpt_small'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_set_prop( 'show-excerpt-big', $atts['show_excerpt_big'] ); publisher_set_prop( 'show-excerpt-small', $atts['show_excerpt_small'] ); publisher_get_view( 'loop', 'listing-mix-4-1' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Show Big Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_big', 'type' => 'switch', // 'vc_admin_label' => false, ), array( 'name' => __( 'Show Small Posts Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_small', 'type' => 'switch', // 'vc_admin_label' => false, ), ), parent::get_fields(), parent::block_ad_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Mix 11', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-4-1.png', ) ); } // page_builder_settings } // Publisher_Mix_Listing_4_1_Shortcode /** * Publisher Mix Listing 4-2 */ class Publisher_Mix_Listing_4_2_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-4-2'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 6, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-4-2', 'show_excerpt_big' => true, 'show_excerpt_small' => true, 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'show_excerpt_big'; $atts[] = 'show_excerpt_small'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_set_prop( 'show-excerpt-big', $atts['show_excerpt_big'] ); publisher_set_prop( 'show-excerpt-small', $atts['show_excerpt_small'] ); publisher_get_view( 'loop', 'listing-mix-4-2' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Show Big Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_big', 'type' => 'switch', // 'vc_admin_label' => false, ), array( 'name' => __( 'Show Small Posts Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_small', 'type' => 'switch', // 'vc_admin_label' => false, ), ), parent::get_fields(), parent::block_ad_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { return array( 'name' => __( 'Mix 12', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-4-2.png', ); } // page_builder_settings /** * Excludes slider pagination * * @return array */ public static function pagination_styles() { $all_pagination_styles = parent::pagination_styles(); unset( $all_pagination_styles['slider'] ); return $all_pagination_styles; } } // Publisher_Mix_Listing_4_2_Shortcode /** * Publisher Mix Listing 4-3 */ class Publisher_Mix_Listing_4_3_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-4-3'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 5, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-4-3', 'show_excerpt_big' => true, 'show_excerpt_small' => true, 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'show_excerpt_big'; $atts[] = 'show_excerpt_small'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_set_prop( 'show-excerpt-big', $atts['show_excerpt_big'] ); publisher_set_prop( 'show-excerpt-small', $atts['show_excerpt_small'] ); publisher_get_view( 'loop', 'listing-mix-4-3' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Show Big Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_big', 'type' => 'switch', // 'vc_admin_label' => false, ), array( 'name' => __( 'Show Small Posts Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_small', 'type' => 'switch', // 'vc_admin_label' => false, ), ), parent::get_fields(), parent::block_ad_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { return array( 'name' => __( 'Mix 13', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-4-3.png', ); } // page_builder_settings } // Publisher_Mix_Listing_4_3_Shortcode /** * Publisher Mix Listing 4-4 */ class Publisher_Mix_Listing_4_4_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-4-4'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 6, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-4-4', 'show_excerpt_big' => true, 'show_excerpt_small' => true, 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'show_excerpt_big'; $atts[] = 'show_excerpt_small'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_set_prop( 'show-excerpt-big', $atts['show_excerpt_big'] ); publisher_set_prop( 'show-excerpt-small', $atts['show_excerpt_small'] ); publisher_get_view( 'loop', 'listing-mix-4-4' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Show Big Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_big', 'type' => 'switch', // 'vc_admin_label' => false, ), array( 'name' => __( 'Show Small Posts Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_small', 'type' => 'switch', // 'vc_admin_label' => false, ), ), parent::get_fields(), parent::block_ad_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { return array( 'name' => __( 'Mix 14', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-4-4.png', ); } // page_builder_settings /** * Excludes slider pagination * * @return array */ public static function pagination_styles() { $all_pagination_styles = parent::pagination_styles(); unset( $all_pagination_styles['slider'] ); return $all_pagination_styles; } } // Publisher_Mix_Listing_4_4_Shortcode /** * Publisher Theme Mix Listing 4-5 */ class Publisher_Mix_Listing_4_5_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-4-5'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 5, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-4-5', 'show_excerpt_big' => true, 'show_excerpt_small' => true, 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'show_excerpt_big'; $atts[] = 'show_excerpt_small'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_set_prop( 'show-excerpt-big', $atts['show_excerpt_big'] ); publisher_set_prop( 'show-excerpt-small', $atts['show_excerpt_small'] ); publisher_get_view( 'loop', 'listing-mix-4-5' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Show Big Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_big', 'type' => 'switch', // 'vc_admin_label' => false, ), array( 'name' => __( 'Show Small Posts Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_small', 'type' => 'switch', // 'vc_admin_label' => false, ), ), parent::get_fields(), parent::block_ad_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { return array( 'name' => __( 'Mix 15', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-4-5.png', ); } // page_builder_settings } // Publisher_Mix_Listing_4_5_Shortcode /** * Publisher Mix Listing 4-6 */ class Publisher_Mix_Listing_4_6_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-4-6'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 6, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-4-6', 'show_excerpt_big' => true, 'show_excerpt_small' => true, 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'show_excerpt_big'; $atts[] = 'show_excerpt_small'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_set_prop( 'show-excerpt-big', $atts['show_excerpt_big'] ); publisher_set_prop( 'show-excerpt-small', $atts['show_excerpt_small'] ); publisher_get_view( 'loop', 'listing-mix-4-6' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Show Big Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_big', 'type' => 'switch', // 'vc_admin_label' => false, ), array( 'name' => __( 'Show Small Posts Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_small', 'type' => 'switch', // 'vc_admin_label' => false, ), ), parent::get_fields(), parent::block_ad_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { return array( 'name' => __( 'Mix 16', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-4-6.png', ); } // page_builder_settings /** * Excludes slider pagination * * @return array */ public static function pagination_styles() { $all_pagination_styles = parent::pagination_styles(); unset( $all_pagination_styles['slider'] ); return $all_pagination_styles; } } // Publisher_Mix_Listing_4_6_Shortcode /** * Publisher Mix Listing 4-7 */ class Publisher_Mix_Listing_4_7_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-4-7'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 5, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-4-7', 'show_excerpt_big' => true, 'show_excerpt_small' => true, 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'show_excerpt_big'; $atts[] = 'show_excerpt_small'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_set_prop( 'show-excerpt-big', $atts['show_excerpt_big'] ); publisher_set_prop( 'show-excerpt-small', $atts['show_excerpt_small'] ); publisher_get_view( 'loop', 'listing-mix-4-7' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Show Big Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_big', 'type' => 'switch', // 'vc_admin_label' => false, ), array( 'name' => __( 'Show Small Posts Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_small', 'type' => 'switch', // 'vc_admin_label' => false, ), ), parent::get_fields(), parent::block_ad_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { return array( 'name' => __( 'Mix 17', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-4-7.png', ); } // page_builder_settings } // Publisher_Mix_Listing_4_7_Shortcode /** * Publisher Mix Listing 4-8 */ class Publisher_Mix_Listing_4_8_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-mix-listing-4-8'; $_options = array( 'defaults' => array( 'title' => '', 'hide_title' => 0, 'icon' => '', 'category' => '', 'tag' => '', 'post_ids' => '', 'post_type' => '', 'offset' => '', 'count' => 5, 'order_by' => 'date', 'order' => 'DESC', 'time_filter' => '', 'style' => 'listing-mix-4-8', 'show_excerpt_big' => true, 'show_excerpt_small' => true, 'tabs' => false, 'tabs_cat_filter' => '', ), 'have_widget' => false, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } if ( isset( $options['widget_class'] ) ) { $_options['widget_class'] = $options['widget_class']; } add_filter( 'publisher-theme-core/pagination/filter-data/' . __CLASS__, array( $this, 'append_required_atts' ) ); parent::__construct( $id, $_options ); } /** * Adds this listing custom atts to bs_pagin * * @param $atts * * @return array */ public function append_required_atts( $atts ) { $atts[] = 'show_excerpt_big'; $atts[] = 'show_excerpt_small'; $atts[] = 'override-listing-settings'; $atts[] = 'listing-settings'; return $atts; } /** * Display the inner content of listing * * @param string $atts Attribute of shortcode or ajax action * @param string $tab Tab * @param string $pagin_button Ajax action button */ function display_content( &$atts, $tab = '', $pagin_button = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); // Change title tag to p for adding more priority to content heading tags. if ( bf_get_current_sidebar() || publisher_inject_location_get_status() ) { publisher_set_blocks_title_tag( 'p' ); } $atts = publisher_improve_block_atts_for_size( $atts, 'mix-4' ); if ( isset( $atts['mix-layout'] ) ) { publisher_set_prop( 'listing-class', $atts['mix-layout'] ); } publisher_set_prop( 'show-excerpt-big', $atts['show_excerpt_big'] ); publisher_set_prop( 'show-excerpt-small', $atts['show_excerpt_small'] ); publisher_get_view( 'loop', 'listing-mix-4-8' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Show Big Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_big', 'type' => 'switch', // 'vc_admin_label' => false, ), array( 'name' => __( 'Show Small Posts Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt_small', 'type' => 'switch', // 'vc_admin_label' => false, ), ), parent::get_fields(), parent::block_ad_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { return array( 'name' => __( 'Mix 18', 'publisher' ), "base" => $this->id, "description" => '', "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-mix-listing-4-8.png', ); } // page_builder_settings } // Publisher_Mix_Listing_4_8_Shortcode {"id":2535,"count":1,"description":"","link":"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/","name":"Conf\u00e9rence de presse des anciens","slug":"conference-de-presse-des-anciens","taxonomy":"post_tag","meta":[],"yoast_head":"\nConf\u00e9rence de presse des anciens Archives - JusteInfos- Information g\u00e9n\u00e9rale<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Conf\u00e9rence de presse des anciens Archives - JusteInfos- Information g\u00e9n\u00e9rale\" \/>\n<meta property=\"og:url\" content=\"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/\" \/>\n<meta property=\"og:site_name\" content=\"JusteInfos- Information g\u00e9n\u00e9rale\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"CollectionPage\",\"@id\":\"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/\",\"url\":\"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/\",\"name\":\"Conf\u00e9rence de presse des anciens Archives - JusteInfos- Information g\u00e9n\u00e9rale\",\"isPartOf\":{\"@id\":\"https:\/\/justeinfos.net\/#website\"},\"breadcrumb\":{\"@id\":\"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/#breadcrumb\"},\"inLanguage\":\"fr-FR\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/justeinfos.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Conf\u00e9rence de presse des anciens\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/justeinfos.net\/#website\",\"url\":\"https:\/\/justeinfos.net\/\",\"name\":\"JusteInfos- Information g\u00e9n\u00e9rale\",\"description\":\"L'Information-Juste M\u00e9sur\u00e9e ett Sans Passion\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/justeinfos.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Conf\u00e9rence de presse des anciens Archives - JusteInfos- Information g\u00e9n\u00e9rale","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/","og_locale":"fr_FR","og_type":"article","og_title":"Conf\u00e9rence de presse des anciens Archives - JusteInfos- Information g\u00e9n\u00e9rale","og_url":"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/","og_site_name":"JusteInfos- Information g\u00e9n\u00e9rale","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"CollectionPage","@id":"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/","url":"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/","name":"Conf\u00e9rence de presse des anciens Archives - JusteInfos- Information g\u00e9n\u00e9rale","isPartOf":{"@id":"https:\/\/justeinfos.net\/#website"},"breadcrumb":{"@id":"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/#breadcrumb"},"inLanguage":"fr-FR"},{"@type":"BreadcrumbList","@id":"https:\/\/justeinfos.net\/tag\/conference-de-presse-des-anciens\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/justeinfos.net\/"},{"@type":"ListItem","position":2,"name":"Conf\u00e9rence de presse des anciens"}]},{"@type":"WebSite","@id":"https:\/\/justeinfos.net\/#website","url":"https:\/\/justeinfos.net\/","name":"JusteInfos- Information g\u00e9n\u00e9rale","description":"L'Information-Juste M\u00e9sur\u00e9e ett Sans Passion","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/justeinfos.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"}]}},"_links":{"self":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/tags\/2535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/tags"}],"about":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/taxonomies\/post_tag"}],"wp:post_type":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/posts?tags=2535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}