%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/wp-content/themes/intosai/
Upload File :
Create Path :
Current File : //var/www/pn/wp-content/themes/intosai/index.php

<?php
    /* TOP BANNER */
	$page_ID = 184;

    $banner = get_field('top_banner_options', $page_ID);

    if($banner == 'static_banner'){
        include('templates/sections/banner_static.php');
    }elseif($banner == 'slide_banner'){
        include('templates/sections/banner_slider.php');
    }

	/* CATEGORY MENU */
	include('templates/sections/archive_nav.php');

	global $query_string;
	query_posts( $query_string . '&posts_per_page=9' );

	$nCount = 1;
	while (have_posts()) : the_post();

		if($nCount == '1' || $nCount == '4' || $nCount == '8'){
			$newsSize = 'large';
		}else{
			$newsSize = 'small';
		}

		$newsOrder = 'place-'.$nCount;

		include(locate_template('templates/content-news.php'));

		/*if($nCount == '1'){ ?>

			<a href="<?= get_field('redbox_link', 184); ?>">
				<article class="news_article priority small">
					<span><?= get_field('redbox_content', 184); ?></span>
				</article>
			</a>

		<?php }*/

		/*PRINT NEWSLETTER SIGNUP*/
		if($nCount == 4){
			include(locate_template('templates/sections/newsletter.php'));
		}

	$nCount++;
	endwhile;

	$totalPosts = $wp_query->found_posts;
	if($totalPosts > 8){
		include(locate_template('templates/pagination.php'));
	}

?>

Zerion Mini Shell 1.0