Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Header text
- */
- function perth_header_text() {
- if ( !function_exists('pll_register_string') ) {
- $header_text = get_theme_mod('header_text', 'Welcome to Perth');
- $button_left = get_theme_mod('button_left', 'Start here');
- $button_right = get_theme_mod('button_right', 'Read more');
- } else {
- $header_text = pll__(get_theme_mod('header_text', 'Welcome to Perth'));
- $button_left = pll__(get_theme_mod('button_left', 'Start here'));
- $button_right = pll__(get_theme_mod('button_right', 'Read more'));
- }
- $button_left_url = get_theme_mod('button_left_url', '#primary');
- $button_right_url = get_theme_mod('button_right_url', '#primary');
- echo '<div class="header-info">';
- <?php if (is_front_page()) { ?>
- echo '<h1 class="header-text">' . esc_html($header_text) . '</h1>';
- <?php } else { ?>
- echo '<h2 class="header-text">' . esc_html($header_text) . '</h2>';
- <?php } ?>
- echo '<h2 class="header-subtext">Doesn\'t matter what type of writing help you need, because joining our Land you will get cheapest essay writing service you can only image</h2>
- <div class="header-buttons">';
- if ($button_left_url) {
- echo '<a class="button header-button left-button" href="' . esc_url($button_left_url) . '">' . esc_html($button_left) . '</a>';
- }
- if ($button_right_url) {
- echo '<a class="button header-button right-button" href="' . esc_url($button_right_url) . '">' . esc_html($button_right) . '</a>';
- }
- echo '</div>';
- echo '</div>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement