Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header();
- quality_breadcrumbs(); ?>
- <section id="section-block" class="site-content">
- <div class="container">
- <div class="row">
- <!--Blog Posts-->
- <?php echo '<div class="col-md-'.( !is_active_sidebar( "sidebar-primary" ) ?"12" :"8" ).' col-xs-12">'; ?>
- <div class="news">
- <?php if ( have_posts() ) :
- // Start the Loop.
- while ( have_posts() ) : the_post();
- //get_template_part('content','');
- ?>
- <?php
- $quality_pro_options=theme_data_setup();
- $current_options = wp_parse_args( get_option( 'quality_pro_options', array() ), $quality_pro_options );
- ?>
- <div class="col-md-4">
- <article class="post" <?php post_class(); ?>>
- <?php if(has_post_thumbnail()): ?>
- <figure class="post-thumbnail">
- <?php $defalt_arg =array('class' => "img-responsive"); ?>
- <a href="<?php the_permalink(); ?>">
- <?php the_post_thumbnail('', $defalt_arg); ?>
- </a>
- </figure>
- <?php endif; ?>
- <div class="post-content">
- <?php if($current_options['archive_page_meta_section_settings'] == '' ) {?>
- <div class="item-meta">
- <a class="author-image item-image" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>"><?php echo get_avatar( get_the_author_meta('user_email'), $size = '40'); ?></a>
- <?php echo ' ';?><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>"><?php echo get_the_author();?></a>
- <br>
- <a class="entry-date" href="<?php echo get_month_link(get_post_time('Y'),get_post_time('m')); ?>">
- <?php echo get_the_date('M j, Y'); ?></a>
- </div>
- <?php } ?>
- <?php if (!is_single() ) {?>
- <header class="entry-header">
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- </header>
- <?php } ?>
- <div class="entry-content">
- <?php the_content(__('Read More','quality')); ?>
- </div>
- <?php if($current_options['archive_page_meta_section_settings'] == '' ) {?>
- <hr />
- <div class="entry-meta">
- <span class="comment-links"><a href="<?php the_permalink(); ?>"><?php comments_number(__( 'No Comments', 'quality'), __('One comment', 'quality'), __('% comments', 'quality')); ?></a></span>
- <?php $cat_list = get_the_category_list();
- if(!empty($cat_list)) { ?>
- <span class="cat-links"><?php _e('In','quality');?><a href="<?php the_permalink(); ?>"><?php the_category(' '); ?></a></span>
- <?php } ?>
- </div>
- <?php } ?>
- </div>
- </article>
- </div>
- <?php endwhile;
- ?>
- <div class="paginations">
- <!-- Pagination -->
- <?php
- // Previous/next page navigation.
- the_posts_pagination( array(
- 'prev_text' => '<i class="fa fa-angle-double-left"></i>',
- 'next_text' => '<i class="fa fa-angle-double-right"></i>',
- ) );
- ?>
- </div>
- <?php endif;
- ?>
- </div>
- <!--/Blog Content-->
- </div>
- <?php get_sidebar(); ?>
- </div>
- </div>
- </section>
- <?php
- get_template_part('index','footer-widget');
- get_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement