Advertisement
Guest User

Untitled

a guest
Jan 30th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.  
  4.  
  5.  
  6.  
  7. <!-- Super Container -->
  8.  
  9. <div class="super-container main-content-area" id="section-content">
  10.  
  11.  
  12.  
  13. <!-- 960 Container -->
  14.  
  15. <div class="container">
  16.  
  17.  
  18.  
  19. <!-- CONTENT -->
  20.  
  21. <div class="one column content">
  22.  
  23.  
  24.  
  25. <!-- 404 MESSAGE -->
  26.  
  27. <?php if ( ! have_posts() ) : ?>
  28.  
  29. <h2 class="title"><span>Ohhhh Snap! We can't find the page...</span></h2>
  30.  
  31. <div class="the_content">
  32.  
  33. <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sidewinder' ); ?></p>
  34.  
  35. <?php get_template_part( 'element', 'search' ); ?>
  36.  
  37. </div>
  38.  
  39. <?php endif; ?>
  40.  
  41.  
  42.  
  43. <!-- THE POST LOOP -->
  44.  
  45. <?php while ( have_posts() ) : the_post(); ?>
  46.  
  47.  
  48.  
  49. <h2 class="title"><span><!- -?php the_title(); ?- -></span></h2>
  50.  
  51.  
  52.  
  53. <!-- Featured Image -->
  54.  
  55. <?php if(get_option_tree('show_featured_image') == 'Yes') : ?>
  56.  
  57.  
  58.  
  59. <?php if (has_post_thumbnail( $post->ID )) {
  60.  
  61.  
  62.  
  63. if (get_option_tree('sencha') == 'Yes') {
  64.  
  65. $sencha = 'http://src.sencha.io/';
  66.  
  67. } else {
  68.  
  69. $sencha = '';
  70.  
  71. }
  72.  
  73.  
  74.  
  75. $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?>
  76.  
  77. <a href="<?php echo $image[0]; ?>" data-rel="prettyPhoto">
  78.  
  79. <img class="aligncenter" src="<?php echo $sencha; ?><?php echo $image[0]; ?>" alt="<?php the_title(); ?>" />
  80.  
  81. </a>
  82.  
  83.  
  84.  
  85. <br class="clearfix" />
  86.  
  87. <?php } else {} ?>
  88.  
  89.  
  90.  
  91. <?php endif; ?>
  92.  
  93.  
  94.  
  95. <?php the_content(); ?>
  96.  
  97.  
  98.  
  99. <?php wp_link_pages('before=<br /><div id="page-links"><span>Pages:</span>&after=</div><hr />&link_before=<div>&link_after=</div>'); ?>
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109. <?php endwhile; ?>
  110.  
  111.  
  112.  
  113. </div>
  114.  
  115. <!-- /CONTENT -->
  116.  
  117.  
  118.  
  119. <!-- ============================================== -->
  120.  
  121.  
  122.  
  123. <!-- SIDEBAR -->
  124.  
  125. <div class="five columns sidebar">
  126.  
  127.  
  128.  
  129. <?php dynamic_sidebar( 'default-widget-area' ); ?>
  130.  
  131.  
  132.  
  133. </div>
  134.  
  135. <!-- /SIDEBAR -->
  136.  
  137.  
  138.  
  139. </div>
  140.  
  141. <!-- /End 960 Container -->
  142.  
  143.  
  144.  
  145. </div>
  146.  
  147. <!-- /End Super Container -->
  148.  
  149.  
  150.  
  151.  
  152.  
  153. <!-- ============================================== -->
  154.  
  155.  
  156.  
  157.  
  158.  
  159. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement