Server IP : 104.21.14.48 / Your IP : 18.216.194.71 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/elementor/core/page-assets/data-managers/ |
Upload File : |
<?php namespace Elementor\Core\Page_Assets\Data_Managers; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Elementor Assets Data. * * @since 3.3.0 */ class Widgets_Css extends Base { protected $content_type = 'css'; protected $assets_category = 'widgets'; protected function get_asset_content() { $asset_css_file_size = $this->get_file_data( 'size' ); $widget_css = ''; if ( $asset_css_file_size ) { // If the file size is larger than 8KB then calling the external CSS file, otherwise, printing inline CSS. if ( $asset_css_file_size > 8000 ) { $asset_url = $this->get_config_data( 'file_url' ); $widget_css = sprintf( '<link rel="stylesheet" href="%s">', $asset_url ); } else { $widget_css = $this->get_file_data( 'content' ); $widget_css = sprintf( '<style>%s</style>', $widget_css ); } } return $widget_css; } }