Guest User

Untitled

a guest
Jan 23rd, 2018
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.04 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.                         <?php query_posts('page_id=' . get_pageId(html_entity_decode(get_option('deepfocus_home_page_1')))); while (have_posts()) : the_post(); ?>
  34.                             <div class="service">
  35.                                 //<h3 class="hometitle"><?php the_title(); ?></h3>
  36.                                 <h3 class="hometitle">Who I Am</h3>
  37.                                 //<?php global $more;
  38.                                 //$more = 0;   
  39.                                 //the_excerpt(' '); ?>
  40. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vitae odio justo, in cursus felis.
  41.                                 <a href="<?php the_permalink(); ?>" class="readmore"><span><?php _e('Learn More','DeepFocus'); ?></span></a>
  42.                             </div> <!-- end .service -->
  43.                         <?php endwhile; wp_reset_query(); ?>
  44.  
  45. // What I Do
  46.  
  47.                         //<?php query_posts('page_id=' . get_pageId(html_entity_decode(get_option('deepfocus_home_page_'.$i)))); while (have_posts()) : the_post(); ?>
  48.                         <?php query_posts('page_id=' . get_pageId(html_entity_decode(get_option('deepfocus_home_page_2')))); while (have_posts()) : the_post(); ?>
  49.                             <div class="service">
  50.                                 //<h3 class="hometitle"><?php the_title(); ?></h3>
  51.                                 <h3 class="hometitle">What I Do</h3>
  52.                                 //<?php global $more;
  53.                                 //$more = 0;   
  54.                                 //the_excerpt(' '); ?>
  55. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vitae odio justo, in cursus felis.
  56.                                 <a href="<?php the_permalink(); ?>" class="readmore"><span><?php _e('Learn More','DeepFocus'); ?></span></a>
  57.                             </div> <!-- end .service -->
  58.                         <?php endwhile; wp_reset_query(); ?>
  59.                     //<?php } ?>
  60.                
  61.                    
  62.                     <div class="service" id="blog">
  63.                         <div id="blog-top"></div>
  64.                         <div id="blog-wrapper">
  65.                             <div id="blog-content">
  66.                                 <h4 class="widgettitle"><?php _e('From The Blog','DeepFocus'); ?></h4>
  67.                                 <div class="recentscroll">
  68.                                     <ul>
  69.                                         <?php query_posts("showposts=".get_option('deepfocus_fromblog_number')."&cat=".get_cat_ID(get_option('deepfocus_blog_cat')));
  70.                                         if (have_posts()) : while (have_posts()) : the_post(); ?>
  71.                                             <li class="clearfix">
  72.                                                 <a href="<?php the_permalink(); ?>" class="title"><span><?php truncate_title(30); ?></span></a>
  73.                                                 <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>
  74.                                             </li>
  75.                                         <?php endwhile; endif; wp_reset_query(); ?>
  76.                                     </ul> <!-- end ul.nav -->
  77.                                 </div> <!-- end .recentscroll -->
  78.                             </div> <!-- end #blog-center -->
  79.                         </div> <!-- end #blog-wrapper -->  
  80.                        
  81.                         <div id="controllers2">
  82.                             <a href="#" id="left-arrow"><?php _e('Previous','DeepFocus'); ?></a>
  83.                             <a href="#" id="right-arrow"><?php _e('Next','DeepFocus'); ?></a>
  84.                         </div>  <!-- end #controllers2 -->
  85.                     </div> <!-- end .service -->
  86.                    
  87.                     <div class="clear"></div>
  88.                    
  89.                     <h3 class="hometitle recentworks"><?php _e('Recent Works','DeepFocus'); ?></h3>
  90.                    
  91.                     <div id="portfolio-items" class="clearfix">
  92.                        
  93.                         <?php $allCats = get_categories();
  94.                        
  95.                         $args = array('category__not_in' => get_option('deepfocus_exlcats_recentworks'),
  96.                                       'showposts' => get_option('deepfocus_portfolio_number'));
  97.                        
  98.                         $i = 1;
  99.                         query_posts($args);
  100.                         if (have_posts()) : while (have_posts()) : the_post(); ?>
  101.                             <?php include(TEMPLATEPATH . '/includes/gallery.php'); ?>
  102.                         <?php $i++; endwhile; endif; wp_reset_query(); ?>
  103.                        
  104.                         <div class="clear"></div>
  105.                        
  106.                         <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>
  107.                     </div> <!-- end #portfolio-items -->   
  108.                
  109.                 <?php } else { ?>
  110.                     <div id="content-area" class="clearfix">
  111.                
  112.                         <div id="left-area">
  113.                             <?php $args=array(
  114.                                 'showposts'=>get_option('deepfocus_homepage_posts'),
  115.                                 'paged'=>$paged,
  116.                                 'category__not_in' => get_option('deepfocus_exlcats_recent'),
  117.                             );
  118.                             if (get_option('deepfocus_duplicate') == 'false') $args['post__not_in'] = $ids;
  119.                             query_posts($args); ?>
  120.                             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>                
  121.                                 <?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
  122.                                 <?php $i++; ?>
  123.                             <?php endwhile; ?>
  124.                                 <div class="clear"></div>
  125.                                 <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  126.                                 else { ?>
  127.                                      <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
  128.                                 <?php } ?>
  129.                                
  130.                             <?php else : ?>
  131.                                 <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
  132.                             <?php endif; wp_reset_query(); ?>
  133.                            
  134.                         </div> <!-- end #left-area -->
  135.                        
  136.                         <?php get_sidebar(); ?>
  137.  
  138.                     </div> <!-- end #content-area -->
  139.                 <?php } ?>
  140.                
  141.             </div> <!-- end .container -->
  142.                    
  143.             <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment