>
>%1$s %2$s
', esc_html__( 'You are using an outdated browser. Please upgrade your browser to improve your experience.', 'applicator' ), esc_html__( 'Upgrade Browser', 'applicator' ), esc_url( 'http://browsehappy.com/' ) ); // R: Browser Upgrade Note $browser_upgrade_obj = htmlok( array( 'name' => 'Browser Upgrade', 'structure' => array( 'type' => 'object', 'subtype' => 'note', 'layout' => 'inline', ), 'content' => array( 'object' => array( array( 'txt' => $browser_upgrade_note_txt, ), ), 'before' => '', ), ) ); // E: Web Product Start $web_product_start_cn = htmlok( array( 'name' => 'Web Product Start', 'structure' => array( 'type' => 'constructor', ), 'id' => 'web-product-start', 'css' => 'wbp-start', 'content' => array( 'constructor' => array( $go_to_content_nav_cp, $browser_upgrade_obj, ), ), 'echo' => true, ) ); //------------------------------------------------ End: Web Product Start //------------------------------------------------ Main Header //------------------------ Web Product Main Info // R: Web Product Main Name $web_product_main_name_obj = htmlok( array( 'name' => 'Web Product Main Name', 'structure' => array( 'type' => 'object', 'elem' => 'h1', 'linked' => true, 'attr' => array( 'a' => array( 'href' => esc_url( home_url( '/' ) ), ), ), ), 'css' => 'wbp-main-name', 'root_css' => 'site-title', 'title' => get_bloginfo( 'name' ), 'content' => array( 'object' => array( array( 'txt' => get_bloginfo( 'name' ), 'css' => 'wbp-name', ), ), ), ) ); // R: Web Product Main Logo // inc > settings.php | Customizer > Site Identity $web_product_main_logo_obj = ''; if ( has_custom_logo() ) { $web_product_main_logo_obj = htmlok( array( 'name' => 'Web Product Main Logo', 'structure' => array( 'type' => 'object', 'subtype' => 'wordpress generated content', ), 'css' => 'wbp-main-logo', 'title' => get_bloginfo( 'name' ), 'content' => array( 'object' => get_custom_logo(), ), ) ); } // R: Web Product Main Description $web_product_main_description_obj = ''; $description = get_bloginfo( 'description', 'display' ); if ( $description || is_customize_preview() ) { $web_product_main_description_obj = htmlok( array( 'name' => 'Web Product Main Description', 'structure' => array( 'type' => 'object', 'linked' => true, 'attr' => array( 'a' => array( 'href' => esc_url( home_url( '/' ) ), ), ), ), 'css' => 'wbp-main-desc', 'title' => $description, 'content' => array( 'object' => array( array( 'txt' => $description, 'css' => 'wbp-desc', ), ), ), ) ); } // R: Web Product Main Info $web_product_main_info_cp = htmlok( array( 'name' => 'Web Product Main Info', 'structure' => array( 'type' => 'component', 'hr_structure' => true, ), 'css' => 'wbp-main-info', 'content' => array( 'component' => array( // Main Name $web_product_main_name_obj, // Main Logo $web_product_main_logo_obj, // Main Description $web_product_main_description_obj, ), ), ) ); //------------------------ End: Web Product Main Info // R: Web Product Main Media Banner // Custom Header | Customizer > Custom Header | inc > functions > custom-header.php $web_product_main_media_banner_obj = ''; if ( has_header_image() ) { $web_product_main_media_banner_obj = htmlok( array( 'name' => 'Web Product Main Media Banner', 'structure' => array( 'type' => 'object', 'subtype' => 'wordpress generated content', ), 'css' => 'wbp-main-media-banner', 'content' => array( 'object' => get_custom_header_markup(), ), ) ); } // OB: Hook After Main Nav ob_start(); applicator_hook_after_main_nav(); $hook_after_main_nav_ob_content = ob_get_contents(); ob_end_clean(); // OB: Search ob_start(); get_search_form(); $search_ob_content = ob_get_contents(); ob_end_clean(); // E: Main Header $main_header_cn = htmlok( array( 'name' => 'Main Header', 'structure' => array( 'type' => 'constructor', 'subtype' => 'main header', ), 'id' => 'main-header', 'root_css' => 'site-header', 'content' => array( 'constructor' => array( // Web Product Main Info $web_product_main_info_cp, // Main Nav applicator_func_main_nav(), // Hook After Main Nav $hook_after_main_nav_ob_content, // Search $search_ob_content, // Web Product Main Media Banner $web_product_main_media_banner_obj, // Main Header Aside applicator_func_main_header_aside(), ), ), 'echo' => true, ) ); //------------------------------------------------ End: Main Header ?>