' . __( 'Mizan Themes', 'bookstore-exhibition' ) . '' );
?>
ID, 'bookstore_exhibition_theme_settings', true );
if ( isset( $post_options['post_layout'] ) && ! empty( $post_options['post_layout'] ) ) {
$global_layout = $post_options['post_layout'];
}
}
// Include primary sidebar.
if ( 'no-sidebar' !== $global_layout ) {
get_sidebar();
}
// Include Secondary sidebar.
switch ( $global_layout ) {
case 'three-columns':
get_sidebar( 'secondary' );
break;
default:
break;
}
// Include Secondary sidebar 1.
switch ( $global_layout ) {
case 'four-columns':
get_sidebar( 'secondary' );
break;
default:
break;
}
}
endif;
add_action( 'bookstore_exhibition_action_sidebar', 'bookstore_exhibition_add_sidebar' );
//////////////////////////////////////// single page
if ( ! function_exists( 'bookstore_exhibition_add_image_in_single_display' ) ) :
/**
* Add image in single post.
*
* @since 1.0.0
*/
function bookstore_exhibition_add_image_in_single_display() {
global $post;
if ( has_post_thumbnail() ) {
$values = get_post_meta( $post->ID, 'bookstore_exhibition_theme_settings', true );
$bookstore_exhibition_theme_settings_single_image = isset( $values['single_image'] ) ? esc_attr( $values['single_image'] ) : '';
if ( ! $bookstore_exhibition_theme_settings_single_image ) {
$bookstore_exhibition_theme_settings_single_image = bookstore_exhibition_get_option( 'single_image' );
}
if ( 'disable' !== $bookstore_exhibition_theme_settings_single_image ) {
$args = array(
'class' => 'aligncenter',
);
the_post_thumbnail( esc_attr( $bookstore_exhibition_theme_settings_single_image ), $args );
}
}
}
endif;
add_action( 'bookstore_exhibition_single_image', 'bookstore_exhibition_add_image_in_single_display' );
if ( ! function_exists( 'bookstore_exhibition_footer_goto_top' ) ) :
/**
* Go to top.
*
* @since 1.0.0
*/
function bookstore_exhibition_footer_goto_top() {
$show_scroll_to_top = bookstore_exhibition_get_option( 'show_scroll_to_top' );
if ( true === $show_scroll_to_top ) :
echo '' . esc_html__( 'Scroll Up', 'bookstore-exhibition' ) . '';
endif;
}
endif;
add_action( 'bookstore_exhibition_action_after', 'bookstore_exhibition_footer_goto_top', 20 );