Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.43 KB | None | 0 0
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
  3.  
  4. $logo_img = get_theme_mod( 'image_logo' ); // Getting from option your choice.
  5. $sticky_logo_img = get_theme_mod( 'image_sticky_header_logo' ); // Getting from option your choice.
  6. if ( ! $sticky_logo_img )
  7.     $sticky_logo_img = $logo_img;
  8.  
  9. ?><!DOCTYPE html>
  10. <!--[if lt IE 7]>
  11. <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
  12. <!--[if IE 7]>
  13. <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
  14. <!--[if IE 8]>
  15. <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
  16. <!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
  17. <head>
  18.     <meta charset="utf-8" />
  19.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  20.    
  21.  
  22.     <base href="<?php echo site_url(); ?>" />
  23.     <title><?php wp_title( '|', true, 'right' ); ?></title>
  24.     <?php wp_head(); ?>
  25.    
  26.  
  27. </head>
  28. <body <?php body_class(); ?>>
  29. <!--[if lt IE 7]><p class="chromeframe">Your browser is <em>ancient!</em>
  30.     <a href="http://browsehappy.com/">Upgrade to a different browser</a> or
  31.     <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.
  32. </p><![endif]-->
  33.  
  34. <div id="container">
  35.     <?php po_change_loop_to_parent( 'change' ); ?>
  36.  
  37.     <?php if ( ! pojo_is_blank_page() ) : ?>
  38.    
  39.         <header id="header" class="logo-<?php echo ( 'logo_right' === get_theme_mod( 'header_layout' ) ) ? 'right' : 'left'; ?>">
  40. <div class="topbar" style="width:100%; height:50px; color: #FFF; line-height:55px; background:#1B1B1B; padding:0px; margin:0px; font-family:Helvetica,Arial,sans-serif; font-size:18px; ">
  41.     <div class="link" style=" margin-right:auto; margin-left:auto; width:80%;">
  42.          <div style="float:left; margin-right:10px; padding-top:0px;
  43.            width:165px; font-weight:bold;"><img src="http://kerenshviis.org/wp-content/uploads/2015/06/tel3.png" alt="tel" /> 0330-1110777</div>
  44.          <div style="float:left; margin-right:10px; width:150px; text-decoration:none !important; "><a href="https://www.cardknox.com/kerenhashviisuk" target="_blank"><img src="http://kerenshviis.org/wp-content/uploads/2015/06/card1.png" alt="donate" />Donate</a></div>
  45.    
  46.    <div style="float: right; margin-top:9px;">
  47.           <div style="float:left; margin-right:10px;"><a href="https://www.kerenhashviis.com/" target="_blank"><img src="http://kerenshviis.org/wp-content/uploads/2015/06/us.png" /></a></div>
  48.        <div style="float:left; margin-right:10px;"><a href="http://www.keren-hashviit.org.il/" target="_blank"><img src="http://kerenshviis.org/wp-content/uploads/2015/06/il.png" /></a></div>
  49.        
  50.         </div>
  51.     </div>
  52. </div>
  53.             <div class="<?php echo WRAP_CLASSES; ?>">
  54.                 <div class="logo" role="banner">
  55.                     <?php if ( ! empty( $logo_img ) ) : ?>
  56.                     <div class="logo-img">
  57.                         <a>" rel="home"><img />" alt="<?php bloginfo( 'name' ); ?>" class="logo-img-primary" /></a>
  58.                     </div>
  59.                     <?php else : ?>
  60.                     <div class="logo-text">
  61.                         <a>" rel="home"><?php bloginfo( 'name' ); ?></a>
  62.                     </div>
  63.                     <?php endif; ?>
  64.  
  65.                     <button type="button" class="navbar-toggle visible-xs" data-toggle="collapse" data-target=".navbar-collapse">
  66.                         <span class="sr-only"><?php _e( 'Toggle navigation', 'pojo' ); ?></span>
  67.                         <span class="icon-bar"></span>
  68.                         <span class="icon-bar"></span>
  69.                         <span class="icon-bar"></span>
  70.                     </button>
  71.                 </div>
  72.                 <nav class="nav-main">
  73.                     <div class="navbar-collapse collapse" role="navigation" >
  74.                         <?php if ( has_nav_menu( 'primary' ) ) : ?>
  75.                             <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => false, 'menu_class' => 'sf-menu hidden-xs', 'walker' => new Pojo_Navbar_Nav_Walker() ) );
  76.                             wp_nav_menu( array( 'theme_location' => has_nav_menu( 'primary_mobile' ) ? 'primary_mobile' : 'primary', 'container' => false, 'menu_class' => 'mobile-menu visible-xs', 'walker' => new Pojo_Navbar_Nav_Walker() ) ); ?>
  77.                         <?php else : ?>
  78.                             <mark class="menu-no-found"><?php printf( __( 'Please setup Menu <a href="%s">here</a>', 'pojo' ), admin_url( 'nav-menus.php?action=locations' ) ); ?></mark>
  79.                         <?php endif; ?>
  80.                     </div>
  81.                 </nav><!-- /#nav-menu -->
  82.             </div><!-- /.container -->
  83.         </header>
  84.  
  85.         <?php if ( get_theme_mod( 'chk_enable_sticky_header' ) ) :?>
  86.             <div class="sticky-header logo-<?php echo ( 'logo_right' === get_theme_mod( 'header_layout' ) ) ? 'right' : 'left'; ?>" >
  87.                 <div class="<?php echo WRAP_CLASSES; ?>">
  88.                     <div class="logo" role="banner">
  89.                         <?php if ( ! empty( $logo_img ) ) : ?>
  90.                             <div class="logo-img">
  91.                                 <a>" rel="home"><img />" alt="<?php bloginfo( 'name' ); ?>" class="logo-img-primary" /></a>
  92.                             </div>
  93.                         <?php else : ?>
  94.                             <div class="logo-text">
  95.                                 <a>" rel="home"><?php bloginfo( 'name' ); ?></a>
  96.                             </div>
  97.                         <?php endif; ?>
  98.  
  99.                         <button type="button" class="navbar-toggle visible-xs" data-toggle="collapse" data-target=".navbar-collapse">
  100.                             <span class="sr-only"><?php _e( 'Toggle navigation', 'pojo' ); ?></span>
  101.                             <span class="icon-bar"></span>
  102.                             <span class="icon-bar"></span>
  103.                             <span class="icon-bar"></span>
  104.                         </button>
  105.                     </div>
  106.                     <nav class="nav-main">
  107.                         <div class="navbar-collapse collapse" role="navigation" >
  108.                             <?php if ( has_nav_menu( 'primary' ) ) : ?>
  109.                                 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => false, 'menu_class' => 'sf-menu hidden-xs', 'walker' => new Pojo_Navbar_Nav_Walker() ) );
  110.                                 wp_nav_menu( array( 'theme_location' => has_nav_menu( 'primary_mobile' ) ? 'primary_mobile' : 'primary', 'container' => false, 'menu_class' => 'mobile-menu visible-xs', 'walker' => new Pojo_Navbar_Nav_Walker() ) ); ?>
  111.                             <?php else : ?>
  112.                                 <mark class="menu-no-found"><?php printf( __( 'Please setup Menu <a href="%s">here</a>', 'pojo' ), admin_url( 'nav-menus.php?action=locations' ) ); ?></mark>
  113.                             <?php endif; ?>
  114.                         </div>
  115.                     </nav><!-- /#nav-menu -->
  116.                 </div><!-- /.container -->
  117.             </div>
  118.         <?php endif; // end sticky header ?>
  119.  
  120.     <?php endif; // end blank page ?>
  121.  
  122.     <div class="sticky-header-running"></div>
  123.  
  124.     <?php po_change_loop_to_parent(); ?>
  125.         <?php get_template_part( 'core/subheader' ); ?>
  126.  
  127.         <div class="clearfix"></div>
  128.  
  129.     <div id="primary" role="document">
  130.             <div class="<?php echo WRAP_CLASSES; ?>">
  131.                 <div id="content" class="<?php echo CONTAINER_CLASSES; ?>">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement