Difference between revisions of "Team:LUBBOCK TTU/parallel"

Line 2: Line 2:
  
 
<html>
 
<html>
 
<?php
 
/**
 
* Index for our theme
 
*
 
* @package WordPress
 
* @subpackage Parallel
 
* @since Parallel 1.0
 
*/
 
?>
 
<?php get_header(); ?>
 
 
<?php { if ( is_front_page() ) { get_template_part('sections/default'); } } ?>
 
  
 
<div class="container">
 
<div class="container">
Line 20: Line 7:
 
     <div class="row">
 
     <div class="row">
  
<div class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?>">
+
<div class="col-md-8">
 
 
 
             <div class="content">
 
             <div class="content">
 
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
 
 
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 
   
 
                <?php if(get_the_post_thumbnail()) { ?><figure class="post-image"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('parallel-post-thumbnails',array('class'=>'img-responsive')); ?></a></figure><?php } ?>
 
 
                  
 
                  
 
                 <div class="clearfix"></div>
 
                 <div class="clearfix"></div>
 
                  
 
                  
                 <h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+
                 <h2 class="entry-title"><a href="">Title</a></h2>
 
                  
 
                  
 
                 <ul class="pagemeta">
 
                 <ul class="pagemeta">
 
                      
 
                      
                     <li><i class="fa fa-clock-o"></i><?php the_time( get_option( 'date_format' ) ); ?></li>
+
                     <li><i class="fa fa-clock-o"></i></li>
 
                      
 
                      
                     <li><i class="fa fa-bookmark"></i><?php the_category(', '); ?></li>
+
                     <li><i class="fa fa-bookmark"></i></li>
 
                      
 
                      
                     <li><i class="fa fa-comment"></i><?php
+
                     <li><i class="fa fa-comment"></i></a></li>
                            printf( _n( '1 Comment', '%1$s Comments', get_comments_number(), 'parallel' ),
+
                                number_format_i18n( get_comments_number() ), get_the_title() ); ?></a></li>
+
 
                      
 
                      
                 <li><i class="fa fa-user"></i><a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta( 'ID' ))); ?>"><?php the_author(); ?></a></li>
+
                 <li><i class="fa fa-user"></i><a href=""></a></li>
 
                  
 
                  
 
                 </ul>
 
                 </ul>
Line 50: Line 29:
 
                 <div class="entry">
 
                 <div class="entry">
 
                      
 
                      
                    <?php the_excerpt(); ?>
 
 
                  
 
                  
 
                 </div>
 
                 </div>
Line 57: Line 35:
 
 
 
 
 
             </article> <!--post -->
 
             </article> <!--post -->
+
 
            <?php endwhile;?>
+
+
            <?php endif; ?>
+
+
<?php the_posts_pagination( array(
+
    'mid_size' => 2,
+
    'prev_text' => __( 'Previous', 'parallel' ),
+
    'next_text' => __( 'Next', 'parallel' ),
+
    'screen_reader_text' => __( '&nbsp;', 'parallel' ),
+
) ); ?>
+
  
 
</div><!--content-->
 
</div><!--content-->
Line 73: Line 42:
 
         </div>
 
         </div>
  
<?php get_sidebar(); ?>
 
  
 
</div>
 
</div>

Revision as of 23:52, 9 June 2017