Advertisement
Guest User

WP Error

a guest
Jan 6th, 2013
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.21 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8">
  5.  
  6.     <title><?php wp_title( '|', true, 'right' );
  7.     bloginfo( 'name' );
  8.     $site_description = get_bloginfo( 'description', 'display' );
  9.     if ( $site_description && ( is_home() || is_front_page() ) )
  10.         echo " | $site_description"; ?></title>
  11.  
  12.     <meta name="HandheldFriendly" content="True">
  13.     <meta name="MobileOptimized" content="320"/>
  14.    
  15.     <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  16.  
  17.     <meta http-equiv="cleartype" content="on">
  18.  
  19.     <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  20.    
  21.     <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  22.     <?php wp_head(); ?>
  23. </head>
  24. <body <?php body_class(); ?>>
  25.     <?php
  26.         global $et_mobile;
  27.     ?>
  28.     <div id="container">
  29.         <header id="main_header" role="banner">
  30.             <?php do_action( 'handheld_header' ); ?>
  31.             <div id="logo-area">
  32.                 <a href="<?php echo home_url(); ?>">
  33.                     <?php
  34.                         global $et_mobile_theme_options;
  35.                         if ( isset( $et_mobile_theme_options['logo'] ) && '' != $et_mobile_theme_options['logo'] ) $logo = $et_mobile_theme_options['logo'];
  36.                         else
  37.                             $logo = (get_option($et_mobile->get_real_theme_shortname().'_logo') <> '') ? esc_attr(get_option($et_mobile->get_real_theme_shortname().'_logo')) : get_template_directory_uri() . '/images/logo.png';
  38.                     ?>
  39.                     <img src="<?php echo esc_url( $logo ); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" id="logo"/>
  40.                 </a>
  41.             </div> <!-- end #logo-area -->
  42.             <div id="nav_bar">
  43.                 <div id="nav_bottom_shadow">
  44.                     <div id="nav_bar_top_bg">
  45.                         <a id="main_menu_link" href="#"><?php esc_html_e('Menu','HandHeld'); ?><span></span></a>
  46.                         <?php $menuClass = 'main_nav';
  47.                         $primaryNav = '';
  48.                                    
  49.                         $primaryNav = wp_nav_menu( array( 'theme_location' => 'handheld-menu', 'container' => '', 'fallback_cb' => 'wp_page_menu', 'menu_class' => $menuClass, 'echo' => false ) );
  50.                        
  51.                         if ($primaryNav == '') { ?>
  52.                             <ul class="<?php echo $menuClass; ?>">
  53.                                 <?php if (get_option($et_mobile->get_real_theme_shortname().'_home_link') == 'on') { ?>
  54.                                     <li <?php if (is_front_page()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>"><?php esc_html_e('Home','HandHeld'); ?></a></li>
  55.                                 <?php }; ?>
  56.  
  57.                                 <?php show_categories_menu($menuClass,false); ?>
  58.                                
  59.                                 <?php show_page_menu($menuClass,false,false); ?>
  60.                             </ul> <!-- end ul.nav -->
  61.                         <?php }
  62.                         else echo($primaryNav); ?>
  63.                        
  64.                         <div id="search-form">
  65.                             <form method="get" id="searchform" action="<?php echo home_url(); ?>/">
  66.                                 <input type="text" value="<?php esc_attr_e('Search this site...', 'HandHeld'); ?>" name="s" id="searchinput" />
  67.                                 <input type="image" src="<?php bloginfo('template_directory'); ?>/images/search_btn.png" id="searchsubmit" />
  68.                             </form>
  69.                         </div> <!-- end #search-form -->
  70.                     </div> <!-- end #nav_bar_top_bg -->
  71.                 </div> <!-- end #nav_bottom_shadow -->
  72.             </div> <!-- end #nav_bar -->
  73.         </header> <!-- end #main-header -->
  74.         <div id="main" role="main">
  75.             <div id="main-top-shadow">
  76.             <?php do_action( 'handheld_main_area' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement