modal-editor.php
3 years ago
theme-support-footer.php
4 years ago
theme-support-header.php
1 year ago
theme-support-header.php
50 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The template for displaying the header |
| 4 | * |
| 5 | * This is the template that displays all of the <head> section, opens the <body> tag and adds the site's header. |
| 6 | * |
| 7 | * @package ElementsKit_Lite |
| 8 | */ |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit; // Exit if accessed directly. |
| 11 | } |
| 12 | |
| 13 | $enable_skip_link = apply_filters( 'elementskit_enable_skip_link', true ); |
| 14 | $skip_link_url = apply_filters( 'elementskit_skip_link_url', '#content' ); |
| 15 | ?> |
| 16 | |
| 17 | <!DOCTYPE html> |
| 18 | <html <?php language_attributes(); ?>> |
| 19 | |
| 20 | <head> |
| 21 | <meta charset="<?php bloginfo('charset'); ?>"> |
| 22 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 23 | <?php if (! current_theme_supports('title-tag')) : ?> |
| 24 | <title> |
| 25 | <?php echo esc_html(wp_get_document_title()); ?> |
| 26 | </title> |
| 27 | <?php endif; ?> |
| 28 | <?php wp_head(); ?> |
| 29 | </head> |
| 30 | |
| 31 | <body <?php body_class(); ?>> |
| 32 | |
| 33 | <?php wp_body_open(); ?> |
| 34 | |
| 35 | <?php if ($enable_skip_link) { ?> |
| 36 | <a class="skip-link screen-reader-text" href="<?php echo esc_url($skip_link_url); ?>"> |
| 37 | <?php echo esc_html__('Skip to content', 'elementskit-lite'); ?> |
| 38 | </a> |
| 39 | <?php } ?> |
| 40 | |
| 41 | <?php do_action('elementskit/template/before_header'); ?> |
| 42 | |
| 43 | <div class="ekit-template-content-markup ekit-template-content-header ekit-template-content-theme-support"> |
| 44 | <?php |
| 45 | $template = \ElementsKit_Lite\Modules\Header_Footer\Activator::template_ids(); |
| 46 | echo \ElementsKit_Lite\Utils::render_elementor_content($template[0]); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Displaying with Elementor content rendering |
| 47 | ?> |
| 48 | </div> |
| 49 | |
| 50 | <?php do_action('elementskit/template/after_header'); ?> |