ngle-prim-cat-%%id%% ul.bs-shortcode-list li:before'; $term_css['color']['selector'][] = 'body.single-prim-cat-%%id%% .next-prev-post .title a:hover'; $term_css['color']['selector'][] = 'body.single-prim-cat-%%id%% .off-canvas-menu ul.menu>li>a:hover'; $term_css['color']['selector'][] = 'body.single-prim-cat-%%id%% .bf-breadcrumb .bf-breadcrumb-item a:hover span'; $term_css['color']['selector'][] = '.site-header.site-header .main-menu.menu > li.menu-term-%%id%%.current-menu-parent > a'; // Background Color $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .archive-title .term-badges span.term-badge a:hover'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .back-top'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .section-heading.sh-t7 .h-text:before'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% input[type="submit"]'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% input[type="submit"]:hover'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .ajax-search-results:after'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .off-canvas-inner:after'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .bs-subscribe-newsletter .newsletter-subscribe'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .btn-bs-pagination:hover'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .entry-terms.post-tags a:hover'; $term_css['bg_color']['selector'][] = 'body.single-prim-cat-%%id%% .rh-cover'; // $term_css['selection'] = array( 'selector' => array( 'body.single-prim-cat-%%id%% ::selection' ), 'prop' => array( 'background' => '%%value%% !important', ), ); $term_css['moz_selection'] = array( 'selector' => array( 'body.single-prim-cat-%%id%% ::-moz-selection' ), 'prop' => array( 'background' => '%%value%% !important', ), ); $fields['term_color'][ $this->get_css_id() ] = $term_css; // Clear memory unset( $term_css ); return $fields; } /** * Enqueue current style css file */ function register_assets() { bf_enqueue_style( 'publisher-theme-colorful-magazine', bf_append_suffix( Publisher_Theme_Styles_Manager::get_uri( 'colorful-magazine/style' ), '.css' ), array( 'publisher' ), bf_append_suffix( Publisher_Theme_Styles_Manager::get_path( 'colorful-magazine/style' ), '.css' ), Better_Framework()->theme()->get( 'Version' ) ); } /** * TinyMCE Style */ public function register_tinymce_assets() { bf_enqueue_tinymce_style( 'registered', 'publisher-theme-colorful-magazine' ); } /** * Injects Page templates for current style * * @param $page_templates * * @return mixed */ function page_templates_config( $page_templates ) { publisher_set_global( 'style-page-template', $this->style_id ); include PUBLISHER_THEME_PATH . 'includes/styles/' . $this->style_id . '/page-templates.php'; publisher_unset_global( 'style-page-template' ); return $page_templates; } } // Publisher_Theme_Style_Colorful_Magazine lass, Not_Admin_Ajax_Conditional::class, User_Can_Manage_Wpseo_Options_Conditional::class, ]; } /** * Checks whether the notification should be shown and adds * it to the notification center if this is the case. * * @return void */ public function maybe_create_notification() { if ( ! $this->should_show_notification() ) { return; } if ( ! $this->notification_center->get_notification_by_id( self::NOTIFICATION_ID ) ) { $notification = $this->notification(); $this->notification_helper->restore_notification( $notification ); $this->notification_center->add_notification( $notification ); } } /** * Checks whether the notification should not be shown anymore and removes * it from the notification center if this is the case. * * @return void */ public function maybe_cleanup_notification() { $notification = $this->notification_center->get_notification_by_id( self::NOTIFICATION_ID ); if ( $notification === null ) { return; } if ( $this->should_show_notification() ) { return; } $this->notification_center->remove_notification_by_id( self::NOTIFICATION_ID ); } /** * Checks whether the notification should be shown. * * @return bool If the notification should be shown. */ protected function should_show_notification() { if ( ! $this->environment_helper->is_production_mode() ) { return false; } // Don't show a notification if the indexing has already been started earlier. if ( $this->indexing_helper->get_started() > 0 ) { return false; } // We're about to perform expensive queries, let's inform. \add_filter( 'wpseo_unindexed_count_queries_ran', '__return_true' ); // Never show a notification when nothing should be indexed. return $this->indexing_helper->get_limited_filtered_unindexed_count( 1 ) > 0; } /** * Returns an instance of the notification. * * @return Yoast_Notification The notification to show. */ protected function notification() { $reason = $this->indexing_helper->get_reason(); $presenter = $this->get_presenter( $reason ); return new Yoast_Notification( $presenter, [ 'type' => Yoast_Notification::WARNING, 'id' => self::NOTIFICATION_ID, 'capabilities' => 'wpseo_manage_options', 'priority' => 0.8, ] ); } /** * Gets the presenter to use to show the notification. * * @param string $reason The reason for the notification. * * @return Indexing_Failed_Notification_Presenter|Indexing_Notification_Presenter */ protected function get_presenter( $reason ) { if ( $reason === Indexing_Reasons::REASON_INDEXING_FAILED ) { $presenter = new Indexing_Failed_Notification_Presenter( $this->product_helper, $this->short_link_helper, $this->addon_manager ); } else { $total_unindexed = $this->indexing_helper->get_filtered_unindexed_count(); $presenter = new Indexing_Notification_Presenter( $this->short_link_helper, $total_unindexed, $reason ); } return $presenter; } } * * Republishes the original post with the passed post, when using the Classic Editor. * * Runs also in the Block Editor to save the custom meta data only when there * are custom meta boxes. * * @param int $post_id The copy's post ID. * @param WP_Post $post The copy's post object. * * @return void */ public function track_after_post_request( $post_id, $post ) { if ( $this->is_rest_request() ) { return; } $this->track_request( $post ); } } Santé - JusteInfos- Information générale

Browsing tag

Santé