singular-canvas.php
1 year ago
singular-fullwidth.php
1 year ago
theme-footer.php
1 year ago
theme-header.php
1 year ago
theme-template.php
1 year ago
theme-header.php
50 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | ?> |
| 6 | <!DOCTYPE html> |
| 7 | <html <?php language_attributes(); ?>> |
| 8 | <head> |
| 9 | <meta charset="<?php bloginfo( 'charset' ); ?>"> |
| 10 | <?php |
| 11 | if(class_exists( '\Elementor\Plugin' )){ |
| 12 | $meta_viewport = \Elementor\Utils::get_meta_viewport('theme-builder'); |
| 13 | $allowed_html = array( |
| 14 | 'meta' => array( |
| 15 | 'name' => array(), |
| 16 | 'content' => array(), |
| 17 | ), |
| 18 | ); |
| 19 | echo wp_kses($meta_viewport, $allowed_html); |
| 20 | } |
| 21 | ?> |
| 22 | <?php if (!current_theme_supports('title-tag')) : ?> |
| 23 | <title> |
| 24 | <?php echo esc_html(wp_get_document_title()); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 25 | ?> |
| 26 | </title> |
| 27 | <?php endif; ?> |
| 28 | <?php wp_head(); ?> |
| 29 | </head> |
| 30 | <body <?php body_class(); ?>> |
| 31 | <?php wp_body_open(); ?> |
| 32 | |
| 33 | <?php do_action('ecafe_before_header'); ?> |
| 34 | <header itemscope="itemscope" id="ecafe-header" role="banner"> |
| 35 | <?php |
| 36 | $allowed_tags = wp_kses_allowed_html( 'post' ); |
| 37 | $allowed_tags['script'] = array( |
| 38 | 'type' => true, |
| 39 | 'src' => true, |
| 40 | 'defer' => true, |
| 41 | ); |
| 42 | $allowed_tags['style'] = array( |
| 43 | 'type' => true, |
| 44 | 'media' => true, |
| 45 | ); |
| 46 | echo Ecafe_Theme_Builder::instance()->ec_render_builder_data_location('header'); |
| 47 | ?> |
| 48 | </header> |
| 49 | <?php do_action('ecafe_after_header'); ?> |
| 50 |