Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $current_options = wp_parse_args(get_option('busiprof_pro_theme_options', array()), theme_data_setup());
- if ($current_options['home_recentblog_section_enabled'] == 'on') {
- ?>
- <!-- Portfolio Section -->
- <section id="section" class="portfolio bg-color">
- <div class="container">
- <!-- Section Title -->
- <div class="row">
- <div class="col-md-12">
- <div class="section-title">
- <h1 class="section-heading"><?php echo $current_options['blog_head']; ?></h1>
- <?php if ($current_options['blog_tagline'] != '') { ?>
- <p><?php echo $current_options['blog_tagline']; ?></p>
- <?php } ?>
- </div>
- </div>
- </div>
- <!-- /Section Title -->
- <!-- /Portfolio Tabs -->
- <div class="tab-content main-portfolio-section" id="myTabContent">
- <!-- Portfolio Item -->
- <div class="row">
- <?php
- $k = 1;
- $args = array('post_type' => 'post', 'posts_per_page' => 8, 'post__not_in' => get_option("sticky_posts"));
- query_posts($args);
- if (query_posts($args)) {
- while (have_posts()):the_post();
- // while ($home_project_query->have_posts()) : $home_project_query->the_post();
- ?>
- <div class="col-md-3 col-sm-6 col-xs-12">
- <aside class="post">
- <figure class="post-thumbnail">
- <?php
- if (has_post_thumbnail()) {
- the_post_thumbnail();
- $post_thumbnail_id = get_post_thumbnail_id();
- $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id);
- }
- ?>
- <div class="thumbnail-showcase-overlay">
- <div class="thumbnail-showcase-overlay-inner">
- <div class="thumbnail-showcase-icons">
- <?php if (isset($post_thumbnail_url)) { ?>
- <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
- <?php } ?>
- </div>
- </div>
- </div>
- </figure>
- <div class="portfolio-info">
- <div class="entry-header">
- <h4 class="entry-title"><a href="<?php the_permalink(); ?>" > <?php the_title(); ?></a></h4>
- </div>
- <div class="entry-content">
- <p><?php the_content(__('Read More', 'busiprof')); ?></p>
- </div>
- </div>
- </aside>
- </div>
- <?php if ($k % 4 == 0) {
- echo '<div class="clearfix"></div>';
- } $k++;
- endwhile; ?>
- <?php } ?>
- </div>
- </div>
- </div>
- </section>
- <!-- End of Portfolio Section -->
- <div class="clearfix"></div>
- <?php } ?>
Add Comment
Please, Sign In to add comment