File manager - Edit - /home/vblioqus/public_html/wp-content/plugins/elementor/modules/atomic-widgets/elements/base/render-context.php
Back
<?php namespace Elementor\Modules\AtomicWidgets\Elements\Base; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Render_Context { private static $context_stack = []; public static function push( string $key, array $context ): void { if ( ! self::get( $key ) ) { self::$context_stack[ $key ] = []; } self::$context_stack[ $key ][] = $context; } public static function pop( string $key ): void { if ( isset( self::$context_stack[ $key ] ) && ! empty( self::$context_stack[ $key ] ) ) { array_pop( self::$context_stack[ $key ] ); } } public static function get( string $key ): array { if ( ! isset( self::$context_stack[ $key ] ) || empty( self::$context_stack[ $key ] ) ) { return []; } $last_key = array_key_last( self::$context_stack[ $key ] ); return self::$context_stack[ $key ][ $last_key ]; } public static function clear(): void { self::$context_stack = []; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.2 |
proxy
|
phpinfo
|
Settings