ings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'Grid 1', 'publisher' ), "base" => $this->id, "icon" => '', 'desc' => __( '1 to 4 Column', 'publisher' ), "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-grid-listing-1.png', ) ); } // page_builder_settings } // Publisher_Grid_Listing_1_Shortcode /** * Publisher Grid Listing 2 */ class Publisher_Grid_Listing_2_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-grid-listing-2'; $_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-grid-2', 'columns' => 2, 'show_excerpt' => 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']; } 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 = '' ) { // Process block level add and set props publisher_process_listing_block_ad( $atts ); $_check = array( 'more_btn' => '', 'infinity' => '', 'more_btn_infinity' => '', ); if ( isset( $_check[ $pagin_button ] ) ) { publisher_set_prop( 'show-listing-wrapper', false ); $atts['bs-pagin-add-to'] = '.listing'; $atts['bs-pagin-add-type'] = 'append'; } unset( $_check ); // Clear memory // 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' ); } // Set columns if ( isset( $atts['columns'] ) ) { $atts = publisher_improve_block_atts_for_size( $atts ); publisher_set_prop( 'listing-class', sprintf( 'columns-%d', $atts['columns'] ) ); } publisher_set_prop( 'show-excerpt', $atts['show_excerpt'] ); publisher_get_view( 'loop', 'listing-grid-2' ); } public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general' ), array( 'name' => __( 'Columns', 'publisher' ), 'id' => 'columns', // 'type' => 'select', 'options' => array( '1' => __( '1 Column', 'publisher' ), '2' => __( '2 Column', 'publisher' ), '3' => __( '3 Column', 'publisher' ), '4' => __( '4 Column', 'publisher' ), '5' => __( '5 Column', 'publisher' ), ), // 'vc_admin_label' => true, ), array( 'desc' => __( 'You can hide post excerpt with turning off this field.', 'publisher' ), 'name' => __( 'Show Post Excerpt?', 'publisher' ), 'section_class' => 'style-floated-left bordered', 'id' => 'show_excerpt', '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' => __( 'Grid 2', 'publisher' ), "base" => $this->id, "icon" => '', 'desc' => __( '1 to 4 Column', 'publisher' ), "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-grid-listing-2.png', ) ); } // page_builder_settings } // Publisher_Grid_Listing_2_Shortcode Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-user-listing-2'; $_options = array( 'defaults' => array( 'columns' => 1, 'style' => 'user-listing-2', ), 'have_widget' => true, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, 'query_type' => 'user', ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } parent::__construct( $id, $_options ); } /** * 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 = '' ) { publisher_set_prop( $this->id, $atts ); publisher_set_prop( 'user-query', $this->get_query() ); publisher_set_prop( 'listing-class', sprintf( 'columns-%d', $atts['columns'] ) ); publisher_get_view( 'loop', 'listing-user-2' ); } /** * @return array */ public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Columns', 'publisher' ), 'id' => 'columns', // 'type' => 'select', 'options' => array( '1' => __( '1 Column', 'publisher' ), '2' => __( '2 Column', 'publisher' ), '3' => __( '3 Column', 'publisher' ), ), ), ), parent::get_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'User 2', 'publisher' ), "base" => $this->id, "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-user-listing-2.png', ) ); } // page_builder_settings } // Publisher_User_Listing_2_Shortcode /** * Publisher User Listing 2 Widget */ class Publisher_User_Listing_2_Widget extends Publisher_Theme_Listing_Widget { /** * Register widget. */ function __construct() { $this->defaults['columns'] = 1; parent::__construct( 'bs-user-listing-2', __( 'Listing - User 2', 'publisher' ), array( 'description' => __( 'Widget for Listing Authors', 'publisher' ) ), false, 'user' ); } /** * 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-user-listing-2-big-widget.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 User Listing 3 */ class Publisher_User_Listing_3_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-user-listing-3'; $_options = array( 'defaults' => array( 'columns' => '', 'style' => 'user-listing-3', ), 'have_widget' => true, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, 'query_type' => 'user', ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } parent::__construct( $id, $_options ); } /** * 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 = '' ) { publisher_set_prop( $this->id, $atts ); publisher_set_prop( 'user-query', $this->get_query() ); publisher_set_prop( 'listing-class', sprintf( 'columns-%d', $atts['columns'] ) ); publisher_set_prop( 'listing-columns', $atts['columns'] ); publisher_get_view( 'loop', 'listing-user-3' ); } /** * @return array */ public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Columns', 'publisher' ), 'id' => 'columns', // 'type' => 'select', 'options' => array( '1' => __( '1 Column', 'publisher' ), '2' => __( '2 Column', 'publisher' ), '3' => __( '3 Column', 'publisher' ), ), ), ), parent::get_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'User 3', 'publisher' ), "base" => $this->id, "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-user-listing-3.png', ) ); } // page_builder_settings } // Publisher_User_Listing_3_Shortcode /** * Publisher User Listing 3 Widget */ class Publisher_User_Listing_3_Widget extends Publisher_Theme_Listing_Widget { /** * Register widget. */ function __construct() { $this->defaults['columns'] = 1; parent::__construct( 'bs-user-listing-3', __( 'Listing - User 3', 'publisher' ), array( 'description' => __( 'Widget for Listing Authors', 'publisher' ) ), false, 'user' ); } /** * 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-user-listing-3-big-widget.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 User Listing 4 */ class Publisher_User_Listing_4_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-user-listing-4'; $_options = array( 'defaults' => array( 'columns' => 3, 'style' => 'user-listing-4', ), 'have_widget' => true, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, 'query_type' => 'user', ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } parent::__construct( $id, $_options ); } /** * 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 = '' ) { publisher_set_prop( $this->id, $atts ); publisher_set_prop( 'user-query', $this->get_query() ); publisher_set_prop( 'listing-class', sprintf( 'columns-%d', $atts['columns'] ) ); publisher_get_view( 'loop', 'listing-user-4' ); } /** * @return array */ public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Columns', 'publisher' ), 'id' => 'columns', // 'type' => 'select', 'options' => array( '1' => __( '1 Column', 'publisher' ), '2' => __( '2 Column', 'publisher' ), '3' => __( '3 Column', 'publisher' ), '4' => __( '4 Column', 'publisher' ), '5' => __( '5 Column', 'publisher' ), ), ), ), parent::get_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'User 4', 'publisher' ), "base" => $this->id, "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-user-listing-4.png', ) ); } // page_builder_settings } // Publisher_User_Listing_4_Shortcode /** * Publisher User Listing 4 Widget */ class Publisher_User_Listing_4_Widget extends Publisher_Theme_Listing_Widget { /** * Register widget. */ function __construct() { $this->defaults['columns'] = 1; parent::__construct( 'bs-user-listing-4', __( 'Listing - User 4', 'publisher' ), array( 'description' => __( 'Widget for Listing Authors', 'publisher' ) ), false, 'user' ); } /** * 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-user-listing-4-big-widget.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 User Listing 5 */ class Publisher_User_Listing_5_Shortcode extends Publisher_Theme_Listing_Shortcode { function __construct( $id, $options ) { $id = 'bs-user-listing-5'; $_options = array( 'defaults' => array( 'columns' => 3, 'style' => 'user-listing-5', ), 'have_widget' => true, 'have_vc_add_on' => true, 'have_gutenberg_add_on' => true, 'query_type' => 'user', ); if ( isset( $options['shortcode_class'] ) ) { $_options['shortcode_class'] = $options['shortcode_class']; } parent::__construct( $id, $_options ); } /** * 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 = '' ) { publisher_set_prop( $this->id, $atts ); publisher_set_prop( 'user-query', $this->get_query() ); publisher_set_prop( 'listing-class', sprintf( 'columns-%d', $atts['columns'] ) ); publisher_get_view( 'loop', 'listing-user-5' ); } /** * @return array */ public function get_fields() { return array_merge( array( array( 'type' => 'tab', 'name' => __( 'General', 'publisher' ), 'id' => 'general', ), array( 'name' => __( 'Columns', 'publisher' ), 'id' => 'columns', // 'type' => 'select', 'options' => array( '1' => __( '1 Column', 'publisher' ), '2' => __( '2 Column', 'publisher' ), '3' => __( '3 Column', 'publisher' ), '4' => __( '4 Column', 'publisher' ), '5' => __( '5 Column', 'publisher' ), ), ), ), parent::get_fields() ); } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'User 5', 'publisher' ), "base" => $this->id, "weight" => 10, "wrapper_height" => 'full', "category" => publisher_white_label_get_option( 'publisher' ), 'icon_url' => PUBLISHER_THEME_URI . 'images/shortcodes/bs-user-listing-5.png', ) ); } // page_builder_settings } // Publisher_User_Listing_5_Shortcode /** * Publisher User Listing 5 Widget */ class Publisher_User_Listing_5_Widget extends Publisher_Theme_Listing_Widget { /** * Register widget. */ function __construct() { $this->defaults['columns'] = 1; parent::__construct( 'bs-user-listing-5', __( 'Listing - User 5', 'publisher' ), array( 'description' => __( 'Widget for Listing Authors', 'publisher' ) ), false, 'user' ); } /** * 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-user-listing-5-big-widget.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() ); } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } []; $post = null; if ( $indexable->object_type === 'post' ) { $post = \get_post( $indexable->object_id ); $blocks = $this->blocks->get_all_blocks_from_content( $post->post_content ); } $context = $this->context_prototype->of( [ 'indexable' => $indexable, 'blocks' => $blocks, 'post' => $post, 'page_type' => $page_type, ] ); $context->presentation = $this->presentation_memoizer->get( $indexable, $context, $page_type ); $this->cache[ $indexable->id ] = $context; } return $this->cache[ $indexable->id ]; } /** * Clears the memoization of either a specific indexable or all indexables. * * @param Indexable|int|string|null $indexable Optional. The indexable or indexable id to clear the memoization of. * * @return void */ public function clear( $indexable = null ) { if ( $indexable instanceof Indexable ) { unset( $this->cache[ $indexable->id ] ); return; } if ( $indexable !== null ) { unset( $this->cache[ $indexable ] ); return; } $this->cache = []; } } {"id":10682,"date":"2024-10-06T23:09:16","date_gmt":"2024-10-06T22:09:16","guid":{"rendered":"https:\/\/justeinfos.net\/?p=10682"},"modified":"2024-10-06T23:09:16","modified_gmt":"2024-10-06T22:09:16","slug":"1e-edition-de-mara-monde-cote-divoire-2024-lequipe-ivoirienne-vainqueur","status":"publish","type":"post","link":"https:\/\/justeinfos.net\/1e-edition-de-mara-monde-cote-divoire-2024-lequipe-ivoirienne-vainqueur\/","title":{"rendered":"1\u00e8 \u00e9dition de Mara Monde C\u00f4te d\u2019Ivoire 2024 : l\u2019Equipe ivoirienne vainqueur"},"content":{"rendered":"

