%PDF- %PDF-
Direktori : /home/jalalj2hb/www/wp-content/themes/pixel-linear/ |
Current File : /home/jalalj2hb/www/wp-content/themes/pixel-linear/single.php |
<?php /** * Single Posts Template * * * @file single.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#Single_Post_.28single.php.29 * @since available since Release 1.0 */ ?> <?php get_header(); ?> <div id="content"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div id="white"> <div class="container"> <div class="row"> <div class="col-sm-12"> <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 --> <?php if ( has_post_thumbnail() ) : ?> <p><?php the_post_thumbnail(); ?></p> <?php endif; ?> <section class="post-entry"> <?php the_content(); ?> <?php if ( get_the_author_meta( 'description' ) != '' ) : ?> <div id="author-meta"> <?php if ( function_exists( 'get_avatar' ) ) { echo get_avatar( get_the_author_meta( 'email' ), '80' ); }?> <div class="about-author"><?php _e( 'About', 'pixlin' ); ?> <?php the_author_posts_link(); ?></div> <p><?php the_author_meta( 'description' ) ?></p> </div><!-- end of #author-meta --> <?php endif; // no description, no author's meta ?> <?php custom_link_pages( array( 'before' => '<nav class="pagination"><ul>', 'after' => '</ul></nav>', 'next_or_number' => 'next_and_number', // activate parameter overloading 'nextpagelink' => __( '→','' ), 'previouspagelink' => __( '←','' ), 'pagelink' => '%', 'echo' => 1 ) ); ?> </section><!-- end of .post-entry --> <footer class="article-footer"> <?php if ( pts_get_data( 'enable_disable_tags', '1' ) == '1' ) {?> <div class="post-data"> <?php the_tags( __( 'TAGS:', 'pixlin' ) . ' ', ' - ', '<br />' ); ?> </div><!-- end of .post-data --> <?php } ?> <div class="post-edit"><?php edit_post_link( __( 'Edit', 'pixlin' ) ); ?></div> </footer> </div> </div> </div> </div> </article><!-- end of #post-<?php the_ID(); ?> --> <div class="container"> <div class="row"> <div class="col-sm-12"> <?php comments_template( '', true ); ?> </div> </div> </div> <?php endwhile; ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div class="container"> <div class="row"> <div class="col-sm-12"> <nav class="navigation"> <div class="previous"><?php next_posts_link( __( '‹ Older posts', 'pixlin' ) ); ?></div> <div class="next"><?php previous_posts_link( __( 'Newer posts ›', 'pixlin' ) ); ?></div> </nav><!-- end of .navigation --> </div> </div> </div> <?php endif; ?> <?php else : ?> <article id="post-not-found" class="hentry clearfix"> <div class="container"> <div class="row"> <div class="col-sm-12"> <header> <h1 class="title-404"><?php _e( '404 — Fancy meeting you here!', 'pixlin' ); ?></h1> </header> <section> <p><?php _e( 'Don't panic, we'll get through this together. Let'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( '⏎ 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><!-- end of #content --> <?php get_footer(); ?>