%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/makkitrust.org/wp-content/themes/alhambra/
Upload File :
Create Path :
Current File : /home/eirtvhdf/makkitrust.org/wp-content/themes/alhambra/index-classic.php

<?php
/**
 * The template for homepage posts with "Classic" style
 *
 * @package WordPress
 * @subpackage ALHAMBRA
 * @since ALHAMBRA 1.0
 */

alhambra_storage_set('blog_archive', true);

// Load scripts for 'Masonry' layout
if (substr(alhambra_get_theme_option('blog_style'), 0, 7) == 'masonry') {
	wp_enqueue_script( 'imagesloaded' );
	wp_enqueue_script( 'masonry' );
	wp_enqueue_script( 'classie', alhambra_get_file_url('js/theme.gallery/classie.min.js'), array(), null, true );
	wp_enqueue_script( 'alhambra-gallery-script', alhambra_get_file_url('js/theme.gallery/theme.gallery.js'), array(), null, true );
}

get_header(); 

if (have_posts()) {

	echo get_query_var('blog_archive_start');

	$alhambra_classes = 'posts_container '
						. (substr(alhambra_get_theme_option('blog_style'), 0, 7) == 'classic' ? 'columns_wrap columns_padding_bottom' : 'masonry_wrap');
	$alhambra_stickies = is_home() ? get_option( 'sticky_posts' ) : false;
	$alhambra_sticky_out = alhambra_get_theme_option('sticky_style')=='columns' 
							&& is_array($alhambra_stickies) && count($alhambra_stickies) > 0 && get_query_var( 'paged' ) < 1;
	if ($alhambra_sticky_out) {
		?><div class="sticky_wrap columns_wrap"><?php	
	}
	if (!$alhambra_sticky_out) {
		if (alhambra_get_theme_option('first_post_large') && !is_paged() && !in_array(alhambra_get_theme_option('body_style'), array('fullwide', 'fullscreen'))) {
			the_post();
			get_template_part( 'content', 'excerpt' );
		}
		
		?><div class="<?php echo esc_attr($alhambra_classes); ?>"><?php
	}
	while ( have_posts() ) { the_post(); 
		if ($alhambra_sticky_out && !is_sticky()) {
			$alhambra_sticky_out = false;
			?></div><div class="<?php echo esc_attr($alhambra_classes); ?>"><?php
		}
		get_template_part( 'content', $alhambra_sticky_out && is_sticky() ? 'sticky' : 'classic' );
	}
	
	?></div><?php

	alhambra_show_pagination();

	echo get_query_var('blog_archive_end');

} else {

	if ( is_search() )
		get_template_part( 'content', 'none-search' );
	else
		get_template_part( 'content', 'none-archive' );

}

get_footer();
?>

Zerion Mini Shell 1.0