%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php
	use Roots\Sage\Titles;

	/* TOP BANNER */
	$page_ID = 184;

	if(is_post_type_archive('storys')){
		$archivePage = 'Success Stories';
	}else{
		$archivePage = Titles\title();
	}

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

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

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

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

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

		$newsOrder = 'place-'.$nCount;

		include('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 == 3){
			include(locate_template('sections/newsletter.php'));
		}

	$nCount++;
	endwhile;endif;

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

Zerion Mini Shell 1.0