function wpex_search_in_menu() { if (!get_theme_mod('main_search', true)) { return false; } elseif ('two' == wpex_get_header_style()) { return false; } else { return true; } }
function wpex_hook_main_before_default() { $header_style = wpex_get_header_style(); if ($header_style == 'two' || $header_style == 'three') { // Above menu slider if ('above_menu' == wpex_post_slider_position()) { wpex_post_slider(); } wpex_header_menu(); } }
function wpex_hook_header_bottom_default() { // Header menu for header styles 2 or 3 $header_style = wpex_get_header_style(); if ($header_style == 'two' || $header_style == 'three') { // Above menu slider if ('above_menu' == wpex_post_slider_position()) { wpex_post_slider(); } wpex_header_menu(); } }
function wpex_header_classes($post_id = '') { // Post id $post_id = $post_id ? $post_id : wpex_get_the_id(); // Get header style $header_style = wpex_get_header_style($post_id); // Check if is mobile $is_mobile = wp_is_mobile(); // Fixed Header $fixed_header = get_theme_mod('fixed_header', true); // Setup classes array $classes = array(); // Clearfix class $classes['clr'] = 'clr'; // Main header style $classes['header_style'] = 'header-' . $header_style; // Sticky Header if (!$is_mobile && $fixed_header && 'one' == $header_style) { $classes['fixed_scroll'] = 'fixed-scroll'; } // Header Overlay Style if ($post_id && wpex_is_overlay_header_enabled($post_id)) { // Remove fixed scroll class unset($classes['fixed_scroll']); // Add overlay header class $classes['overlay_header'] = 'overlay-header'; // Add a fixed class for the overlay-header style only if (!$is_mobile && $fixed_header) { $classes['fix_on_scroll'] = 'fix-on-scroll'; } // Add overlay header style class if ($meta = get_post_meta($post_id, 'wpex_overlay_header_style', true)) { $overlay_style = $meta; } else { $overlay_style = 'light'; } $classes['overlay_header_style'] = $overlay_style . '-style'; } // Apply filters $classes = apply_filters('wpex_header_classes', $classes); // Echo classes as space seperated classes echo implode(' ', $classes); }
wp_head(); ?> <link rel="stylesheet" type="text/css" href="http://substanceabuserehabs.com/wp-content/themes/Total/custom.css"> <!-- Pinterest --> <meta name="p:domain_verify" content="7dc715d9faeae1fadbb59fada6ab3d7f"/> </head> <!-- Begin Body --> <body <?php body_class(); ?> > <div id="wrap" class="clr"> <?php // Display header if enabled // See functions/header-display.php if (wpex_display_header() == true) { ?> <?php // Get header style // See functions/header-display.php $wpex_header_style = wpex_get_header_style(); get_template_part('headers/header', $wpex_header_style); ?> <?php } ?> <div id="main" class="site-main clr">
* Header aside content used in Header Style Two by default * * @package Total * @subpackage Partials/Header * @author Alexander Clarke * @copyright Copyright (c) 2014, Symple Workz LLC * @link http://www.wpexplorer.com * @since Total 1.6.0 * @version 1.0.0 */ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // Only used for header style 2 if ('two' != wpex_get_header_style()) { return; } ?> <aside id="header-aside" class=" header-two-aside clr"> <?php if ($content = get_theme_mod('header_aside')) { ?> <div class="header-aside-content clr"> <?php echo do_shortcode($content); ?> </div><!-- .header-aside-content --> <?php }