File: /home/showtijd/domains/showtijd.eu/public_html/wp-content/themes/itheme2/page.php
<?php get_header(); ?>
<?php
/** Themify Default Variables
* @var object */
global $themify;
?>
<?php if(is_front_page() && !is_paged()){ get_template_part( 'includes/header-slider'); } ?>
<!-- layout-container -->
<div id="layout" class="clearfix">
<?php themify_content_before(); //hook ?>
<!-- content -->
<div id="content" class="clearfix">
<?php themify_content_start(); //hook ?>
<?php
/////////////////////////////////////////////
// 404
/////////////////////////////////////////////
?>
<?php if(is_404()): ?>
<h1 class="page-title"><?php _e('404','themify'); ?></h1>
<p><?php _e( 'Page not found.', 'themify' ); ?></p>
<?php if( current_user_can('administrator') ): ?>
<p><?php _e( '@admin Learn how to create a <a href="https://themify.me/docs/custom-404" target="_blank">custom 404 page</a>.', 'themify' ); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php
/////////////////////////////////////////////
// PAGE
/////////////////////////////////////////////
?>
<?php if ( ! is_404() && have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="page-<?php the_ID(); ?>" class="type-page">
<div class="page-content entry-content">
<!-- page-title -->
<?php if($themify->page_title != "yes"): ?>
<time datetime="<?php the_time( 'o-m-d' ); ?>"></time>
<?php the_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php endif; ?>
<!-- /page-title -->
<?php if ( $themify->hide_page_image != 'yes' && has_post_thumbnail() ) : ?>
<figure class="post-image"><?php themify_image( "{$themify->auto_featured_image}w={$themify->image_page_single_width}&h={$themify->image_page_single_height}&ignore=true" ); ?></figure>
<?php endif; ?>
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p class="post-pagination"><strong>'.__('Pages:','themify').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php edit_post_link(__('Edit','themify'), '<span class="edit-button">[', ']</span>'); ?>
<!-- comments -->
<?php if(!themify_check('setting-comments_pages') && $themify->query_category == ""): ?>
<?php comments_template(); ?>
<?php endif; ?>
<!-- /comments -->
</div>
<!-- /.page-content -->
</div><!-- /.type-page -->
<?php endwhile; endif; ?>
<?php
/////////////////////////////////////////////
// Query Category
/////////////////////////////////////////////
?>
<?php
///////////////////////////////////////////
// Setting image width, height
///////////////////////////////////////////
if( $themify->query_category != '' ) :
if(themify_get('section_categories') != 'yes') :
// Query posts action based on global $themify options
do_action( 'themify_custom_query_posts' );
if( have_posts() ) : ?>
<!-- loops-wrapper -->
<div id="loops-wrapper" class="loops-wrapper <?php echo $themify->layout . ' ' . $themify->post_layout; ?>">
<?php while(have_posts()) : the_post(); ?>
<?php get_template_part('includes/loop', 'query'); ?>
<?php endwhile; ?>
</div>
<!-- /loops-wrapper -->
<?php if ($themify->page_navigation != "yes"): ?>
<?php get_template_part( 'includes/pagination'); ?>
<?php endif; ?>
<?php endif; ?>
<?php else :
foreach( themify_get_query_categories() as $category ) :
$category = get_term_by( is_numeric( $category ) ? 'id': 'slug', $category, 'category' );
$cats = get_categories( array( 'include' => isset( $category ) && isset( $category->term_id ) ? $category->term_id : 0, 'orderby' => 'id' ) );
foreach( $cats as $cat ):
// Query posts action based on global $themify options
do_action( 'themify_custom_query_posts', array(
'tax_query' => array(
array(
'taxonomy' => $themify->query_taxonomy,
'field' => 'id',
'terms' => $cat->cat_ID
)
)
) );
if( have_posts() ) : ?>
<!-- category-section -->
<div class="category-section clearfix <?php echo $cat->slug; ?>-category">
<h3 class="category-section-title"><a href="<?php echo esc_url( get_category_link($cat->cat_ID) ); ?>" title="<?php _e('View more posts', 'themify'); ?>"><?php echo $cat->cat_name; ?></a></h3>
<!-- loops-wrapper -->
<div id="loops-wrapper" class="loops-wrapper <?php echo $themify->layout . ' ' . $themify->post_layout; ?>">
<?php while(have_posts()) : the_post(); ?>
<?php get_template_part('includes/loop', 'query'); ?>
<?php endwhile; ?>
</div>
<!-- /loops-wrapper -->
<?php if ( $themify->page_navigation != "yes" ): ?>
<?php get_template_part( 'includes/pagination'); ?>
<?php endif; ?>
</div>
<!-- /category-section -->
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
<?php themify_content_end(); //hook ?>
</div>
<!-- /content -->
<?php themify_content_after() //hook; ?>
<?php
/////////////////////////////////////////////
// Sidebar
/////////////////////////////////////////////
if ($themify->layout != "sidebar-none"): get_sidebar(); endif; ?>
</div>
<!-- /layout-container -->
<?php get_footer(); ?>