La C\u00f4te d\u2019Ivoire, pays organisateur de la 1\u00e8 \u00e9dition de la coupe du monde de Maracana, \u00e0 l\u2019instar de la CAN TotalEnergie 2024 de football, a remport\u00e9 ce dimanche 06 octobre 2024, \u00a0le troph\u00e9e de Mara Monde C\u00f4te d\u2019Ivoire 2024 tenue \u00e0 Abidjan, au Palais des Sports, dans la commune de Treichville. <\/em><\/strong><\/p>\n

3-0, c\u2019est le score qui a sanctionn\u00e9 la finale de la coupe du monde de Maracana, d\u00e9nomm\u00e9 Mara Monde C\u00f4te d\u2019Ivoire 2024 tenue en terre ivoirienne. Cette finale qui a oppos\u00e9 le pays organisateur, la C\u00f4te d\u2019Ivoire au B\u00e9nin, un autre pays de l\u2019Afrique de l\u2019Ouest a vu la victoire des El\u00e9phants maracaniers, qui ont battu les Gu\u00e9pards marcaniers du B\u00e9nin.<\/p>\n

Cette finale, sans grande suspense, a \u00e9t\u00e9 domin\u00e9e depuis le d\u00e9but par l\u2019\u00e9quipe ivoirienne, meilleure d\u00e9fense de cette coupe du monde de Maracana avec seulement 3 buts encaiss\u00e9s. Les Ivoiriens, \u00a0plus offensifs avec une \u00e9quipe du B\u00e9nin tr\u00e8s repli\u00e9e en d\u00e9fense, ont dict\u00e9 leur loi de pays fondateur du Maracana aux Gu\u00e9pards maracaniers du B\u00e9nin. Apr\u00e8s avoir men\u00e9 2 \u00e0 0, dans les deux premiers Tiers temps, les El\u00e9phants maracaniers ont termin\u00e9 le dernier tiers temps par 3-0.<\/p>\n

