';
for( $i=1; $i<=3; $i++){
$bakery_shop_slider_post_id = get_theme_mod( 'bakery_shop_slider_post_'.$i, $bakery_shop_default_post );
if( $bakery_shop_slider_post_id ){
$qry = new WP_Query ( array( 'p' => absint( $bakery_shop_slider_post_id ) ) );
if( $qry->have_posts() ){
while( $qry->have_posts() ){
$qry->the_post();
?>
';
echo '';
}
}
endif;
if( ! function_exists( 'bakery_shop_content_start' ) ) :
/**
* Content Start
*
* @since 1.0.1
*/
function bakery_shop_content_start(){
$ed_slider = get_theme_mod( 'bakery_shop_ed_slider','1' );
$class = is_404() ? 'error-holder' : 'row' ;
if( ! is_page_template( 'template-home.php' ) && !( $ed_slider && is_front_page() ) ){
?>
' : '
';
( is_active_sidebar( 'right-sidebar' ) ) ? the_post_thumbnail( 'bakery-shop-with-sidebar' ) : the_post_thumbnail( 'bakery-shop-without-sidebar' ) ;
echo ( !is_single() ) ? '' : '
' ;
}
}
endif;
if( ! function_exists( 'bakery_shop_post_entry_header' ) ) :
/**
* Post Entry Header
*
* @since 1.0.1
*/
function bakery_shop_post_entry_header(){
?>
';
}
endif;
if( ! function_exists( 'bakery_shop_archive_entry_header' ) ) :
/**
* Archive Entry Header
*
* @since 1.0.1
*/
function bakery_shop_archive_entry_header(){
?>
';// .row /#content /.container
}
}
endif;
if( ! function_exists( 'bakery_shop_footer_start' ) ) :
/**
* Footer Start
*
* @since 1.0.1
*/
function bakery_shop_footer_start(){
echo '
';
}
endif;
if( ! function_exists( 'bakery_shop_footer_end' ) ) :
/**
* Footer End
*
* @since 1.0.1
*/
function bakery_shop_footer_end(){
echo ''; // #colophon
}
endif;
if( ! function_exists( 'bakery_shop_page_end' ) ) :
/**
* Page End
*
* @since 1.0.1
*/
function bakery_shop_page_end(){
?>