[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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

   1  <?php
   2  wp_enqueue_style( 'base' );
   3  wp_enqueue_script( 'jquery' );
   4  ?>
   5  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   6      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   7  <html xmlns="http://www.w3.org/1999/xhtml">
   8      <head>
   9          <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  10          <title><?php echo gp_title(); ?></title>
  11          <?php gp_head(); ?>
  12      </head>
  13      <body <?php body_class(); ?>>
  14      <script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>
  15          <div id="gp-js-message"></div>
  16          <h1>
  17              <a class="logo" href="<?php echo gp_url( '/' ); ?>">
  18                  <img alt="<?php esc_attr(__('GlotPress logo')); ?>" src="<?php echo gp_url_img( 'glotpress-logo.png' ); ?>" />
  19              </a>
  20              <?php echo gp_breadcrumb(); ?>
  21              <span id="hello">
  22              <?php
  23              if (GP::$user->logged_in()):
  24                  $user = GP::$user->current();
  25  
  26                  printf( __('Hi, %s.'), '<a href="'.gp_url( '/profile' ).'">'.$user->user_login.'</a>' );
  27                  ?>
  28                  <a href="<?php echo gp_url('/logout')?>"><?php _e('Log out'); ?></a>
  29              <?php else: ?>
  30                  <strong><a href="<?php echo gp_url_login(); ?>"><?php _e('Log in'); ?></a></strong>
  31              <?php endif; ?>
  32              <?php do_action( 'after_hello' ); ?>
  33              </span>
  34              <div class="clearfix"></div>
  35          </h1>
  36          <div class="clear after-h1"></div>
  37          <?php if (gp_notice('error')): ?>
  38              <div class="error">
  39                  <?php echo gp_notice( 'error' ); //TODO: run kses on notices ?>
  40              </div>
  41          <?php endif; ?>
  42          <?php if (gp_notice()): ?>
  43              <div class="notice">
  44                  <?php echo gp_notice(); ?>
  45              </div>
  46          <?php endif; ?>
  47          <?php do_action( 'after_notices' ); ?>


Generated: Mon May 20 03:59:54 2013 Hosted by follow the white rabbit.