| @@ -83,8 +83,24 @@ | ||
| 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 | + foreach (array_merge(self::$free_animations, self::$pro_animations) as $group) { | |
| 97 | + $slugs = array_merge($slugs, array_keys($group)); | |
| 98 | + } | |
| 99 | + | |
| 100 | + return array_values(array_unique($slugs)); | |
| 101 | + } | |
| 102 | + | |
| 87 | 103 | public function content_template(): void |
| 88 | 104 | { |
| 89 | 105 | $control_uid = $this->get_control_uid(); ?> |
| 90 | 106 | <div class="elementor-control-field"> |