PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.7
Elementor Website Builder – more than just a page builder v3.35.7
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / modules / atomic-widgets / props-resolver / multi-props.php

multi-props.php in Elementor Website Builder – more than just a page builder 3.35.7, at modules/atomic-widgets/props-resolver/multi-props.php

29 lines 535 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Modules\AtomicWidgets\PropsResolver;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit; // Exit if accessed directly.
7 }
8
9 class Multi_Props {
10 public static function is( $value ) {
11 return (
12 ! empty( $value['$$multi-props'] ) &&
13 true === $value['$$multi-props'] &&
14 array_key_exists( 'value', $value )
15 );
16 }
17
18 public static function generate( $value ) {
19 return [
20 '$$multi-props' => true,
21 'value' => $value,
22 ];
23 }
24
25 public static function get_value( $value ) {
26 return $value['value'] ?? null;
27 }
28 }
29