PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.86
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.86
51.1.86 51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 All 40 releases
← All changes | includes/controls/Animations/Animations.php +20 -0 51.1.36 → 51.1.86 View file →
@@ -83,8 +83,28 @@
83 83
84 84 return self::$_animations;
85 85 }
86 86
87 + /**
88 + * Returns all valid animation slug values used by grid widgets.
89 + *
90 + * @return array<int, string> Animation slug list.
91 + */
92 + public static function get_animation_slugs(): array
93 + {
94 + $slugs = ['none'];
95 +
96 + // Do not array_merge the two maps first: they share group keys (Slide, Skew, …),
97 + // so the Pro map would replace the free slugs and drop values such as slide-top.
98 + foreach ([self::$free_animations, self::$pro_animations] as $animations) {
99 + foreach ($animations as $group) {
100 + $slugs = array_merge($slugs, array_keys($group));
101 + }
102 + }
103 +
104 + return array_values(array_unique($slugs));
105 + }
106 +
87 107 public function content_template(): void
88 108 {
89 109 $control_uid = $this->get_control_uid(); ?>
90 110 <div class="elementor-control-field">