sidebar( 'left' );
?>
get_option( 'page_on_front' ),
'post_type' => 'page'
));
$not_found = true;
if( count( $wp_query -> posts ) ){
$classes = implode( ' ' , get_post_class( 'mythemes-page' , absint( get_option( 'page_on_front' ) ) ) );
/* CONTENT WRAPPER */
echo '';
foreach( $wp_query -> posts as $post ){
$wp_query -> the_post();
$p_thumbnail = get_post( get_post_thumbnail_id() );
if( has_post_thumbnail() && isset( $p_thumbnail -> ID ) ){
?>
ID, 'full', array(
'alt' => mythemes_post::title( $post -> ID, true )
));
$c_thumbnail = !empty( $p_thumbnail -> post_excerpt ) ? esc_html( $p_thumbnail -> post_excerpt ) : null;
if( !empty( $c_thumbnail ) ) {
?>
';
/* PAGE PAGINATION */
wp_link_pages( array(
'before' => '',
'after' => '
',
'link_before' => ''
));
echo '';
echo '';
}
$not_found = false;
}
/* NOT FOUND RESULT */
if( $not_found ){
echo '
' . __( 'No results found' , 'cannyon' ) . '
';
echo '
' . __( 'We apologize but this page, post or resource does not exist or can not be found.' , 'cannyon' ) . '
';
}
?>
sidebar( 'right' );
}else{
get_template_part( 'templates/loop' );
}
?>