/** * Get the header aside content template part. * * @since Total 1.5.3 */ function wpex_header_aside() { if (wpex_header_supports_aside()) { get_template_part('partials/header/header-aside'); } }
/** * Header Aside Content check so we can load custom CSS from the customizer * * @since 3.0.0 */ private function header_aside_content() { // Not needed here if (!wpex_header_supports_aside($this->header_style)) { return; } // Get header aside content $content = wpex_get_mod('header_aside'); // WPML translations $content = wpex_translate_theme_mod('header_aside', $content); // Check if content is a page ID and get page content if (is_numeric($content)) { $post_id = $content; $post = get_post($post_id); if ($post && !is_wp_error($post)) { $content = $post->post_content; $this->vc_css_ids[$post_id] = $post_id; } } // Apply filters $content = apply_filters('wpex_header_aside_content', $content); // Return content return $content; }