[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> header.php (source)

   1  <!DOCTYPE html>
   2  <html>
   3  <head>
   4      <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
   5      <title><?php echo gp_title(); ?></title>
   6  
   7      <?php
   8      // Enqueue the base style so we don't have to load it manually on each page.
   9      gp_enqueue_styles( 'gp-base' );
  10  
  11      gp_head(); ?>
  12  </head>
  13  
  14  <body <?php body_class( 'no-js' ); ?>>
  15      <script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>
  16  
  17      <header class="gp-bar clearfix">
  18          <h1>
  19              <a href="<?php echo gp_url( '/' ); ?>" rel="home">
  20                  <?php
  21  
  22                  /**
  23                   * Filter the main heading (H1) of a GlotPress page that links to the home page.
  24                   *
  25                   * @since 1.0.0
  26                   *
  27                   * @param string $title The text linking to home page.
  28                   */
  29                  echo apply_filters( 'gp_home_title', 'GlotPress' ); ?>
  30              </a>
  31          </h1>
  32  
  33          <nav id="main-navigation" role="navigation">
  34              <?php echo gp_nav_menu(); ?>
  35          </nav>
  36  
  37          <nav id="side-navigation">
  38              <?php echo gp_nav_menu('side'); ?>
  39          </nav>
  40      </header>
  41  
  42      <div class="gp-content">
  43          <?php echo gp_breadcrumb(); ?>
  44  
  45          <div id="gp-js-message" class="gp-js-message"></div>
  46  
  47          <?php if (gp_notice('error')): ?>
  48              <div class="error">
  49                  <?php echo gp_notice( 'error' ); ?>
  50              </div>
  51          <?php endif; ?>
  52  
  53          <?php if (gp_notice()): ?>
  54              <div class="notice">
  55                  <?php echo gp_notice(); ?>
  56              </div>
  57          <?php endif; ?>
  58  
  59          <?php
  60          /**
  61           * Fires after the error and notice elements on the header.
  62           *
  63           * @since 1.0.0
  64           */
  65          do_action( 'gp_after_notices' );


Generated: Sun Jun 16 01:02:50 2019 Cross-referenced by PHPXref 0.7.1