%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/jalalj2hb/public_html/wp-content/themes/pixel-linear/
Upload File :
Create Path :
Current File : /home/jalalj2hb/public_html/wp-content/themes/pixel-linear/index.php

<?php
/**
 * Index Template
 *
 *
 * @file           index.php
 * @package        Pixel-Linear 
 * @author         Pixel Theme Studio 
 * @copyright      2014 - 2015 Pixel Theme Studio Themes
 * @license        license.txt
 * @version        Release: 1.0.0
 * @link           http://codex.wordpress.org/Theme_Development#Index_.28index.php.29
 * @since          available since Release 1.0
 */
?>
<?php get_header(); ?>
<?php global $more; $more = 0; ?>

   <?php
   global $wp_query;
   if ( get_query_var('paged') ) {
    $paged = get_query_var('paged');
  } elseif ( get_query_var('page') ) {
    $paged = get_query_var('page');
  } else {
    $paged = 1;
  }
  query_posts( array( 'post_type' => 'post', 'paged' => $paged ) );
  ?>   


  <?php if (have_posts()) : ?> 
  
  <div class="container pt">	
  <div class="row">
  
  <?php 
  	if( pts_get_data('custom_blog_layout') == 'No Sidebar' ){
  		$colside = "0";
		$colmain = "12";
	}elseif(pts_get_data('custom_blog_layout') == 'Left Sidebar'){
		$colside = "3";
		$colmain = "9";
	}elseif(pts_get_data('custom_blog_layout') == 'Right Sidebar'){
		$colside = "3";
		$colmain = "9";
	}elseif(pts_get_data('custom_blog_layout') == 'Left + Right Sidebar'){
		$colside = "3";
		$colmain = "6";
	}
  ?>
  

  <?php if ( pts_get_data('custom_blog_layout') == 'Left Sidebar' || pts_get_data('custom_blog_layout') == 'Left + Right Sidebar' ) { ?>
    <div class="col-sm-<?php echo $colside; ?>">
            <?php dynamic_sidebar('left-sidebar'); ?>
    </div><!-- col left -->
  <?php } ?>
  
  <div class="col-sm-<?php echo $colmain; ?>">
  <?php while (have_posts()) : the_post(); ?>

          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

                  <section class="post-meta">  
                  <a href="<?php echo post_permalink() ?>">
                   <header>
                     <h3 class="post-title"><?php the_title(); ?></h3>
                   </header>        
                   <p><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="fa fa-user"></i> <?php the_author_meta( 'display_name' ); ?> / <i class="fa fa-calendar"></i> <time class="post-date"><?php the_date(); ?></time></p></a>	
                  </section><!-- end of .post-meta -->

				  
                  <section class="post-entry">
                  <?php if ( has_post_thumbnail()){ ?>
                  <div class="col-sm-2 centered">
                        <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
                          <?php the_post_thumbnail('thumbnail'); ?>
                        </a>
                  </div>
                  <div class="col-sm-10">
                  <?php  }else { ?>
                  <div class="col-sm-12">
                  <?php } ?>
    
                      <?php the_content(); ?>
                  </div>
                  <footer class="col-sm-12 post-footer">
                    <bd>Tags :</bd> <?php echo the_tags("", " | ", " "); ?>
                  </footer>
                  <div class="clearfix"></div>
                  
                  <?php custom_link_pages(array(
                        'before' => '<nav class="pagination"><ul>',
                        'after' => '</ul></nav>',
                                'next_or_number' => 'next_and_number', # activate parameter overloading
                                'nextpagelink' => __('&rarr;',''),
                                'previouspagelink' => __('&larr;',''),
                                'pagelink' => '%',
                                'echo' => 1 )
                                ); ?>

                  </section><!-- end of .post-entry -->  

                        

                     
                   


                </article><!-- end of #post-<?php the_ID(); ?> -->



              <?php endwhile; ?> 
              </div> <!-- post col -->
              
              
              <?php if ( pts_get_data('custom_blog_layout') == 'Right Sidebar' || pts_get_data('custom_blog_layout') == 'Left + Right Sidebar' ) { ?>
                <div class="col-sm-<?php echo $colside; ?>">
                        <?php dynamic_sidebar('right-sidebar'); ?>
                </div> <!-- col right -->
              <?php } ?>
              
              
               </div> <!-- /row -->
                  </div> <!-- /container -->

              <?php if (  $wp_query->max_num_pages > 1 ) : ?>
              <div class="container">
				<div class="row">
                  <div class="col-sm-12">
                    <hr>
                    <nav>
                      <ul class="pager">
                       <li class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'pixlin' ) ); ?></li>
                       <li class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'pixlin' ) ); ?></li>
                     </ul><!-- end of .navigation -->
                   </nav>
                 </div>
         	 	</div>
       		 </div>
           <?php endif; ?>

         <?php else : ?>

         <article id="post-not-found" class="hentry clearfix pt">
          <div class="container">
              <div class="row">
                <div class="col-sm-12">
          <header>
           <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'pixlin'); ?></h1>
         </header>
         <section>
           <p><?php _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'pixlin'); ?></p>
         </section>
         <footer>
           <h6><?php _e( 'You can return', 'pixlin' ); ?> <a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e( 'Home', 'pixlin' ); ?>"><?php _e( '&#9166; Home', 'pixlin' ); ?></a> <?php _e( 'or search for the page you were looking for', 'pixlin' ); ?></h6>
           <?php get_search_form(); ?>
         </footer>
         </div>
         </div>
       </div>
       </article>

     <?php endif; ?>  


   </div> <!-- /col-sm-12 -->

   <?php get_footer(); ?>

Zerion Mini Shell 1.0