Sindbad~EG File Manager
<?php
/**
* Flatbase by NiceThemes.
*
* The main template file
*
* This is the most generic template file in a WordPress theme and one
* of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query,
* e.g., it puts together the home page when no home.php file exists.
*
* @link http://codex.wordpress.org/Template_Hierarchy
*
* @package Flatbase
* @author NiceThemes <hello@nicethemes.com>
* @license GPL-2.0+
* @link http://nicethemes.com/theme/flatbase
* @copyright 2016 NiceThemes
* @since 1.0.0
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
get_header();
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 ) );
?>
<!-- BEGIN #content -->
<section id="content" <?php nice_content_class( 'main-content' ); ?> role="main">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<!-- BEGIN .post -->
<article class="post clearfix">
<header>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __( 'Permanent Link to %s', 'nicethemes' ), esc_attr( get_the_title() ) ); ?>"><?php the_title(); ?></a></h2>
<?php nice_post_meta(); ?>
</header>
<div class="entry">
<?php if ( has_post_thumbnail() ) : ?>
<figure class="featured-image">
<a href="<?php the_permalink(); ?>" title="<?php printf( __( 'Permanent Link to %s', 'nicethemes' ), esc_attr( get_the_title() ) ); ?>">
<?php nice_image( array( 'width' => 320, 'height' => 200, 'class' => 'wp-post-image' ) ); ?>
</a>
</figure>
<?php endif; ?>
<div class="post-content">
<?php nice_excerpt( 400 ); ?>
</div>
</div>
<!-- END .post -->
</article>
<?php endwhile; ?>
<?php else : ?>
<?php _e( 'Sorry, no posts matched your criteria.', 'nicethemes' ); ?>
<?php endif; ?>
<?php nice_pagenavi();?>
<!-- END #content -->
</section>
<?php
get_sidebar();
get_footer();
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists