Advertisement
deliciousthemes

Line - Background issue

May 22nd, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.23 KB | None | 0 0
  1. <?php global $data; //get theme options ?>
  2.  
  3. <!DOCTYPE html>
  4. <html <?php language_attributes(); ?>>
  5.     <head>
  6.  
  7.         <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">
  8.        
  9.         <!-- mobile meta tag -->       
  10.         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  11.        
  12.         <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
  13.    
  14.         <meta name="description" content="<?php bloginfo('description'); ?>">
  15.        
  16.         <!-- Custom Favicon -->
  17.         <?php if(!empty($data['custom_favicon'])) { ?><link rel="icon" type="image/png" href="<?php echo $data['custom_favicon']; ?>" /><?php } ?>         
  18.  
  19.         <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
  20.        
  21.         <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" media="screen" />
  22.         <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/superfish.css" media="screen" />
  23.        
  24.         <!-- color scheme -->
  25.         <?php if($data['scheme'] !='') { ?>
  26.         <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/color-schemes/<?php echo $data['scheme']; ?>" media="screen" />
  27.         <?php } ?>
  28.         <!-- enabling responsive layout -->    
  29.         <?php if($data['responsive_enabled'] =='1') { ?>
  30.         <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/responsive.css" media="screen" />     
  31.         <?php } ?>
  32.        
  33.         <link rel="alternate" type="text/xml" title="<?php bloginfo('name'); ?> RSS 0.92 Feed" href="<?php bloginfo('rss_url'); ?>">
  34.         <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>">
  35.         <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS 2.0 Feed" href="<?php bloginfo('rss2_url'); ?>">
  36.         <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
  37.            
  38.         <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
  39.  
  40.        
  41.         <?php wp_enqueue_script('jquery'); ?>
  42.  
  43.         <!--[if lt IE 9]>
  44.         <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  45.         <![endif]-->   
  46.  
  47.        
  48.         <?php
  49.         //show tracking code - header
  50.         echo stripslashes($data['tracking_code_header']);
  51.         ?>     
  52.  
  53.         <?php wp_head(); ?>        
  54.     </head>
  55.    
  56. <body <?php body_class(); ?>>
  57.  
  58. <?php
  59. //use custom background image instead of color in theme options panel
  60.  
  61.     $bgthumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'background-thumb');
  62.  
  63.     if ( has_post_thumbnail() ) {
  64.     ?>
  65.         <style>
  66.             #wrapper { box-shadow: none; }
  67.         </style>    
  68.         <img id="bg" src="<?php echo $bgthumbnail[0]; ?>" height="<?php echo $bgthumbnail[2]; ?>" width="<?php echo $bgthumbnail[1]; ?>" alt="<?php echo the_title(); ?>" />
  69.     <?php }
  70.  
  71.     else if(!empty($data['custom_background'])) { ?>    
  72.         <style>
  73.             #wrapper { box-shadow: none; }
  74.         </style>
  75.         <img id="bg" src="<?php echo $data['custom_background']; ?>" alt="" />
  76.     <?php }  ?>
  77.  
  78.    
  79. <div id="wrapper">
  80.     <div id="top">
  81.         <div class="centered-wrapper"> 
  82.             <header id="header">
  83.                 <div class="one-third">
  84.                     <?php if($data['custom_logo'] !='') { ?>
  85.                         <div class="logo"><a href="<?php echo home_url(); ?>/" title="<?php bloginfo( 'name' ); ?>" rel="home"><img src="<?php echo $data['custom_logo']; ?>" alt="<?php bloginfo( 'name' ) ?>" /></a></div>
  86.                     <?php }
  87.                    
  88.                     else { ?>          
  89.                
  90.                         <div class="logo"><a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="<?php bloginfo( 'name' ) ?>" /></a></div>
  91.                     <?php } ?>             
  92.                    
  93.                 </div><!--end one-third-->
  94.                
  95.                 <div class="two-third column-last">    
  96.                
  97.                     <nav id="navigation">
  98.                         <?php wp_nav_menu( array(
  99.                             'theme_location' => 'top_menu',
  100.                             'menu' => 'Top Menu',
  101.                             'menu_id' => 'mainnav',
  102.                             'sort_column' => 'menu_order',
  103.                             'fallback_cb' => ''
  104.                         )); ?>
  105.                     </nav><!--end navigation-->
  106.                 </div><!--end two-third-->
  107.                 <div class="clear"></div>
  108.             </header>
  109.         </div><!--end centered-wrapper-->
  110.     </div><!--end top-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement