Advertisement
rikkiprince

Newsletter page

Aug 26th, 2014
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.76 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying Road Runner newsletters.
  4.  *
  5.  * Combining in header and footer files.
  6.  *
  7.  * Used to display archive-type pages for posts in a tag.
  8.  *
  9.  * @link http://codex.wordpress.org/Template_Hierarchy
  10.  *
  11.  * @package WordPress
  12.  * @subpackage Twenty_Thirteen
  13.  * @since Twenty Thirteen 1.0
  14.  */
  15.  
  16. ?><!DOCTYPE html>
  17. <!--[if IE 7]>
  18. <html class="ie ie7" <?php language_attributes(); ?>>
  19. <![endif]-->
  20. <!--[if IE 8]>
  21. <html class="ie ie8" <?php language_attributes(); ?>>
  22. <![endif]-->
  23. <!--[if !(IE 7) | !(IE 8)  ]><!-->
  24. <html <?php language_attributes(); ?>>
  25. <!--<![endif]-->
  26. <head>
  27.     <meta charset="<?php bloginfo( 'charset' ); ?>">
  28.     <meta name="viewport" content="width=device-width">
  29.     <title><?php wp_title( '|', true, 'right' ); ?></title>
  30.     <meta name="description" content="Lordshill Road Runners - Southampton's friendliest Running Club.">
  31.     <meta name="keywords" content="Lordshill Road Runners, Southampton, Lordshill, Road, Runners, running, jogging, keep fit, southampton, road running">
  32.     <link rel="profile" href="http://gmpg.org/xfn/11">
  33.     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  34.     <!--[if lt IE 9]>
  35.     <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
  36.     <![endif]-->
  37.     <?php wp_head(); ?>
  38. </head>
  39.  
  40. <body <?php body_class('newsletter'); ?>>
  41.     <div id="page" class="hfeed site">
  42.         <header id="masthead" class="site-header" role="banner">
  43.             <a id="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">&lt; Return to website</a>
  44.             <a id="print-button" href="javascript:window.print();">PRINT THIS NEWSLETTER</a>
  45.             <hr class="blue" />
  46.             <h1 class="site-title"><?php echo single_tag_title( '', false ); ?></h1>
  47.             <h2 class="site-description"><?php echo strip_tags(tag_description()); ?></h2>
  48.            
  49.         </header><!-- #masthead -->
  50.  
  51.         <div id="main" class="site-main">
  52.  
  53.  
  54.             <!-- main section -->
  55.             <div id="primary" class="content-area">
  56.                 <div id="content" class="site-content" role="main">
  57.  
  58.                 <?php if ( have_posts() ) : ?>
  59.  
  60.                     <?php /* The loop */ ?>
  61.                     <?php while ( have_posts() ) : the_post(); ?>
  62.                         <?php get_template_part( 'newsletter-content' ); ?>
  63.                     <?php endwhile; ?>
  64.  
  65.                     <?php twentythirteen_paging_nav(); ?>
  66.  
  67.                 <?php else : ?>
  68.                     <?php get_template_part( 'content', 'none' ); ?>
  69.                 <?php endif; ?>
  70.  
  71.                 </div><!-- #content -->
  72.             </div><!-- #primary -->
  73.  
  74.         <!-- <?php //get_sidebar(); ?> -->
  75.         </div><!-- #main -->
  76.  
  77.         <hr class="blue" />
  78.  
  79.         <footer id="colophon" class="site-footer" role="contentinfo">
  80.             <!-- <?php //get_sidebar( 'main' ); ?> -->
  81.  
  82.            
  83.         </footer><!-- #colophon -->
  84.     </div><!-- #page -->
  85.  
  86.     <?php wp_footer(); ?>
  87. </body>
  88. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement