[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyseventeen/template-parts/header/ -> site-branding.php (source)

   1  <?php
   2  /**
   3   * Displays header site branding
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Seventeen
   7   * @since Twenty Seventeen 1.0
   8   * @version 1.0
   9   */
  10  
  11  ?>
  12  <div class="site-branding">
  13      <div class="wrap">
  14  
  15          <?php the_custom_logo(); ?>
  16  
  17          <div class="site-branding-text">
  18              <?php if ( is_front_page() ) : ?>
  19                  <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  20              <?php else : ?>
  21                  <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
  22              <?php endif; ?>
  23  
  24              <?php
  25              $description = get_bloginfo( 'description', 'display' );
  26  
  27              if ( $description || is_customize_preview() ) :
  28                  ?>
  29                  <p class="site-description"><?php echo $description; ?></p>
  30              <?php endif; ?>
  31          </div><!-- .site-branding-text -->
  32  
  33          <?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?>
  34          <a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ); ?><span class="screen-reader-text">
  35              <?php
  36              /* translators: Hidden accessibility text. */
  37              _e( 'Scroll down to content', 'twentyseventeen' );
  38              ?>
  39          </span></a>
  40      <?php endif; ?>
  41  
  42      </div><!-- .wrap -->
  43  </div><!-- .site-branding -->


Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref