'; echo bloginfo( 'name' ); echo ''; echo '
'; echo esc_html(get_bloginfo( 'description', 'display' )); echo '
'; } else if ( function_exists('is_shop') && is_shop() ){ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { echo '

'; echo esc_html( woocommerce_page_title() ); echo '

'; } }else if( function_exists('is_product_category') && is_product_category() ){ echo '

'; echo esc_html( woocommerce_page_title() ); echo '

'; echo '
'; do_action( 'woocommerce_archive_description' ); echo '
'; }elseif ( is_singular() ) { echo '

'; echo single_post_title( '', false ); echo '

'; if( function_exists('is_product') && is_product() ){ add_action( 'bc_business_consulting_custom_static_header','woocommerce_template_single_price',22 ); add_action( 'bc_business_consulting_custom_static_header','woocommerce_template_single_rating',24 ); } } elseif ( is_archive() ) { the_archive_title( '

', '

' ); } elseif ( is_search() ) { echo '

'; printf( /* translators:straing */ esc_html__( 'Search Results for: %s', 'bc-shop' ), get_search_query() ); echo '

'; } elseif ( is_404() ) { echo '

'; esc_html_e( '404 Error', 'bc-shop' ); echo '

'; } } endif; if ( ! function_exists( 'bcshop_product_review_comment_form_args' ) ) : add_filter( 'woocommerce_product_review_comment_form_args', 'bcshop_product_review_comment_form_args' ); /** * Add title in custom header. * * @since 1.0.0 */ function bcshop_product_review_comment_form_args( $comment_form ) { $comment_form = array( 'title_reply' => have_comments() ? /* translators:straing */ __( 'Add a review', 'bc-shop' ) : sprintf( __( 'Be the first to review “%s”', 'bc-shop' ), get_the_title() ), 'title_reply_to' => /* translators:straing */ __( 'Leave a Reply to %s', 'bc-shop' ), 'title_reply_before' => '

', 'title_reply_after' => '

', 'comment_notes_after' => '', 'fields' => array( 'author' =>'
' . '*
', 'email' => '
' . '*
' ), 'label_submit' => __( 'Submit Review ', 'bc-shop' ), 'logged_in_as' => '', 'comment_field' => '', 'class_submit' => 'submit-review', 'submit_button' => '
' ); if ( $account_page_url = wc_get_page_permalink( 'myaccount' ) ) { $comment_form['must_log_in'] = '

' . sprintf( /* translators:straing */ __( 'You must be logged in to post a review.', 'bc-shop' ), esc_url( $account_page_url ) ) . '

'; } if ( get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { $comment_form['comment_field'] = '
'; } $comment_form['comment_field'] .='
'; return $comment_form; } endif; add_action( 'tgmpa_register', 'bcshop_register_required_plugins' ); /** * Register the required plugins for this theme. * This function is hooked into `tgmpa_register`, which is fired on the WP `init` action on priority 10. */ function bcshop_register_required_plugins() { /* * Array of plugin arrays. Required keys are name and slug. * If the source is NOT from the .org repo, then source is also required. */ $plugins = array( array( 'name' => 'Page Builder by SiteOrigin', 'slug' => 'siteorigin-panels', 'required' => false, ), array( 'name' => 'WP Subtitle', 'slug' => 'wp-subtitle', 'required' => false, ), array( 'name' => 'Smart Slider ', 'slug' => 'smart-slider-3', 'required' => false, ), array( 'name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => false, ), array( 'name' => 'WP Instagram Widget', 'slug' => 'wp-instagram-widget', 'required' => false, ), array( 'name' => 'WooCommerce Popup Cart + ajax', 'slug' => 'woocomm-popup-cart-ajax', 'required' => false, ), array( 'name' => 'Smart Variation Swatches for WooCommerce', 'slug' => 'variation-swatches-style', 'required' => false, ), array( 'name' => 'Advanced Product Search For WooCommerce', 'slug' => 'advanced-product-search-for-woo', 'required' => false, ), array( 'name' => 'Advanced Product Wishlist for Woocommerce', 'slug' => 'advanced-product-wishlist-for-woo', 'required' => false, ), array( 'name' => 'WordPress SEO Plugin – Rank Math', 'slug' => 'seo-by-rank-math', 'required' => false, ), array( 'name' => 'WP Fastest Cache', 'slug' => 'wp-fastest-cache', 'required' => false, ), ); /* * Array of configuration settings. Amend each line as needed. * * TGMPA will start providing localized text strings soon. If you already have translations of our standard * strings available, please help us make TGMPA even better by giving us access to these translations or by * sending in a pull-request with .po file(s) with the translations. * * Only uncomment the strings in the config array if you want to customize the strings. */ $config = array( 'id' => 'bc-business-consulting', // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => '', // Default absolute path to bundled plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. ); tgmpa( $plugins, $config ); }