__( 'Main Menu', 'bestore' ), ) ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 300, 300, true ); add_image_size( 'bestore-single', 1170, 460, true ); add_image_size( 'bestore-cat-one', 600, 600, true ); add_image_size( 'bestore-cat-two', 600, 300, true ); // Add Custom Background Support. $args = array( 'default-color' => 'ffffff', ); add_theme_support( 'custom-background', $args ); add_theme_support( 'custom-logo', array( 'height' => 70, 'width' => 200, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); // Adds RSS feed links to for posts and comments. add_theme_support( 'automatic-feed-links' ); // Set up the WordPress core custom header feature. add_theme_support( 'custom-header', apply_filters( 'bestore_custom_header_args', array( 'default-image' => '', 'default-text-color' => '404040', 'width' => 2000, 'height' => 200, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'bestore_header_style', ) ) ); // WooCommerce support. add_theme_support( 'woocommerce' ); } endif; if ( !function_exists( 'bestore_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * */ function bestore_header_style() { $header_text_color = get_header_textcolor(); $header_image = get_header_image(); if ( $header_image ) : ?> esc_html__( 'Right Sidebar', 'bestore' ), 'id' => 'bestore-right-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } function bestore_main_content_width_columns() { $columns = '12'; if ( is_active_sidebar( 'bestore-right-sidebar' ) ) { $columns = $columns - 3; } echo absint( $columns ); } if ( !function_exists( 'bestore_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function bestore_posted_on() { // Get the author name; wrap it in a link. $byline = sprintf( /* translators: %s: post author */ __( 'by %s', 'bestore' ), '' . get_the_author() . '' ); // Finally, let's write all of this to the page. echo '' . bestore_time_link() . ' ' . $byline . ''; } endif; if ( !function_exists( 'bestore_time_link' ) ) : /** * Gets a nicely formatted string for the published date. */ function bestore_time_link() { $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, get_the_date( DATE_W3C ), get_the_date(), get_the_modified_date( DATE_W3C ), get_the_modified_date() ); // Wrap the time string in a link, and preface it with 'Posted on'. return sprintf( /* translators: %s: post date */ __( 'Posted on %s', 'bestore' ), '' . $time_string . '' ); } endif; if ( !function_exists( 'bestore_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function bestore_entry_footer() { /* translators: used between list items, there is a space after the comma */ $separate_meta = __( ', ', 'bestore' ); // Get Categories for posts. $categories_list = get_the_category_list( $separate_meta ); // Get Tags for posts. $tags_list = get_the_tag_list( '', $separate_meta ); // We don't want to output .entry-footer if it will be empty, so make sure its not. if ( $categories_list || $tags_list ) { echo '
'; if ( 'post' === get_post_type() ) { if ( $categories_list || $tags_list ) { // Make sure there's more than one category before displaying. if ( $categories_list ) { echo ''; } if ( $tags_list ) { echo ''; } } } if ( comments_open() ) : echo '
'; comments_popup_link( esc_html__( 'Leave a Comment', 'bestore' ), esc_html__( 'One Comment', 'bestore' ), esc_html__( '% Comments', 'bestore' ), 'comments-link', esc_html__( 'Comments are off for this post', 'bestore' ) ); echo '
'; endif; edit_post_link(); echo '
'; } } endif; if ( class_exists( 'WooCommerce' ) ) { if ( !function_exists( 'bestore_cart_link' ) ) { function bestore_cart_link() { ?> cart->get_cart_contents_count() ); ?>