文件操作 - css.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/jimbrandstatter/public_html/wp-content/themes/Total/inc/scripts/css.php
编辑文件内容
<?php namespace TotalTheme\Scripts; \defined( 'ABSPATH' ) || exit; /** * CSS Scripts. * * @todo change wpex- prefix on all scripts to totaltheme- */ class CSS { /** * Theme handle. */ protected static $theme_handle; /** * Static-only class. */ private function __construct() {} /** * Get theme handle. */ public static function get_theme_handle() { if ( ! \is_null( self::$theme_handle ) ) { return self::$theme_handle; } $theme_handle = \WPEX_THEME_STYLE_HANDLE; if ( \is_child_theme() ) { /** * Filters the theme handle used for the parent theme when enqueing the style.css via * a child theme. * * @param string $theme_handle */ $parent_handle = (string) \apply_filters( 'wpex_parent_stylesheet_handle', 'parent-style' ); if ( \wp_style_is( $parent_handle ) ) { $theme_handle = $parent_handle; // only alter the handle if the script is actually loaded. } } self::$theme_handle = $theme_handle; return self::$theme_handle; } /** * Register Theme styles. */ public static function register() { $theme_handle = self::get_theme_handle(); if ( \totaltheme_call_static( 'Theme_Icons', 'is_enabled' ) ) { \totaltheme_call_static( 'Theme_Icons', 'register_font_style' ); } \wp_register_style( 'wpex-hover-animations', \wpex_asset_url( 'lib/hover-css/hover-css.min.css' ), [], '2.0.1' ); \wp_register_style( 'slider-pro', \wpex_asset_url( 'lib/slider-pro/jquery.sliderPro.min.css' ), [], '1.3' ); if ( \is_user_logged_in() && wp_validate_boolean( get_theme_mod( 'edit_post_link_enable', true ) ) ) { \wp_register_style( 'wpex-post-edit', \wpex_asset_url( 'css/frontend/post-edit.css' ), [ $theme_handle ], \WPEX_THEME_VERSION ); } \totaltheme_call_static( 'Lightbox', 'register_css' ); } /** * Enqueue Theme styles. */ public static function enqueue() { // WPBakery CSS. $has_wpb_mods = \WPEX_VC_ACTIVE && \totaltheme_call_static( 'Integrations', 'is_integration_enabled', 'wpbakery' ); // WPBakery Slim mode must load before theme CSS. if ( $has_wpb_mods && ( \totaltheme_call_static( 'Integration\WPBakery\Slim_Mode', 'is_enabled' ) && ! \totaltheme_call_static( 'Integration\WPBakery\Helpers', 'is_frontend_edit_mode' ) ) ) { $wpb_css_loaded = true; \wp_enqueue_style( 'wpex-wpbakery-slim', \wpex_asset_url( "css/frontend/wpbakery-slim.css" ), [], \WPEX_THEME_VERSION ); \wp_style_add_data( 'wpex-wpbakery-slim', 'rtl', 'replace' ); } // Main style.css File. \wp_enqueue_style( \WPEX_THEME_STYLE_HANDLE, // !! must be hardset here !! \get_stylesheet_uri(), [], \WPEX_THEME_VERSION ); $theme_handle = self::get_theme_handle(); // Override main style.css with style-rtl.css. \wp_style_add_data( $theme_handle, 'rtl', 'replace' ); // Mobile menu breakpoint CSS. $mm_breakpoint = \totaltheme_call_static( 'Mobile\Menu', 'breakpoint' ); $max_media = false; $min_media = false; if ( $mm_breakpoint < 9999 && \wpex_is_layout_responsive() ) { $max_media = "only screen and (max-width:{$mm_breakpoint}px)"; $mm_breakpoint_plus_one = $mm_breakpoint + 1; $min_media = "only screen and (min-width:{$mm_breakpoint_plus_one}px)"; } \wp_enqueue_style( 'wpex-mobile-menu-breakpoint-max', \wpex_asset_url( 'css/wpex-mobile-menu-breakpoint-max.css' ), $theme_handle ? [ $theme_handle ] : [], \WPEX_THEME_VERSION, $max_media ); \wp_style_add_data( 'wpex-mobile-menu-breakpoint-max', 'rtl', 'replace' ); if ( $min_media ) { \wp_enqueue_style( 'wpex-mobile-menu-breakpoint-min', \wpex_asset_url( 'css/wpex-mobile-menu-breakpoint-min.css' ), $theme_handle ? [ $theme_handle ] : [], \WPEX_THEME_VERSION, $min_media ); \wp_style_add_data( 'wpex-mobile-menu-breakpoint-min', 'rtl', 'replace' ); // Vertical header CSS. \totaltheme_call_static( 'Header\Vertical', 'maybe_enqueue_stylesheet' ); } // Overlay/Transparent header. \totaltheme_call_static( 'Header\Overlay', 'maybe_enqueue_stylesheet' ); // WPBakery. if ( $has_wpb_mods && ! isset( $wpb_css_loaded ) ) { $deps = [ \WPEX_THEME_STYLE_HANDLE ]; // @todo should this be $theme_handle ? if ( \wp_style_is( 'js_composer_front', 'registered' ) ) { $deps[] = 'js_composer_front'; } \wp_enqueue_style( 'wpex-wpbakery', \wpex_asset_url( "css/frontend/wpbakery.css" ), $deps, \WPEX_THEME_VERSION ); \wp_style_add_data( 'wpex-wpbakery', 'rtl', 'replace' ); } // Load theme icons. if ( \totaltheme_call_static( 'Theme_Icons', 'is_enabled' ) && 'font' === \totaltheme_call_static( 'Theme_Icons', 'get_format' ) ) { \totaltheme_call_static( 'Theme_Icons', 'enqueue_font_style' ); } // Total Shortcodes. if ( \get_theme_mod( 'extend_visual_composer', true ) ) { \wp_enqueue_style( 'vcex-shortcodes', \wpex_asset_url( 'css/vcex-shortcodes.css' ), [], \WPEX_THEME_VERSION ); \wp_style_add_data( 'vcex-shortcodes', 'rtl', 'replace' ); } // Customizer CSS. if ( \is_customize_preview() ) { \wp_enqueue_style( 'totaltheme-customize-shortcuts', \wpex_asset_url( 'css/customize/shortcuts.css' ), [], \WPEX_THEME_VERSION ); } if ( \is_page_template( 'templates/login.php' ) ) { \wp_enqueue_style( 'totaltheme-templates-login', \wpex_asset_url( 'css/frontend/templates/login.css' ), [ $theme_handle ], \WPEX_THEME_VERSION ); } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件