芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-twenty.php
450, 'single_image_width' => 600, ) ); // Background color change. add_action( 'after_setup_theme', array( __CLASS__, 'set_white_background' ), 10 ); } /** * Open the Twenty Twenty wrapper. */ public static function output_content_wrapper() { echo '
'; echo '
'; } /** * Close the Twenty Twenty wrapper. */ public static function output_content_wrapper_end() { echo '
'; echo '
'; } /** * Set background color to white if it's default, otherwise don't touch it. */ public static function set_white_background() { $background = sanitize_hex_color_no_hash( get_theme_mod( 'background_color' ) ); $background_default = 'f5efe0'; // Don't change user's choice of background color. if ( ! empty( $background ) && $background !== $background_default ) { return; } // In case default background is found, change it to white. set_theme_mod( 'background_color', 'fff' ); } /** * Enqueue CSS for this theme. * * @param array $styles Array of registered styles. * @return array */ public static function enqueue_styles( $styles ) { unset( $styles['woocommerce-general'] ); $styles['woocommerce-general'] = array( 'src' => str_replace( array( 'http:', 'https:' ), '', WC()->plugin_url() ) . '/assets/css/twenty-twenty.css', 'deps' => '', 'version' => Constants::get_constant( 'WC_VERSION' ), 'media' => 'all', 'has_rtl' => true, ); return apply_filters( 'woocommerce_twenty_twenty_styles', $styles ); } } WC_Twenty_Twenty::init();