Guest User

Untitled

a guest
Jan 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.92 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.     <div id="content-full">
  4.         <div id="home-top"></div>
  5.         <div id="hr">
  6.             <div id="hr-center">
  7.                 <div id="intro">
  8.                     <div class="center-highlight">
  9.                    
  10.                         <div class="container">
  11.    
  12.                             <?php if (get_option('deepfocus_featured') == 'on') include(TEMPLATEPATH . '/includes/featured.php'); ?>
  13.                            
  14.                             <?php if (get_option('deepfocus_quote') == 'on') { ?>
  15.                                 <div id="tagline">
  16.                                     <p><?php echo(get_option('deepfocus_quote_one')); ?></p>
  17.                                     <span class="quote2"><?php echo(get_option('deepfocus_quote_two')); ?></span>
  18.                                 </div>  <!-- end #tagline-->
  19.                             <?php } ?>
  20.                            
  21.                         </div> <!-- end .container --> 
  22.                     </div> <!-- end .center-highlight -->
  23.                 </div>  <!-- end #intro -->
  24.             </div> <!-- end #hr-center -->
  25.         </div> <!-- end #hr -->
  26.                
  27.         <div class="center-highlight">
  28.             <div class="container">
  29.                
  30.                 <?php if (get_option('deepfocus_blog_style') == 'false') { ?>
  31.                     <?php for ($i=1; $i <= 2; $i++) { ?>
  32.                         <?php query_posts('page_id=' . get_pageId(html_entity_decode(get_option('deepfocus_home_page_'.$i)))); while (have_posts()) : the_post(); ?>
  33.                             <div class="service">
  34.                                 <h3 class="hometitle"><?php the_title(); ?></h3>
  35.                                 <?php global $more;
  36.                                 $more = 0; 
  37.                                 the_excerpt(' '); ?>
  38.                                 <a href="<?php the_permalink(); ?>" class="readmore"><span><?php _e('Learn More','DeepFocus'); ?></span></a>
  39.                             </div> <!-- end .service -->
  40.                         <?php endwhile; wp_reset_query(); ?>
  41.                     <?php } ?>
  42.                
  43.                    
  44.                     <div class="service" id="blog">
  45.                         <div id="blog-top"></div>
  46.                         <div id="blog-wrapper">
  47.                             <div id="blog-content">
  48.                                 <h4 class="widgettitle"><?php _e('From The Blog','DeepFocus'); ?></h4>
  49.                                 <div class="recentscroll">
  50.                                     <ul>
  51.                                         <?php query_posts("showposts=".get_option('deepfocus_fromblog_number')."&cat=".get_cat_ID(get_option('deepfocus_blog_cat')));
  52.                                         if (have_posts()) : while (have_posts()) : the_post(); ?>
  53.                                             <li class="clearfix">
  54.                                                 <a href="<?php the_permalink(); ?>" class="title"><span><?php truncate_title(30); ?></span></a>
  55.                                                 <span class="postinfo"><?php _e('Posted','DeepFocus'); ?> <?php _e('by','DeepFocus'); ?> <?php the_author_posts_link(); ?> <?php _e('on','DeepFocus'); ?> <?php the_time(get_option('deepfocus_date_format')) ?></span>
  56.                                             </li>
  57.                                         <?php endwhile; endif; wp_reset_query(); ?>
  58.                                     </ul> <!-- end ul.nav -->
  59.                                 </div> <!-- end .recentscroll -->
  60.                             </div> <!-- end #blog-center -->
  61.                         </div> <!-- end #blog-wrapper -->  
  62.                        
  63.                         <div id="controllers2">
  64.                             <a href="#" id="left-arrow"><?php _e('Previous','DeepFocus'); ?></a>
  65.                             <a href="#" id="right-arrow"><?php _e('Next','DeepFocus'); ?></a>
  66.                         </div>  <!-- end #controllers2 -->
  67.                     </div> <!-- end .service -->
  68.                    
  69.                     <div class="clear"></div>
  70.                    
  71.                     <h3 class="hometitle recentworks"><?php _e('Recent Works','DeepFocus'); ?></h3>
  72.                    
  73.                     <div id="portfolio-items" class="clearfix">
  74.                        
  75.                         <?php $allCats = get_categories();
  76.                        
  77.                         $args = array('category__not_in' => get_option('deepfocus_exlcats_recentworks'),
  78.                                       'showposts' => get_option('deepfocus_portfolio_number'));
  79.                        
  80.                         $i = 1;
  81.                         query_posts($args);
  82.                         if (have_posts()) : while (have_posts()) : the_post(); ?>
  83.                             <?php include(TEMPLATEPATH . '/includes/gallery.php'); ?>
  84.                         <?php $i++; endwhile; endif; wp_reset_query(); ?>
  85.                        
  86.                         <div class="clear"></div>
  87.                        
  88.                         <a href="<?php echo(get_category_link(get_cat_ID(get_option('deepfocus_portfolio_cat')))); ?>" class="readmore entergallery"><span><?php _e('Enter The Gallery','DeepFocus'); ?></span></a>
  89.                     </div> <!-- end #portfolio-items -->   
  90.                
  91.                 <?php } else { ?>
  92.                     <div id="content-area" class="clearfix">
  93.                
  94.                         <div id="left-area">
  95.                             <?php $args=array(
  96.                                 'showposts'=>get_option('deepfocus_homepage_posts'),
  97.                                 'paged'=>$paged,
  98.                                 'category__not_in' => get_option('deepfocus_exlcats_recent'),
  99.                             );
  100.                             if (get_option('deepfocus_duplicate') == 'false') $args['post__not_in'] = $ids;
  101.                             query_posts($args); ?>
  102.                             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>                
  103.                                 <?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
  104.                                 <?php $i++; ?>
  105.                             <?php endwhile; ?>
  106.                                 <div class="clear"></div>
  107.                                 <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  108.                                 else { ?>
  109.                                      <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
  110.                                 <?php } ?>
  111.                                
  112.                             <?php else : ?>
  113.                                 <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
  114.                             <?php endif; wp_reset_query(); ?>
  115.                            
  116.                         </div> <!-- end #left-area -->
  117.                        
  118.                         <?php get_sidebar(); ?>
  119.  
  120.                     </div> <!-- end #content-area -->
  121.                 <?php } ?>
  122.                
  123.             </div> <!-- end .container -->
  124.                    
  125.             <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment