SHARE
TWEET

Untitled

a guest Jan 9th, 2019 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $elitepress_lite_options=theme_data_setup();
  2. $current_options = wp_parse_args(  get_option( 'elitepress_lite_options', array() ), $elitepress_lite_options );
  3. ?>
  4. <!-- Blog Section -->
  5. <section class="home-blog">
  6.     <div class="container">
  7.         <!-- Section Title -->
  8.         <div class="row">
  9.             <div class="col-md-12 col-sm-12">
  10.                 <div class="section-header">
  11.                     <?php if($current_options['blog_title']) { ?>
  12.                     <h3 class="section-title"><?php echo $current_options['blog_title']; ?></h3>
  13.                     <?php }
  14.                     if($current_options['blog_description']) { ?>
  15.                     <p class="section-subtitle"><?php echo $current_options['blog_description']; ?></p>
  16.                     <?php } ?>
  17.                 </div>
  18.             </div>     
  19.         </div>
  20.         <!-- /Section Title -->
  21.        
  22.         <!-- blog -->
  23.         <div class="row">
  24.             <?php
  25.             $post_type = 'post';
  26.             $args = array(
  27.             'post_type' => $post_type,
  28.             'category__in' => $current_options['blog_selected_category_id'],
  29.             'posts_per_page' => $current_options['post_display_count']);
  30.             $j=1;
  31.             $blog_query = null;
  32.             $blog_query = new WP_Query($args);
  33.             if($blog_query->have_posts())
  34.             {   while($blog_query->have_posts()): $blog_query->the_post();
  35.             ?>
  36.             <div class="col-md-4 col-sm-6">
  37.                 <article id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
  38.                 <?php if(has_post_thumbnail()){
  39.                 $defalt_arg =array('class' => "img-responsive"); ?>
  40.                     <figure class="post-thumbnail">
  41.                     <?php the_post_thumbnail('', $defalt_arg); ?>
  42.                         <div class="entry-date"><h2><?php echo get_the_date('j'); ?></h2><span><?php echo get_the_date('M'); ?></span></div>
  43.                     </figure>
  44.                     <?php } ?>
  45.                     <div class="blog-info">
  46.                         <header class="entry-header">
  47.                             <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  48.                         </header>                      
  49.                         <div class="entry-content">
  50.                             <p><?php echo get_home_blog_excerpt(); ?></p>
  51.                         </div>
  52.                     </div>
  53.                 </article>
  54.             </div>
  55.             <?php if($j%3==0){ echo "<div class='clearfix'></div>"; } $j++; endwhile;
  56.             }  else  {
  57.             echo "<div class='post_message'>".__('No Posts to show','elitepress')."</div>";
  58.             } ?>
  59.  
  60.         </div>
  61.         </div>
  62. </section>
  63. <!-- /End of Blog Section -->
  64. <div class="clearfix"></div>
  65.        
  66.     <section class="home-blog">
  67.     <div class="container">
  68.         <div class="row">
  69.             <div class="col-md-12 col-sm-12">
  70.                 <div class="section-header">
  71.                     <h3 class="section-title">Latest Twitter feeds</h3>
  72.                     <p class="section-subtitle">Duis aute irure dolor in reprehenderit in voluptate velit cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupid non proident, sunt in culpa qui official deserunt mollit anim id est laborum.</p>
  73.                 </div>
  74.             </div>     
  75.         </div>
  76.         <!-- /Section Title -->
  77.        
  78.         <!-- blog -->
  79.         <div class="row">
  80.             <div class="col-md-12 col-sm-12">
  81.                 <?php echo do_shortcode( '[custom-twitter-feeds]' );?>
  82.             </div>
  83.         </div>
  84.         <!-- /blog -->
  85.     </div>
  86. </section>
  87. <!-- /End of Blog Section -->
  88. <div class="clearfix"></div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top