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 = []; } } Union Africaine - JusteInfos- Information générale https://justeinfos.net L'Information-Juste Mésurée ett Sans Passion Wed, 22 Jan 2025 20:34:52 +0000 fr-FR hourly 1 https://wordpress.org/?v=6.7.2 https://justeinfos.net/wp-content/uploads/2022/06/cropped-512x512-1-32x32.png Union Africaine - JusteInfos- Information générale https://justeinfos.net 32 32 OMS : L’UA et l’UE consternées et inquiètes du retrait des Etats-Unis https://justeinfos.net/oms-lua-et-lue-consternees-et-inquietes-du-retrait-des-etats-unis/?utm_source=rss&utm_medium=rss&utm_campaign=oms-lua-et-lue-consternees-et-inquietes-du-retrait-des-etats-unis Wed, 22 Jan 2025 20:31:33 +0000 https://justeinfos.net/?p=11425 OMS

L’annonce du retrait des Etats Unis de l’Organisation mondiale de la Santé (OMS), par le 47è président des Etats-Unis d’Amérique, Donald Trump, n’a pas laissé l’Union Africaine et l’Union Européenne sans réaction. En effet, dans un communiqué, ce mercredi 22 janvier 2025, la plus grande organisation africaine s’est dite « consternée » par cette décision et a […]

The post OMS : L’UA et l’UE consternées et inquiètes du retrait des Etats-Unis first appeared on JusteInfos- Information générale.

Cet article OMS : L’UA et l’UE consternées et inquiètes du retrait des Etats-Unis est apparu en premier sur JusteInfos- Information générale.

]]>
OMS

L’annonce du retrait des Etats Unis de l’Organisation mondiale de la Santé (OMS), par le 47è président des Etats-Unis d’Amérique, Donald Trump, n’a pas laissé l’Union Africaine et l’Union Européenne sans réaction. En effet, dans un communiqué, ce mercredi 22 janvier 2025, la plus grande organisation africaine s’est dite « consternée » par cette décision et a dit espérer que le pays de l’Oncle Sam « reconsidèrera sa décision. »

A cet effet, le président de la Commission de l’UA, Moussa Faki Mahamat, a fait savoir que « aujourd’hui, plus que jamais, le monde dépend de l’OMS pour s’acquitter de son mandat visant à assurer la sécurité de la santé publique mondiale en tant que bien commun partagé. » Ce pourquoi, il dit espéré que « le gouvernement américain reconsidérera sa décision de se retirer de cette organisation mondiale clé dont il est membre fondateur. »

Cette décision demeure d’autan plus inquiétante pour l’UA du fait que le continent reste confronté à plusieurs épidémies telles que le mpox et le virus de Marburg. Aussi pour Moussa Faki Mahamat, « en Afrique, les États-Unis ont été l’un des premiers et forts partisans de la création de l’Africa CDC, l’agence technique de l’Union africaine pour les urgences de santé publique qui travaille avec l’OMS et les membres mondiaux de l’OMS pour détecter, préparer, répondre et se remettre des pandémies. »

En plus de l’UA, l’Union Européenne (UE) se dit également « inquiète » du décret signé par le président Trump pour retirer son pays de l’OMS. Donald Trump justifie ce décret de retrait de son pays de l’OMS par le fait qu’il y a un écart des contributions financières américaines et chinoises. Lors de son premier mandat, en 2020, le président américain réélu pour un nouveau mandat avait entamé les démarches pour quitter l’OMS.

Benoît Kadjo

The post OMS : L’UA et l’UE consternées et inquiètes du retrait des Etats-Unis first appeared on JusteInfos- Information générale.

Cet article OMS : L’UA et l’UE consternées et inquiètes du retrait des Etats-Unis est apparu en premier sur JusteInfos- Information générale.

]]>
Abidjan: des pays africains planchent sur une règlementation commune des droits des travailleurs migrants https://justeinfos.net/abidjan-des-pays-africains-planchent-sur-une-reglementation-commune-des-droits-des-travailleurs-migrants/?utm_source=rss&utm_medium=rss&utm_campaign=abidjan-des-pays-africains-planchent-sur-une-reglementation-commune-des-droits-des-travailleurs-migrants Thu, 19 Oct 2023 19:41:01 +0000 https://justeinfos.net/?p=7617

L’Organisation internationale du travail (OIT) et la Commission de l’Union Africaine, en collaboration avec l’Organisation internationale des employeurs (OIE) et l’Organisation régionale africaine de la confédération syndicale internationale (CSI-Afrique), organisent une conférence/dialogue Africaine sur les migrations à Abidjan en Côte d’Ivoire depuis le mercredi 18 octobre 2023. Cette conférence entend aboutir sur un appel de […]

The post Abidjan: des pays africains planchent sur une règlementation commune des droits des travailleurs migrants first appeared on JusteInfos- Information générale.

Cet article Abidjan: des pays africains planchent sur une règlementation commune des droits des travailleurs migrants est apparu en premier sur JusteInfos- Information générale.

]]>

L’Organisation internationale du travail (OIT) et la Commission de l’Union Africaine, en collaboration avec l’Organisation internationale des employeurs (OIE) et l’Organisation régionale africaine de la confédération syndicale internationale (CSI-Afrique), organisent une conférence/dialogue Africaine sur les migrations à Abidjan en Côte d’Ivoire depuis le mercredi 18 octobre 2023. Cette conférence entend aboutir sur un appel de l’Afrique à une action et proposition communes pour protéger les droits des travailleurs et travailleuses migrants.

Prof Dié Kacou, représentant le ministre ivoirien de l’Emploi et de la protection sociale.

Ouvrant les travaux de cette conférence africaine sur la migration, Prof Dié Kacou, conseiller technique, représentant le ministre ivoirien de l’Emploi et de la protection sociale, maître Adama Karama, a indiqué que les migrations de main d’œuvre sont l’un des principaux défis auxquels le monde est confronté « et l’Afrique enquête d’une intégration économique plus renforcée n’y échappe pas. »

Il a dit que l’essentiel du flux migratoire en Afrique vers les autres régions du monde est intra-régional, en dépit de l’afflux important des migrants clandestins en provenance du continent africain vers les autres pays du monde.

Il reconnait, par ailleurs, que la diversité des réglementations en matière d’emploi, de travail, de protection sociale et l’insuffisance de normes au niveau continental rendent complexe une gestion optimale de la situation de la main d’œuvre migrante. A cet effet, pour le représentant du ministre Adama Kamara, il est nécessaire pour l’Afrique, à travers une mutualisation des efforts, d’améliorer la gouvernance de la migration.

« Il est donc fondamental, d’identifier ou d’améliorer les politiques ou actions déployées dans le cadre de la régulation de la migration dans nos pays, nos espaces régionaux et même à l’échelle du continent », a-t-il proposé. Citant la Côte d’Ivoire comme une terre d’hospitalité qui a toujours reçu des migrants en quête du bien-être, Prof Dié Kacou a fait savoir que les autorités ivoiriennes dans ces dernières décennies ont mis en place de nombreux mécanismes pour garantir une protection sociale aussi bien aux nationaux qu’à toute personne vivant sur le territoire ivoirien.

L’ambassadeur de Suisse en Côte d’Ivoire a réitéré le soutien de son pays pour cette lutte.

Et pour lui, ces mécanismes garantissant la protection sociale des migrants et nationaux en terre ivoirienne sont des instruments novateurs que sont la Couverture maladie universelle (CMU), pour le secteur de la santé et le régime social des travailleurs indépendants.

« Ces dispositifs traduisent tout l’intérêt accordé à la question de la migration de la main d’œuvre en vue d’apporter à toutes les populations un mieux-être et une protection accrue de leur droits fondamentaux au travail », a-t-il expliqué.

Mme Fanfan Rwanyindo Kayirangwa, directrice générale adjointe de l’OIT et directrice régionale pour l’Afrique de cette institution onusienne a indiqué qu’il est question, à travers cette conférence de faire le lit  d’une justice sociale pour les travailleurs migrants. « C’est une opportunité de réfléchir ensemble pour s’engager dans un dialogue inclusif », a-t-elle affirmé. La directrice régionale de l’OIT pour l’Afrique a appelé à un règlement unique en vers des pays africains de destination d’accueil. Aussi a-t-elle ajouté que 35% de femmes sont concernées par la question de migration. En précisant que la plupart des migrants sont des travailleurs ne bénéficiant pas de leurs droits, sous-traités et victime d’inégalité au niveau du genre en matière de travail.

La directrice adjointe et directrice régionale Afrique de l’OIT.

A en croire Mme Fanfan Rwanyindo Kayirangwa, l’avènement de la COVID a intensifié cette inégalité et a montré l’inefficacité des systèmes. Tous les intervenants, que ce soit de l’Union Africaine, le représentant des travailleurs et celui des employeurs, l’ambassadeur de  Suisse en Côte d’Ivoire, partenaire de la lutte… sont tous unanimes qu’il faut mutualiser les forces pour lutter en vue de l’amélioration des conditions des travailleurs migrants aussi bien sur le continent qu’ailleurs. Parce que le travailleur migrant est acteur de développement.

Ils ont également souligné le fait que c’est seulement 30% des migrants qui traversent l’eau. Il y a plutôt 80% de migrants qui se déplacent sur le continent. Il faut noter que plusieurs panels sont prévus durant les trois jours de travaux en vue de permettre aux pays africains participants, aux représentants des employeurs et des travailleurs de faire des recommandations pour des actions et solutions concrètes à une réglementation collective de la gouvernance des travailleurs migrants africains.

Benoît Kadjo

The post Abidjan: des pays africains planchent sur une règlementation commune des droits des travailleurs migrants first appeared on JusteInfos- Information générale.

Cet article Abidjan: des pays africains planchent sur une règlementation commune des droits des travailleurs migrants est apparu en premier sur JusteInfos- Information générale.

]]>