Sindbad~EG File Manager

Current Path : /var/www/quickscrum.com/Old-Guide/wp-content/themes/flatbase/
Upload File :
Current File : /var/www/quickscrum.com/Old-Guide/wp-content/themes/flatbase/template-blog-masonry.php

<?php
/**
 * Flatbase by NiceThemes.
 *
 * Template Name: Blog - Masonry
 *
 * @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;
}

add_filter( 'nice_load_flexslider_js', '__return_true', 10 );
add_filter( 'nice_load_more_posts_loader_js', '__return_true', 10 );

get_header();

global $nice_options;

if ( get_query_var( 'paged' ) ) $paged = get_query_var( 'paged' ); elseif ( get_query_var( 'page' ) ) $paged = get_query_var( 'page' ); else $paged = 1; ?>

<?php query_posts( array( 'post_type' => 'post', 'paged' => $paged ) ); ?>

	<!-- BEGIN #content -->
	<section id="content" <?php nice_content_class( 'main-content full-width blog-masonry' ); ?> role="main">

		<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>
						<?php //nice_post_meta_masonry(); ?>
					</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 if ( isset( $nice_options['nice_masonry_posts_load_method'] ) && $nice_options['nice_masonry_posts_load_method'] == 'on_button'  ) { ?>
		<a href="#" id="posts-ajax-loader-button" title="<?php _e( 'Load More..', 'nicethemes' ); ?>"><?php _e( 'Load More..', 'nicethemes' ); ?></a>
	<?php } ?>

	<div id="posts-ajax-loader"></div>

	<!-- END #content -->
	</section>

<?php get_footer();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists