Advertisement
deliciousthemes

Untitled

Sep 4th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.43 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.     <?php get_template_part( 'includes/subheader' ); ?>
  4.  
  5.     <?php
  6.     //if there are results to show
  7.     if (have_posts()) : ?>
  8.         <!-- <div class="centered-wrapper"> -->
  9.             <section id="posts" class="reg-blog <?php if($smof_data['blog_sidebar_pos'] !='') { echo $smof_data['blog_sidebar_pos']; } ?>">
  10.                 <?php  
  11.                     if ( have_posts()) {
  12.                         while (have_posts()) : the_post();
  13.                     ?>
  14.            
  15.                     <article class="post post-item" id="post-<?php the_ID(); ?>">                                          
  16.                         <?php if ( has_post_thumbnail() ) { ?>     
  17.                             <div class="post-thumbnail">
  18.                                 <a href="<?php the_permalink(); ?>">
  19.                                     <span class="item-on-hover"><span class="hover-link"></span></span>
  20.                                     <?php the_post_thumbnail('blog-thumb'); ?>
  21.                                 </a>
  22.                             </div><!--end post-thumbnail-->                    
  23.                            
  24.                         <?php } ?>
  25.  
  26.                     <div class="post-content">
  27.                         <span class="masonry-post-meta">
  28.                         <?php echo get_the_time(get_option('date_format')); ?>
  29.                         </span>        
  30.                         <div class="clear"></div>
  31.                         <h1><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  32.                                                
  33.                         <?php
  34.                             the_excerpt();
  35.                         ?>
  36.                     </div><!--end post-content-->
  37.                    
  38.                     </article>
  39.  
  40.                     <?php  endwhile;
  41.                    
  42.                                    
  43.                     dt_navigation();
  44.                     // if there are results, but not from the blog posts
  45.                     } else { ?>
  46.                         <article>
  47.                             <p><?php _e('Sorry, but the requested resource was not found on this site. Try another search:', 'delicious'); ?></p>
  48.                             <?php get_search_form(); ?>
  49.                         </article>
  50.                
  51.                 <?php } ?>
  52.             </section>
  53.  
  54. <!--            <?php if(function_exists("dt_sidebar")) {
  55.                 echo '<aside id="sidebar">';
  56.                     if($smof_data['blog_sidebar'] !='') {
  57.                         $blog_sidebar_pos = $smof_data['blog_sidebar'];
  58.                         dt_sidebar($blog_sidebar_pos);
  59.                     }
  60.                 echo '</aside>';
  61.                 } else get_sidebar();
  62.             ?> -->
  63.         <!-- </div> -->
  64.            
  65.  
  66.            
  67.     <?php
  68.     // if there are no search results
  69.      else : ?>
  70.        
  71.         <div class="centered-wrapper">
  72.             <div id="posts" class="reg-blog <?php if($smof_data['blog_sidebar_pos'] !='') { echo $smof_data['blog_sidebar_pos']; } ?>">
  73.                 <article>
  74.                     <p><?php _e('Sorry, but the requested resource was not found on this site. Try another search.', 'delicious'); ?></p>
  75.                 </article>
  76.             </div>
  77.            
  78.             <?php get_sidebar(); ?>
  79.         </div>
  80.  
  81.     <?php endif; ?>
  82.  
  83. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement