'title', 'order' => 'ASC', 'hide_empty' => 0, 'parent' => 0 ); $product_categories = get_terms( 'product_cat', $args ); $count = count($product_categories); if ( $count > 0 ){ foreach ( $product_categories as $product_category ) { $product_cat_id = $product_category->term_id; $cat_link = get_category_link( $product_cat_id ); if ($product_category->category_parent == 0) { ?>
  • name ); ?>
  • ' . __( '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; } } 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() { echo ''; } endif; add_action( 'bookstore_exhibition_action_after', 'bookstore_exhibition_footer_goto_top', 20 );