get('Version') // Optional versioning for cache busting ); // loading child style wp_register_style( 'bc-store-style', get_stylesheet_directory_uri() . '/style.css' ); wp_enqueue_style( 'bc-store-style'); $custom_css = ':root {--primary-color:'.esc_attr( get_theme_mod('__primary_color','#555') ).'!important; --secondary-color: '.esc_attr( get_theme_mod('__secondary_color','#1e73be') ).'!important; --nav-h-color:'.esc_attr( get_theme_mod('__secondary_color','#1e73be') ).'!important;--nav-h-bg:'.esc_attr( get_theme_mod('__secondary_color','#1e73be') ).'!important;}'; wp_add_inline_style( 'bc-store-style', $custom_css ); } endif; add_action( 'wp_enqueue_scripts', 'bc_store_script' ); /** * WooCommerce */ if ( class_exists( 'woocommerce' ) ) { require get_stylesheet_directory() . '/inc/woocommerce.php'; } function bc_store_reorder_comment_fields($fields) { // Rearrange the fields by defining the order explicitly $new_order = array(); // Place 'author' field first $new_order['author'] = $fields['author']; // Place 'email' field second $new_order['email'] = $fields['email']; // Place 'url' field third (optional if you want to include it) if (isset($fields['url'])) { $new_order['url'] = $fields['url']; } // Place 'comment' field last $new_order['comment'] = $fields['comment']; return $new_order; } add_filter('comment_form_fields', 'bc_store_reorder_comment_fields'); if( !function_exists('bc_store_disable_from_parent') ): add_action('init','bc_store_disable_from_parent',10); function bc_store_disable_from_parent(){ global $bc_consulting_Header_Layout; remove_action('bc_consulting_site_header', array( $bc_consulting_Header_Layout, 'site_header_layout' ), 30 ); global $bc_consulting_post_related; remove_action('bc_consulting_site_content_type', array( $bc_consulting_post_related, 'site_loop_heading' ), 10 ); global $bc_consulting_footer_layout; remove_action('bc_consulting_site_footer', array( $bc_consulting_footer_layout, 'site_footer_info' ), 80 ); remove_action( 'after_setup_theme', 'bc_consulting_custom_header_setup' ); } endif; if( !function_exists('bc_store_site_header_layout') ): add_action('bc_consulting_site_header', 'bc_store_site_header_layout', 30 ); function bc_store_site_header_layout(){ ?>
', '' ); endif; } add_action('bc_consulting_site_content_type', 'bc_store_loop_heading', 10 ); endif; function bc_store_footer_info(){ $text =''; $html = '
'; $html .= '
'; if( get_theme_mod('copyright_text') != '' ) { $text .= esc_html( get_theme_mod('copyright_text') ); }else { /* translators: 1: Current Year, 2: Blog Name */ $text .= sprintf( esc_html__( 'Copyright © %1$s %2$s. All Right Reserved.', 'bc-store' ), date_i18n( _x( 'Y', 'copyright date format', 'bc-store' ) ), esc_html( get_bloginfo( 'name' ) ) ); } $html .= apply_filters( 'bc_footer_copywrite_filter', $text ); /* translators: 1: developer website, 2: WordPress url */ $html .= ''.sprintf( esc_html__( 'Theme : %1$s By aThemeArt', 'bc-store' ), ''.esc_html_x( 'BC Store', 'credit - theme', 'bc-store' ).'').''; $html .= '
'; $html .= '
'; $html .= wp_nav_menu( array( 'theme_location' => 'footer', 'depth' => 1, 'echo' => false, 'menu_class' => 'd-flex justify-content-end footer-nav', 'container' => 'ul', 'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback', ) ); $html .= '
'; $html .= '
'; echo wp_kses( $html,bc_consulting_alowed_tags() ); } add_action('bc_consulting_site_footer', 'bc_store_footer_info', 30 );