',
)
);
}
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 '';
}
}
endif;
if ( class_exists( 'WooCommerce' ) ) {
if ( !function_exists( 'bestore_cart_link' ) ) {
function bestore_cart_link() {
?>
cart->get_cart_contents_count() ); ?>