Sindbad~EG File Manager
<?php
/**
* Flatbase by NiceThemes.
*
* Used to display archive-type pages if nothing more specific matches a query. For example, puts
* together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a new template file for
* each specific one. For example, we already have tag.php for Tag archives and a category.php for
* Category archives.
*
* @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();
global $nice_options;
?>
<!-- BEGIN #content -->
<!--<section id="content" <?php //nice_content_class( 'main-content' ); ?> role="main">-->
<section class="cat_desc">
<div class="cat_desc_heading"><?php echo single_cat_title(); ?></div>
<div class="cat_desc_text">
<p><?php echo category_description(); ?></p>
</div>
</section>
<header>
<div class="headerSearch">
<div class="hbreadcrumb">
<?php echo custom_breadcrumbs(); ?>
</div>
<div class="hsearchform">
<div id="search-wrap">
<form role="search" method="get" id="searchform" class="clearfix" action="<?php echo home_url('/'); ?>" autocomplete="off">
<div class="input">
<label for="s"><?php echo apply_filters('nice_livesearch_label', __('Have a question? Ask or enter a search term.', 'nicethemes')); ?></label>
<input placeholder="Have a question? Ask or enter a search term." type="text" name="s" id="s" />
<input type="submit" id="searchsubmit" value="" />
</div>
</form>
</div>
</div>
</div>
</header>
<section id="content" <?php nice_content_class('main-content full-width blog-masonry'); ?> role="main">
<?php if (have_posts()) : ?>
<header>
<?php if (is_category()) { ?>
<!--<h1 class="archive-header"><span class="cat"><?php //_e( 'Category Archives', 'nicethemes' ); ?> : <?php //echo single_cat_title(); ?></span> <span class="fr rss"><?php //$cat_obj = $wp_query->get_queried_object(); $cat_id = $cat_obj->cat_ID; echo '<a href="' . get_category_feed_link( $cat_id, '' ) . '">'; _e( "RSS feed for this section", "nicethemes" ); echo '</a>'; ?></span></h1>-->
<?php } elseif (is_day()) { ?>
<h1 class="archive-header"><?php _e('Daily Archives', 'nicethemes'); ?>: <?php the_time(get_option('date_format')); ?></h1>
<?php } elseif (is_month()) { ?>
<h1 class="archive-header"><?php _e('Monthly Archives', 'nicethemes'); ?>: <?php the_time('F, Y'); ?></h1>
<?php } elseif (is_year()) { ?>
<h1 class="archive-header"><?php _e('Yearly Archives', 'nicethemes'); ?>: <?php the_time('Y'); ?></h1>
<?php } elseif (is_author()) { ?>
<h1 class="archive-header"><?php _e('Archive by Author', 'nicethemes'); ?></h1>
<?php } elseif (is_tag()) { ?>
<h1 class="archive-header"><?php _e('Tag Archives', 'nicethemes'); ?> : <?php echo single_tag_title('', true); ?></h1>
<?php } ?>
</header>
<div id="masonry-grid" class="grid clearfix">
<?php
$columns = 3;
$loop = 0;
while (have_posts()) : the_post();
$loop++;
?>
<div id="post-<?php the_ID(); ?>" class="masonry-item isotope-item columns-<?php echo $columns; ?> <?php if ($loop % $columns == 0) echo 'last';
if (( $loop - 1 ) % $columns == 0) echo 'first'; ?>">
<!-- BEGIN .post -->
<article class="post clearfix">
<?php if (has_post_thumbnail()) : ?>
<figure class="featured-image view view-more">
<a href="<?php the_permalink(); ?>" title="<?php printf(__('Permanent Link to %s', 'nicethemes'), esc_attr(get_the_title())); ?>">
<?php nice_image(array('width' => 580, 'height' => 405, 'class' => 'wp-post-image')); ?>
</a>
</figure>
<?php endif; ?>
<header>
<h2 class="post-title">
<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>
</header>
<div class="entry">
<div class="post-content">
<?php the_excerpt(); ?>
<a class="readmore" href="<?php echo get_permalink(get_the_ID()); ?>" title="<?php printf(__('Permanent Link to %s', 'nicethemes'), esc_attr(get_the_title())); ?>"> <?php _e('Read More', 'nicethemes'); ?></a>
</div>
</div>
<!-- END .post -->
</article>
</div>
<?php endwhile; ?>
</div>
<?php echo custom_pagination(); ?>
<!-- END #content -->
<?php else : ?>
<?php _e('Sorry, no posts matched your criteria.', 'nicethemes'); ?>
<?php endif; ?>
<!-- END #content -->
</section>
<?php
get_footer();
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists