>
>%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 = applicator_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 = applicator_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, ) ); /* ------------------------ Main Header ------------------------ */ /* ------------------------ Main Info ------------------------ */ // R: Main Name $main_name_obj = ''; $main_name = get_bloginfo( 'name', 'display' ); if ( $main_name || is_customize_preview() ) { $main_name_obj = applicator_htmlok( array( 'name' => 'Main Name', 'structure' => array( 'type' => 'object', 'elem' => 'h1', 'linked' => true, 'attr' => array( 'a' => array( 'href' => esc_url( home_url( '/' ) ), ), ), ), 'root_css' => 'site-title', 'title' => $main_name, 'content' => array( 'object' => $main_name, ), ) ); } // R: Main Logo // inc > settings.php | Customizer > Site Identity $main_logo_obj = ''; if ( has_custom_logo() ) { $main_logo_obj = applicator_htmlok( array( 'name' => 'Main Logo', 'structure' => array( 'type' => 'object', 'subtype' => 'wordpress generated content', ), 'title' => get_bloginfo( 'name' ), 'content' => array( 'object' => get_custom_logo(), ), ) ); } // R: Main Description $main_description_obj = ''; $main_description = get_bloginfo( 'description', 'display' ); if ( $main_description || is_customize_preview() ) { $main_description_obj = applicator_htmlok( array( 'name' => 'Main Description', 'structure' => array( 'type' => 'object', 'linked' => true, 'attr' => array( 'a' => array( 'href' => esc_url( home_url( '/' ) ), ), ), ), 'css' => 'main-desc', 'root_css' => 'site-description', 'title' => $main_description, 'content' => array( 'object' => $main_description, ), ) ); } // R: Main Info $main_info_cp = applicator_htmlok( array( 'name' => 'Main Info', 'structure' => array( 'type' => 'component', 'hr_structure' => true, ), 'content' => array( 'component' => array( // Main Name $main_name_obj, // Main Logo $main_logo_obj, // Main Description $main_description_obj, ), ), ) ); // Custom Header | Customizer > Custom Header | inc > functions > custom-header.php $main_media_banner_obj = ''; $main_banner_cp = ''; if ( has_header_image() ) { // R: Main Media Banner $main_media_banner_obj = applicator_htmlok( array( 'name' => 'Main Media Banner', 'structure' => array( 'type' => 'object', 'attr' => array( 'elem' => array( 'style' => 'background-image: url('. esc_url( get_header_image() ). ')', ), ), ), 'content' => array( 'object' => get_custom_header_markup(), ), ) ); // R: Main Banner $main_banner_cp = applicator_htmlok( array( 'name' => 'Main Banner', 'structure' => array( 'type' => 'component', ), 'content' => array( 'component' => array( $main_media_banner_obj, ), ), ) ); } // OB: Hook After Main Nav ob_start(); applicator_hook_after_main_nav(); $hook_after_main_nav_ob_content = ob_get_contents(); ob_end_clean(); // E: Main Header $main_header_cn = applicator_htmlok( array( 'name' => 'Main Header', 'structure' => array( 'type' => 'constructor', 'subtype' => 'main header', ), 'id' => 'main-header', 'root_css' => 'site-header', 'content' => array( 'constructor' => array( // Main Info $main_info_cp, // Main Nav applicator_main_nav(), // Hook After Main Nav $hook_after_main_nav_ob_content, // Main Banner $main_banner_cp, // Main Header Aside applicator_main_header_aside(), ), ), 'echo' => true, ) ); ?>