cart->get_cart_contents_count() ); ?>
get_wishlist_url(); ?>
$value ){ $page_id = absint( $value->ID ); $pages_list[ $page_id ] = $value->post_title; } return $pages_list; } /** * Add a blog advertisement banner * @since Bosa Online Shop 1.0.0 */ if( !function_exists( 'bosa_online_shop_blog_advertisement_banner' ) ){ function bosa_online_shop_blog_advertisement_banner(){ $blogAdvertID = get_theme_mod( 'blog_advertisement_banner', '' ); $render_blog_ad_image_size = get_theme_mod( 'render_blog_ad_image_size', 'full' ); $blog_advertisement_banner_obj = wp_get_attachment_image_src( $blogAdvertID, $render_blog_ad_image_size ); if ( is_array( $blog_advertisement_banner_obj ) ){ $blog_advertisement_banner = $blog_advertisement_banner_obj[0]; $advert_target = get_theme_mod( 'blog_advertisement_banner_target', true ); $alt = get_post_meta( $blogAdvertID, '_wp_attachment_image_alt', true); ?>
%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date( 'M j, Y' ) ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date( 'M j, Y' ) ) ); $year = get_the_date( 'Y' ); $month = get_the_date( 'm' ); $link = ( is_single() ) ? get_month_link( $year, $month ) : get_permalink(); $posted_on = '' . $time_string . ''; if ( !is_single() && !get_theme_mod( 'hide_date', false ) ){ if ( !get_theme_mod( 'disable_date_thumbnail', false ) ){ echo '' . $posted_on . ''; // WPCS: XSS OK. } } $byline = '' . esc_html( get_the_author() ) . ''; if ( !is_single() && !get_theme_mod( 'hide_author', false ) ){ if ( !get_theme_mod( 'disable_author_thumbnail', true ) ){ echo ' ' . $byline . ''; } } if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { if( !is_single() && !get_theme_mod( 'hide_comment', false ) ){ if ( !get_theme_mod( 'disable_comment_thumbnail', true ) ){ echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Comment on %s', 'bosa-online-shop' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } } } endif; if( !function_exists( 'bosa_get_intermediate_image_sizes' ) ){ /** * Array of image sizes. * * @since Bosa Online Shop 1.0.0 * @return array */ function bosa_get_intermediate_image_sizes(){ $data = array( 'full' => esc_html__( 'Full Size', 'bosa-online-shop' ), 'large' => esc_html__( 'Large Size', 'bosa-online-shop' ), 'medium' => esc_html__( 'Medium Size', 'bosa-online-shop' ), 'medium_large' => esc_html__( 'Medium Large Size', 'bosa-online-shop' ), 'thumbnail' => esc_html__( 'Thumbnail Size', 'bosa-online-shop' ), '1536x1536' => esc_html__( '1536x1536 Size', 'bosa-online-shop' ), '2048x2048' => esc_html__( '2048x2048 Size', 'bosa-online-shop' ), 'bosa-1920-550' => esc_html__( '1920x550 Size', 'bosa-online-shop' ), 'bosa-1370-550' => esc_html__( '1370x550 Size', 'bosa-online-shop' ), 'bosa-590-310' => esc_html__( '590x310 Size', 'bosa-online-shop' ), 'bosa-420-380' => esc_html__( '420x380 Size', 'bosa-online-shop' ), 'bosa-420-300' => esc_html__( '420x300 Size', 'bosa-online-shop' ), 'bosa-420-200' => esc_html__( '420x200 Size', 'bosa-online-shop' ), 'bosa-290-150' => esc_html__( '290x150 Size', 'bosa-online-shop' ), 'bosa-80-60' => esc_html__( '80x60 Size', 'bosa-online-shop' ), ); return $data; } } if( !function_exists( 'bosa_online_shop_archive_post_layout_filter' ) ){ /** * Filter of archive post layout choices. * * @since Bosa Online Shop 1.0.0 * @return array */ add_filter( 'bosa_archive_post_layout_filter', 'bosa_online_shop_archive_post_layout_filter' ); function bosa_online_shop_archive_post_layout_filter( $post_layout ){ $added_post_layout = array( 'grid-thumbnail' => get_stylesheet_directory_uri() . '/assets/images/thumbnail-layout.png', ); return array_merge( $post_layout, $added_post_layout ); } } if( !function_exists( 'bosa_online_shop_header_layout_filter' ) ){ /** * Filter of header layout choices. * * @since Bosa Online Shop 1.0.0 * @return array */ add_filter( 'bosa_header_layout_filter', 'bosa_online_shop_header_layout_filter' ); function bosa_online_shop_header_layout_filter( $header_layout ){ $added_header = array( 'header_four' => get_stylesheet_directory_uri() . '/assets/images/header-layout-4.png', ); return array_merge( $header_layout, $added_header ); } } if( !function_exists( 'bosa_online_shop_footer_layout_filter' ) ){ /** * Filter of footer layout choices. * * @since Bosa Online Shop 1.0.0 * @return array */ add_filter( 'bosa_footer_layout_filter', 'bosa_online_shop_footer_layout_filter' ); function bosa_online_shop_footer_layout_filter( $footer_layout ){ $added_footer = array( 'footer_four' => get_stylesheet_directory_uri() . '/assets/images/footer-layout-4.png', ); return array_merge( $footer_layout, $added_footer ); } } add_theme_support( "title-tag" ); add_theme_support( 'automatic-feed-links' );