[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
modules
/
atomic-widgets
/
styles
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 cache-validity
SET
[ DEL ]
📄 atomic-styles-manager.php
7,443 B
SET
[ EDIT ]
|
[ DEL ]
📄 atomic-widget-base-styles.php
1,240 B
SET
[ EDIT ]
|
[ DEL ]
📄 atomic-widget-styles.php
3,820 B
SET
[ EDIT ]
|
[ DEL ]
📄 css-files-manager.php
2,463 B
SET
[ EDIT ]
|
[ DEL ]
📄 size-constants.php
5,164 B
SET
[ EDIT ]
|
[ DEL ]
📄 style-definition.php
759 B
SET
[ EDIT ]
|
[ DEL ]
📄 style-file.php
946 B
SET
[ EDIT ]
|
[ DEL ]
📄 style-fonts.php
1,191 B
SET
[ EDIT ]
|
[ DEL ]
📄 style-schema.php
15,869 B
SET
[ EDIT ]
|
[ DEL ]
📄 style-states.php
2,454 B
SET
[ EDIT ]
|
[ DEL ]
📄 style-variant.php
898 B
SET
[ EDIT ]
|
[ DEL ]
📄 styles-renderer.php
5,152 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: style-fonts.php
<?php namespace Elementor\Modules\AtomicWidgets\Styles; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } const FONTS_KEY_PREFIX = 'elementor_atomic_styles_fonts-'; class Style_Fonts { private string $style_key; public function __construct( string $style_key ) { $this->style_key = $style_key; } public static function make( string $style_key ) { return new static( $style_key ); } public function add( string $font ) { $style_fonts = $this->get_fonts(); if ( ! in_array( $font, $style_fonts, true ) ) { $style_fonts[] = $font; $this->update_fonts( $style_fonts ); } } public function get(): array { return $this->get_fonts(); } public function clear() { $this->update_fonts( [] ); } private function get_fonts(): array { $style_fonts_key = $this->get_key(); return get_option( $style_fonts_key, [] ); } private function update_fonts( array $fonts ) { $style_fonts_key = $this->get_key(); if ( empty( $fonts ) ) { delete_option( $style_fonts_key ); return; } update_option( $style_fonts_key, $fonts, false ); } private function get_key(): string { return FONTS_KEY_PREFIX . $this->style_key; } }