Bonne op\u00e9ration pour les Ivoiriens qui remportent, \u00e0 l\u2019instar des El\u00e9phants footballeurs lors de la derni\u00e8re coupe d\u2019Afrique des nations de football, la coupe du monde du Maracana, Mara Monde C\u00f4te d\u2019Ivoire 2024. Il faut pr\u00e9ciser que la deuxi\u00e8me \u00e9dition de Mara Monde, \u00a0apr\u00e8s cette 1\u00e8 \u00e9dition 2024 en terre ivoirienne, se tiendra au Cameroun, en 2026.<\/p>\n

Beno\u00eet Kadjo<\/p>\n","protected":false},"excerpt":{"rendered":"

La C\u00f4te d\u2019Ivoire, pays organisateur de la 1\u00e8 \u00e9dition de la coupe du monde de Maracana, \u00e0 l\u2019instar de la CAN TotalEnergie 2024 de football, a remport\u00e9 ce dimanche 06 octobre 2024, \u00a0le troph\u00e9e de Mara Monde C\u00f4te d\u2019Ivoire 2024 tenue \u00e0 Abidjan, au Palais des Sports, dans la commune de Treichville. 3-0, c\u2019est le […]<\/p>\n","protected":false},"author":1,"featured_media":10683,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[666,47],"tags":[118,3068,3069,3067],"class_list":["post-10682","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ji-societe","category-sports","tag-cote-divoire","tag-cote-divoire-2024","tag-finale-mara-monde-cote-divoire-2024","tag-mara-monde"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/posts\/10682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/comments?post=10682"}],"version-history":[{"count":1,"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/posts\/10682\/revisions"}],"predecessor-version":[{"id":10684,"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/posts\/10682\/revisions\/10684"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/media\/10683"}],"wp:attachment":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/media?parent=10682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/categories?post=10682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/tags?post=10682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}