Your IP : 216.73.216.95


Current Path : /var/test/www/mainsite/wp-content/themes/alone/
Upload File :
Current File : /var/test/www/mainsite/wp-content/themes/alone/archive-give_forms.php

<?php
/**
 * The template for displaying Archive pages
 *
 * @link http://codex.wordpress.org/Template_Hierarchy
 *
 */
$_FW = defined( 'FW' );
$alone_sidebar_position = function_exists( 'fw_ext_sidebars_get_current_position' ) ? fw_ext_sidebars_get_current_position() : 'right';
// $alone_general_posts_options = alone_general_posts_options();

$give_archive_general_opts = array(
	// 'number_form_per_page' => 9,
	'number_form_in_row' => 3
);
if($_FW) { $give_archive_general_opts = fw_get_db_customizer_option('give_settings/give_archive'); }
// echo '<pre>'; print_r($give_archive_general_opts); echo '</pre>';

get_header();
alone_title_bar();

/* START - custom size container variable */
$post_id = (int) get_queried_object_ID();
$content_class = 'content'; $sidebar_template = '';
//echo get_option( 'page_for_posts' );
if ( $_FW ) {
	$post_fw_options_custom_values_serialize = get_post_custom_values('fw_options', $post_id); //fw_get_db_post_option($post_id, 'container_size', '');
	$post_fw_options_custom_values = ! empty($post_fw_options_custom_values_serialize) ? unserialize(trim($post_fw_options_custom_values_serialize[0])) : array('container_size' => '');
	$page_container_size = isset($post_fw_options_custom_values['container_size']) ? $post_fw_options_custom_values['container_size'] : '';

	switch ($page_container_size) {
		case 'container-large': $content_class = 'fully'; $sidebar_template = 'fully-template'; break;
	}
}
/* END - custom size container variable */
?>
<section class="bt-main-row bt-section-space <?php alone_get_content_class('main', $alone_sidebar_position); ?>" role="main" itemprop="mainEntity" itemscope="itemscope" itemtype="http://schema.org/Blog">
	<div class="container <?php echo esc_attr( ($content_class == 'fully') ? 'container-fully' : '' ); ?>">
		<div class="row">
			<div class="bt-content-area <?php alone_get_content_class( $content_class, $alone_sidebar_position ); ?>">
				<div class="bt-col-inner">
					<div class="post-give-list" data-bears-masonryhybrid='{"col": "<?php echo "{$give_archive_general_opts['number_form_in_row']}"; ?>", "space": "36"}'>
						<div class="grid-sizer"></div>
						<div class="gutter-sizer"></div>
						<?php if ( have_posts() ) :
							while ( have_posts() ) : the_post();
								get_template_part( 'templates/give/content', '');
							endwhile;
						else :
							// If no content, include the "No posts found" template.
							get_template_part( 'content', 'none' );
						endif; ?>
					</div><!-- /.postlist-->
					<?php alone_paging_navigation(); // archive pagination ?>
				</div>
			</div><!-- /.bt-content-area-->

			<?php get_sidebar($sidebar_template); ?>
		</div><!-- /.row-->
	</div><!-- /.container-->
</section>
<?php get_footer(); ?>