SHARE
TWEET

Untitled

a guest Oct 10th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Header text
  3.  */
  4. function perth_header_text() {
  5.  
  6.     if ( !function_exists('pll_register_string') ) {
  7.         $header_text        = get_theme_mod('header_text', 'Welcome to Perth');
  8.         $button_left        = get_theme_mod('button_left', 'Start here');
  9.         $button_right       = get_theme_mod('button_right', 'Read more');
  10.     } else {
  11.         $header_text        = pll__(get_theme_mod('header_text', 'Welcome to Perth'));
  12.         $button_left        = pll__(get_theme_mod('button_left', 'Start here'));
  13.         $button_right       = pll__(get_theme_mod('button_right', 'Read more'));  
  14.     }
  15.     $button_left_url    = get_theme_mod('button_left_url', '#primary');
  16.     $button_right_url   = get_theme_mod('button_right_url', '#primary');
  17.  
  18.     echo '<div class="header-info">';
  19.     <?php if (is_front_page()) { ?>
  20.         echo '<h1 class="header-text">' . esc_html($header_text) . '</h1>';
  21.     <?php } else { ?>
  22.         echo '<h2 class="header-text">' . esc_html($header_text) . '</h2>';
  23.     <?php } ?>
  24.     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>
  25.             <div class="header-buttons">';
  26.             if ($button_left_url) {
  27.                 echo '<a class="button header-button left-button" href="' . esc_url($button_left_url) . '">' . esc_html($button_left) . '</a>';
  28.             }
  29.             if ($button_right_url) {
  30.                 echo '<a class="button header-button right-button" href="' . esc_url($button_right_url) . '">' . esc_html($button_right) . '</a>';
  31.             }
  32.     echo    '</div>';
  33.     echo '</div>';
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top