Advertisement
deliciousthemes

FullScreen template

Aug 5th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.64 KB | None | 0 0
  1. <?php
  2. /*
  3.  Template Name: FullScreen
  4. */
  5. ?>
  6. <?php global $data; //get theme options ?>
  7.  
  8. <!DOCTYPE html>
  9. <html <?php language_attributes(); ?>>
  10.     <head>
  11.  
  12.         <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">
  13.        
  14.         <!-- mobile meta tag -->       
  15.         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  16.        
  17.         <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
  18.        
  19.         <!-- Custom Favicon -->
  20.         <?php if(!empty($data['custom_favicon'])) { ?><link rel="icon" type="image/png" href="<?php echo $data['custom_favicon']; ?>" /><?php } ?>     
  21.    
  22.         <meta name="description" content="<?php bloginfo('description'); ?>">
  23.  
  24.         <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
  25.         <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" media="screen" />
  26.         <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/superfish.css" media="screen" />
  27.        
  28.         <!-- setting mobile environment -->    
  29.         <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/responsive.css" media="screen" />     
  30.        
  31.         <link rel="alternate" type="text/xml" title="<?php bloginfo('name'); ?> RSS 0.92 Feed" href="<?php bloginfo('rss_url'); ?>">
  32.         <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>">
  33.         <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS 2.0 Feed" href="<?php bloginfo('rss2_url'); ?>">
  34.         <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
  35.  
  36.         <?php wp_enqueue_script('jquery'); ?>
  37.  
  38.         <!--[if lt IE 9]>
  39.         <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  40.         <![endif]-->   
  41.  
  42.         <?php wp_head(); ?>
  43.  
  44.         <?php
  45.         //show tracking code - header
  46.         echo stripslashes($data['tracking_code_header']);
  47.         ?>
  48.        
  49.     </head>
  50.  
  51. <body <?php body_class(); ?>>
  52.  
  53. <?php
  54. //use custom background image instead of color in theme options panel
  55.     if(!empty($data['custom_background'])) { ?>
  56.     <img id="bg" src="<?php echo $data['custom_background']; ?>" alt="" /><?php } ?>
  57. <div id="wrapper"> 
  58.  
  59.  
  60.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  61.  
  62.             <article id="post-<?php the_ID(); ?>">
  63.                 <section>
  64.                     <?php the_content(); ?>
  65.                 </section>
  66.             </article>
  67.  
  68.     <?php endwhile; ?>
  69.  
  70.     <?php endif; ?>
  71.  
  72.  
  73. </div>
  74.  
  75.     <?php wp_footer(); ?>
  76.  
  77. <?php
  78. //show tracking code - header
  79. echo stripslashes($data['tracking_code_footer']);
  80. ?> 
  81. </body>
  82. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement