PATH:
home
/
letacommog
/
lesfinessaveurs
/
wp-content
/
themes
/
Avada
/
includes
<?php /** * Handler for dynamic-css. * * @author ThemeFusion * @copyright (c) Copyright by ThemeFusion * @link http://theme-fusion.com * @package Avada * @subpackage Core * @since 3.8.5 */ // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } /** * Handle generating the dynamic CSS. */ class Avada_Dynamic_CSS { /** * The Fusion_Dynamic_CSS object. * * @access protected * @since 5.1.0 * @var object */ protected $fusion_dynamic_css; /** * Constructor. * * @access public */ public function __construct() { $this->fusion_dynamic_css = Fusion_Dynamic_CSS::get_instance(); add_action( 'wp', array( $this, 'init' ) ); } /** * Add extra actions. * * @access public * @since 1.0.0 * @return void */ public function init() { add_filter( 'fusion_dynamic_css_stylesheet_dependencies', array( $this, 'stylesheet_dependencies' ) ); add_filter( 'fusion_dynamic_css_cached', array( $this, 'fusion_dynamic_css_cached' ), 999 ); // Backwards-compatibility. add_filter( 'fusion_dynamic_css', array( $this, 'avada_dynamic_css_filter' ) ); } /** * Appends the custom-css option to the dynamic-css. * * @access public * @since 5.1 * @param string $css The final CSS. * @return string */ public function fusion_dynamic_css_cached( $css ) { // Append the user-entered dynamic CSS. $option = get_option( Avada::get_option_name(), array() ); if ( isset( $option['custom_css'] ) && ! empty( $option['custom_css'] ) ) { $css .= wp_strip_all_tags( $option['custom_css'] ); } return $css; } /** * Adds a dependency for the main stylesheet. * * @access public * @since 5.1 * @param array $dependencies An array of dependencies for the stylesheet. * @return array */ public function stylesheet_dependencies( $dependencies ) { $dependencies[] = 'avada-stylesheet'; return $dependencies; } /** * Backwards-compatibility: * 'avada_dynamic_css' filter was replaced by 'fusion_dynamic_css'. * * @access public * @since 5.1 * @param string $css The final CSS. * @return string */ public function avada_dynamic_css_filter( $css ) { return apply_filters( 'avada_dynamic_css', $css ); } } /* Omit closing PHP tag to avoid "Headers already sent" issues. */
[+]
..
[-] class-avada-scripts.php
[edit]
[-] class-avada-layout-bbpress.php
[edit]
[-] class-avada-social-icon.php
[edit]
[-] class-avada-multiple-featured-images.php
[edit]
[-] class-fusion-builder-filters.php
[edit]
[-] class-avada-woocommerce.php
[edit]
[-] custom_functions.php
[edit]
[-] class-avada-gravity-forms-tags-merger.php
[edit]
[-] class-avada-avadaredux-migration.php
[edit]
[-] class-avada-portfolio.php
[edit]
[-] class-avada-images.php
[edit]
[-] class-fusion-builder-migrate.php
[edit]
[-] class-avada-upgrade.php
[edit]
[-] dynamic_css_helpers.php
[edit]
[-] class-avada-head.php
[edit]
[-] class-fusion-image-resizer.php
[edit]
[-] class-avada-blog.php
[edit]
[+]
widget
[-] class-avada-megamenu-framework.php
[edit]
[+]
recaptcha
[-] fusion-functions.php
[edit]
[-] class-avada-fonts.php
[edit]
[-] class-avada-remote-installer.php
[edit]
[-] class-avada-layout.php
[edit]
[-] avada-tgm.php
[edit]
[-] class-avada-page-options.php
[edit]
[+]
plugins
[-] wc-functions.php
[edit]
[-] class-fusion-builder-redux-options.php
[edit]
[-] class-avada-helper.php
[edit]
[-] class-avada-eventscalendar.php
[edit]
[-] class-fusion-builder-demos-importer.php
[edit]
[-] class-avada-template.php
[edit]
[-] deprecated.php
[edit]
[-] class-fusion-gfonts-downloader.php
[edit]
[-] class-avada-megamenu.php
[edit]
[-] dynamic_css.php
[edit]
[-] avada-functions.php
[edit]
[-] class-avada-googlemap.php
[edit]
[+]
upgrade
[-] class-avada-migrate.php
[edit]
[+]
importer
[-] fusion-shared-options.php
[edit]
[-] class-avada-social-sharing.php
[edit]
[-] class-avada-settings.php
[edit]
[-] class-avada-init.php
[edit]
[+]
lib
[-] class-avada-social-icons.php
[edit]
[+]
ls-skins
[+]
typography
[-] class-avada-contact.php
[edit]
[-] class-avada-breadcrumbs.php
[edit]
[-] class-avada-tgm-plugin-activation.php
[edit]
[-] class-avada-system-status.php
[edit]
[-] class-avada-options-conditionals.php
[edit]
[-] class-avada-nav-walker-megamenu.php
[edit]
[-] class-avada-admin.php
[edit]
[-] class-avada-widget-style.php
[edit]
[-] class-avada.php
[edit]
[+]
options
[-] class-avada-nav-walker.php
[edit]
[-] class-avada-dynamic-css.php
[edit]
[+]
admin-screens
[-] class-avada-avadaredux.php
[edit]
[-] class-avada-autoload.php
[edit]
[-] class-avada-sermon-manager.php
[edit]
[-] class-avada-options.php
[edit]
[-] class-avada-maintenance.php
[edit]
[-] class-avada-taxonomy-meta.php
[edit]
[-] class-avada-sidebars.php
[edit]
[+]
metaboxes
[-] class-avada-google-fonts.php
[edit]
[-] class-avada-admin-notices.php
[edit]
[-] class-avada-privacy-embeds.php
[edit]