b2evolution PHP Cross Reference Blogging Systems

Source: /skins/touch/_body_header.inc.php - 151 lines - 6055 bytes - Text - Print

Description: This is the BODY header include template.

   1  <?php
   2  /**

   3   * This is the BODY header include template.

   4   *

   5   * For a quick explanation of b2evo 2.0 skins, please start here:

   6   * {@link http://b2evolution.net/man/skin-structure}

   7   *

   8   * This is meant to be included in a page template.

   9   *

  10   * @package evoskins

  11   * @subpackage evopress

  12   */
  13  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14  
  15  global $dummy_fields;
  16  
  17  ?>
  18  
  19  <!-- New noscript check, we need js on now folks -->
  20  <noscript>
  21  <div id="noscript-wrap">
  22      <div id="noscript">
  23          <h2><?php echo T_( 'Notice' ); ?></h2>
  24          <p><?php echo T_( 'JavaScript for Mobile Safari is currently turned off.' ); ?></p>
  25          <p><?php echo T_( 'Turn it on in <em> Settings &rsaquo; Safari </em><br /> to view this website.' ); ?></p>
  26      </div>
  27  </div>
  28  </noscript>
  29  
  30  <div style="display: none;" id="wptouch-menu" class="dropper">
  31      <div id="wptouch-menu-inner">
  32          <div id="menu-head">
  33              <div id="tabnav">
  34                  <a class="selected" href="#head-pages"><?php echo T_('Pages'); ?></a>
  35                  <a href="#head-blogs"><?php echo T_('Blogs'); ?></a>
  36                  <?php if( is_logged_in() ) { ?>
  37                  <a href="#head-account"><?php echo T_('My Profile'); ?></a>
  38                  <?php } else { ?>
  39                  <a href="#head-account" id="loginopen"><?php echo T_('Login'); ?></a>
  40                  <?php } ?>
  41              </div>
  42  
  43              <?php
  44                  // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------

  45                  // Display container and contents:

  46                  skin_container( NT_('Menu'), array(
  47                          // The following params will be used as defaults for widgets included in this container:

  48                          'block_start' => '<ul id="head-pages">',
  49                          'block_end' => '</ul>',
  50                          'block_display_title' => false,
  51                          'list_start' => '',
  52                          'list_end' => '',
  53                          'item_start' => '<li>',
  54                          'item_end' => '</li>',
  55                      ) );
  56                  // ----------------------------- END OF "Menu" CONTAINER -----------------------------

  57              ?>
  58      
  59              <?php 
  60                  // Display container and contents:

  61                  skin_container( NT_('Page Top'), array(
  62                          // The following params will be used as defaults for widgets included in this container:

  63                          'block_start' => '<ul id="head-blogs">',
  64                          'block_end' => '</ul>',
  65                          'block_display_title' => false,
  66                          'list_start' => '',
  67                          'list_end' => '',
  68                          'item_start' => '<li>',
  69                          'item_end' => '</li>',
  70                      ) );
  71              ?>
  72  
  73              <ul id="head-account">
  74              <?php
  75                  if( is_logged_in() )
  76                  {    // Build menu for logged in user
  77                      if( $current_User->check_perm( 'admin', 'normal' ) )
  78                      {    // User has a permission to access admin
  79                          global $admin_url;
  80                  ?>
  81                      <li><a href="<?php echo $admin_url; ?>"><?php echo T_('Admin'); ?></a></li>
  82                  <?php } ?>
  83                  <li><a href="<?php echo url_add_param( $Blog->get('url'), 'disp=user' ); ?>"><?php echo T_('My Profile'); ?></a></li>
  84                  <?php
  85                      if( $current_User->check_perm( 'perm_messaging', 'reply' ) )
  86                      {    // User has access for messages module
  87                  ?>
  88                  <li><a href="<?php echo url_add_param( $Blog->get('url'), 'disp=threads' ); ?>"><?php echo T_('My messages'); ?></a></li>
  89                  <?php } ?>
  90                  <li><a href="<?php echo get_user_logout_url(); ?>"><?php echo T_('Logout'); ?></a></li>
  91              <?php
  92                  }
  93                  else
  94                  {    // Display info to login user
  95              ?>
  96                  <li class="text">
  97                      <?php echo T_('Enter your username and password<br>in the boxes above.'); ?><br><br>
  98                      <?php
  99                          $source = param( 'source', 'string', 'inskin login form' );
 100                          echo get_user_register_link( '<strong>', '</strong>', T_('No account yet? Register here').' &raquo;', '#', true /*disp_when_logged_in*/, '', $source );
 101                      ?>
 102                  </li>
 103              <?php } ?>
 104              </ul>
 105          </div>
 106      </div>
 107  </div>
 108  
 109  <div id="headerbar">
 110      <div id="headerbar-title">
 111          <a href="<?php echo $Blog->get( 'url', 'raw' ); ?>"><img id="logo-icon" src="<?php echo $Skin->get_url(); ?>img/icon-pool/Default.png" alt="<?php echo $Blog->dget( 'name', 'text' ); ?>"></a>
 112          <a href="<?php echo $Blog->get( 'url', 'raw' ); ?>"><?php echo $Blog->dget( 'name', 'htmlbody' ); ?></a>
 113      </div>
 114      <div id="headerbar-menu">
 115          <a href="javascript:return false;"><?php echo T_( 'Menu' ); ?></a>
 116      </div>
 117  </div>
 118  
 119  <!--#start The Login Overlay -->
 120  <div id="wptouch-login">
 121      <div id="wptouch-login-inner">
 122          <form name="loginform" id="loginform" action="<?php echo get_samedomain_htsrv_url() ?>login.php" method="post">
 123              <label><input type="text" name="<?php echo $dummy_fields['login'] ?>" id="log" placeholder="<?php echo T_( 'Login' ); ?>" value="" /></label>
 124              <label><input type="password" name="<?php echo $dummy_fields['pwd'] ?>" placeholder="<?php echo T_( 'Password' ); ?>" id="pwd" value="" /></label>
 125              <input type="submit" id="logsub" name="submit" value="<?php echo T_( 'Login' ); ?>" />
 126              <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
 127              <input type="hidden" value="<?php echo get_crumb( 'loginform' ); ?>" name="crumb_loginform" />
 128              <input type="hidden" value="login" name="login_action[login]" />
 129              <input type="hidden" value="<?php echo (int)use_in_skin_login(); ?>" name="inskin" />
 130              <a href="javascript:return false;"><img class="head-close" src="<?php echo $Skin->get_url(); ?>img/head-close.png" alt="close" /></a>
 131          </form>
 132      </div>
 133  </div>
 134  
 135  <!-- #start The Search Overlay -->
 136  <div id="wptouch-search"> 
 137      <div id="wptouch-search-inner">
 138          <form method="get" id="searchform" action="<?php echo $Blog->gen_blogurl(); ?>">
 139              <input type="hidden" name="disp" value="search" />
 140              <input type="text" placeholder="<?php echo T_( 'Search...' ); ?>" name="s" id="search-input" /> 
 141              <input name="submit" type="submit" tabindex="1" id="search-submit" placeholder="<?php echo T_( 'Search...' ); ?>"  />
 142              <a href="javascript:return false;"><img class="head-close" src="<?php echo $Skin->get_url(); ?>img/head-close.png" alt="close" /></a>
 143          </form>
 144      </div>
 145  </div>
 146  
 147  <div id="drop-fade">
 148      <a id="searchopen" class="top" href="javascript:return%20false;">Search</a>
 149  </div>
 150  
 151  <div class="content">

title

Description

title

Description

title

Description

title

title

Body