File manager - Edit - /home/theblueo/tv/fb4e3b/theme-support.tar
Back
astra/astra.php 0000666 00000002476 15214174455 0007526 0 ustar 00 <?php /** * Action call to remove the astra two step action hooks. * * @since X.X.X * * @package CartFlows */ add_action( 'cartflows_checkout_before_shortcode', 'cartflows_theme_compatibility_astra' ); if ( ! function_exists( 'cartflows_theme_compatibility_astra' ) ) { /** * Function to remove the astra hooks. * * @since X.X.X * * @return void */ function cartflows_theme_compatibility_astra() { remove_action( 'woocommerce_checkout_before_customer_details', 'astra_two_step_checkout_form_wrapper_div', 1 ); remove_action( 'woocommerce_checkout_before_customer_details', 'astra_two_step_checkout_form_ul_wrapper', 2 ); remove_action( 'woocommerce_checkout_order_review', 'astra_woocommerce_div_wrapper_close', 30 ); remove_action( 'woocommerce_checkout_order_review', 'astra_woocommerce_ul_close', 30 ); remove_action( 'woocommerce_checkout_before_customer_details', 'astra_two_step_checkout_address_li_wrapper', 5 ); remove_action( 'woocommerce_checkout_after_customer_details', 'astra_woocommerce_li_close' ); remove_action( 'woocommerce_checkout_before_order_review', 'astra_two_step_checkout_order_review_wrap', 1 ); remove_action( 'woocommerce_checkout_after_order_review', 'astra_woocommerce_li_close', 40 ); add_filter( 'astra_theme_woocommerce_dynamic_css', '__return_empty_string' ); } } class-wc-twenty-twelve.php 0000666 00000002535 15214264566 0011651 0 ustar 00 <?php /** * Twenty Twelve support. * * @class WC_Twenty_Twelve * @since 3.3.0 * @package WooCommerce/Classes */ defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Twelve class. */ class WC_Twenty_Twelve { /** * Theme init. */ public static function init() { // Remove default wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end' ); // Add custom wrappers. add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ) ); // Declare theme support for features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 200, 'single_image_width' => 300, ) ); } /** * Open wrappers. */ public static function output_content_wrapper() { echo '<div id="primary" class="site-content"><div id="content" role="main" class="twentytwelve">'; } /** * Close wrappers. */ public static function output_content_wrapper_end() { echo '</div></div>'; } } WC_Twenty_Twelve::init(); class-wc-twenty-ten.php 0000666 00000002414 15214264566 0011125 0 ustar 00 <?php /** * Twenty Ten support. * * @since 3.3.0 * @package WooCommerce/Classes */ defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Ten class. */ class WC_Twenty_Ten { /** * Theme init. */ public static function init() { // Remove default wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end' ); // Add custom wrappers. add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ) ); // Declare theme support for features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 200, 'single_image_width' => 300, ) ); } /** * Open wrappers. */ public static function output_content_wrapper() { echo '<div id="container"><div id="content" role="main">'; } /** * Close wrappers. */ public static function output_content_wrapper_end() { echo '</div></div>'; } } WC_Twenty_Ten::init(); class-wc-twenty-nineteen.php 0000666 00000007111 15214264566 0012143 0 ustar 00 <?php /** * Twenty Nineteen support. * * @since 3.5.X * @package WooCommerce/Classes */ use Automattic\Jetpack\Constants; defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Nineteen class. */ class WC_Twenty_Nineteen { /** * Theme init. */ public static function init() { // Change WooCommerce wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ), 10 ); // This theme doesn't have a traditional sidebar. remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); // Enqueue theme compatibility styles. add_filter( 'woocommerce_enqueue_styles', array( __CLASS__, 'enqueue_styles' ) ); // Register theme features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 300, 'single_image_width' => 450, ) ); // Tweak Twenty Nineteen features. add_action( 'wp', array( __CLASS__, 'tweak_theme_features' ) ); // Color scheme CSS add_filter( 'twentynineteen_custom_colors_css', array( __CLASS__, 'custom_colors_css' ), 10, 3 ); } /** * Open the Twenty Nineteen wrapper. */ public static function output_content_wrapper() { echo '<section id="primary" class="content-area">'; echo '<main id="main" class="site-main">'; } /** * Close the Twenty Nineteen wrapper. */ public static function output_content_wrapper_end() { echo '</main>'; echo '</section>'; } /** * 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-nineteen.css', 'deps' => '', 'version' => Constants::get_constant( 'WC_VERSION' ), 'media' => 'all', 'has_rtl' => true, ); return apply_filters( 'woocommerce_twenty_nineteen_styles', $styles ); } /** * Tweak Twenty Nineteen features. */ public static function tweak_theme_features() { if ( is_woocommerce() ) { add_filter( 'twentynineteen_can_show_post_thumbnail', '__return_false' ); } } /** * Filters Twenty Nineteen custom colors CSS. * * @param string $css Base theme colors CSS. * @param int $primary_color The user's selected color hue. * @param string $saturation Filtered theme color saturation level. */ public static function custom_colors_css( $css, $primary_color, $saturation ) { if ( function_exists( 'register_block_type' ) && is_admin() ) { return $css; } $lightness = absint( apply_filters( 'twentynineteen_custom_colors_lightness', 33 ) ); $lightness = $lightness . '%'; $css .= ' .onsale, .woocommerce-info, .woocommerce-store-notice { background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); } .woocommerce-tabs ul li.active a { color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); box-shadow: 0 2px 0 hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); } '; return $css; } } WC_Twenty_Nineteen::init(); class-wc-twenty-sixteen.php 0000666 00000002516 15214264566 0012021 0 ustar 00 <?php /** * Twenty Sixteen support. * * @since 3.3.0 * @package WooCommerce/Classes */ defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Sixteen class. */ class WC_Twenty_Sixteen { /** * Theme init. */ public static function init() { // Remove default wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end' ); // Add custom wrappers. add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ) ); // Declare theme support for features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 250, 'single_image_width' => 400, ) ); } /** * Open wrappers. */ public static function output_content_wrapper() { echo '<div id="primary" class="content-area twentysixteen"><main id="main" class="site-main" role="main">'; } /** * Close wrappers. */ public static function output_content_wrapper_end() { echo '</main></div>'; } } WC_Twenty_Sixteen::init(); class-wc-twenty-seventeen.php 0000666 00000006425 15214264566 0012341 0 ustar 00 <?php /** * Twenty Seventeen support. * * @since 2.6.9 * @package WooCommerce/Classes */ use Automattic\Jetpack\Constants; defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Seventeen class. */ class WC_Twenty_Seventeen { /** * Theme init. */ public static function init() { remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ), 10 ); add_filter( 'woocommerce_enqueue_styles', array( __CLASS__, 'enqueue_styles' ) ); add_filter( 'twentyseventeen_custom_colors_css', array( __CLASS__, 'custom_colors_css' ), 10, 3 ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 250, 'single_image_width' => 350, ) ); } /** * 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-seventeen.css', 'deps' => '', 'version' => Constants::get_constant( 'WC_VERSION' ), 'media' => 'all', 'has_rtl' => true, ); return apply_filters( 'woocommerce_twenty_seventeen_styles', $styles ); } /** * Open the Twenty Seventeen wrapper. */ public static function output_content_wrapper() { echo '<div class="wrap">'; echo '<div id="primary" class="content-area twentyseventeen">'; echo '<main id="main" class="site-main" role="main">'; } /** * Close the Twenty Seventeen wrapper. */ public static function output_content_wrapper_end() { echo '</main>'; echo '</div>'; get_sidebar(); echo '</div>'; } /** * Custom colors. * * @param string $css Styles. * @param string $hue Color. * @param string $saturation Saturation. * @return string */ public static function custom_colors_css( $css, $hue, $saturation ) { $css .= ' .colors-custom .select2-container--default .select2-selection--single { border-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); } .colors-custom .select2-container--default .select2-selection__rendered { color: hsl( ' . $hue . ', ' . $saturation . ', 40% ); } .colors-custom .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: hsl( ' . $hue . ', ' . $saturation . ', 40% ) transparent transparent transparent; } .colors-custom .select2-container--focus .select2-selection { border-color: #000; } .colors-custom .select2-container--focus .select2-selection--single .select2-selection__arrow b { border-color: #000 transparent transparent transparent; } .colors-custom .select2-container--focus .select2-selection .select2-selection__rendered { color: #000; } '; return $css; } } WC_Twenty_Seventeen::init(); class-wc-twenty-eleven.php 0000666 00000002453 15214264566 0011620 0 ustar 00 <?php /** * Twenty Eleven support. * * @since 3.3.0 * @package WooCommerce/Classes */ defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Eleven class. */ class WC_Twenty_Eleven { /** * Theme init. */ public static function init() { // Remove default wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end' ); // Add custom wrappers. add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ) ); // Declare theme support for features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 150, 'single_image_width' => 300, ) ); } /** * Open wrappers. */ public static function output_content_wrapper() { echo '<div id="primary"><div id="content" role="main" class="twentyeleven">'; } /** * Close wrappers. */ public static function output_content_wrapper_end() { echo '</div></div>'; } } WC_Twenty_Eleven::init(); class-wc-twenty-twenty.php 0000666 00000005471 15214264566 0011677 0 ustar 00 <?php /** * Twenty Twenty support. * * @since 3.8.1 * @package WooCommerce/Classes */ use Automattic\Jetpack\Constants; defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Twenty class. */ class WC_Twenty_Twenty { /** * Theme init. */ public static function init() { // Change WooCommerce wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ), 10 ); // This theme doesn't have a traditional sidebar. remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); // Enqueue theme compatibility styles. add_filter( 'woocommerce_enqueue_styles', array( __CLASS__, 'enqueue_styles' ) ); // Register theme features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 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 '<section id="primary" class="content-area">'; echo '<main id="main" class="site-main">'; } /** * Close the Twenty Twenty wrapper. */ public static function output_content_wrapper_end() { echo '</main>'; echo '</section>'; } /** * 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(); class-wc-twenty-thirteen.php 0000666 00000002567 15214264566 0012172 0 ustar 00 <?php /** * Twenty Thirteen support. * * @class WC_Twenty_Thirteen * @since 3.3.0 * @package WooCommerce/Classes */ defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Thirteen class. */ class WC_Twenty_Thirteen { /** * Theme init. */ public static function init() { // Remove default wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end' ); // Add custom wrappers. add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ) ); // Declare theme support for features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 200, 'single_image_width' => 300, ) ); } /** * Open wrappers. */ public static function output_content_wrapper() { echo '<div id="primary" class="site-content"><div id="content" role="main" class="entry-content twentythirteen">'; } /** * Close wrappers. */ public static function output_content_wrapper_end() { echo '</div></div>'; } } WC_Twenty_Thirteen::init(); class-wc-twenty-fourteen.php 0000666 00000002652 15214264566 0012172 0 ustar 00 <?php /** * Twenty Fourteen support. * * @class WC_Twenty_Fourteen * @since 3.3.0 * @package WooCommerce/Classes */ defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Fourteen class. */ class WC_Twenty_Fourteen { /** * Theme init. */ public static function init() { // Remove default wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end' ); // Add custom wrappers. add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ) ); // Declare theme support for features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 150, 'single_image_width' => 300, ) ); } /** * Open wrappers. */ public static function output_content_wrapper() { echo '<div id="primary" class="content-area"><div id="content" role="main" class="site-content twentyfourteen"><div class="tfwc">'; } /** * Close wrappers. */ public static function output_content_wrapper_end() { echo '</div></div></div>'; get_sidebar( 'content' ); } } WC_Twenty_Fourteen::init(); class-wc-twenty-fifteen.php 0000666 00000002560 15214264566 0011761 0 ustar 00 <?php /** * Twenty Fifteen support. * * @class WC_Twenty_Fifteen * @since 3.3.0 * @package WooCommerce/Classes */ defined( 'ABSPATH' ) || exit; /** * WC_Twenty_Fifteen class. */ class WC_Twenty_Fifteen { /** * Theme init. */ public static function init() { // Remove default wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end' ); // Add custom wrappers. add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ) ); // Declare theme support for features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 200, 'single_image_width' => 350, ) ); } /** * Open wrappers. */ public static function output_content_wrapper() { echo '<div id="primary" role="main" class="content-area twentyfifteen"><div id="main" class="site-main t15wc">'; } /** * Close wrappers. */ public static function output_content_wrapper_end() { echo '</div></div>'; } } WC_Twenty_Fifteen::init();
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings