| @@ -17,8 +17,9 @@ | ||
| 17 | 17 | /** |
| 18 | 18 | * Elementor WordArt widget. |
| 19 | 19 | * |
| 20 | 20 | * Elementor widget that displays text along SVG path. |
| 21 | + * | |
| 21 | 22 | */ |
| 22 | 23 | class TextPath extends Widget_Base { |
| 23 | 24 | |
| 24 | 25 | const DEFAULT_PATH_FILL = '#E8178A'; |
| @@ -29,8 +30,9 @@ | ||
| 29 | 30 | * Retrieve Text Path widget name. |
| 30 | 31 | * |
| 31 | 32 | * @return string Widget name. |
| 32 | 33 | * @access public |
| 34 | + * | |
| 33 | 35 | */ |
| 34 | 36 | public function get_name() { |
| 35 | 37 | return 'text-path'; |
| 36 | 38 | } |
| @@ -45,8 +47,9 @@ | ||
| 45 | 47 | * Retrieve Text Path widget title. |
| 46 | 48 | * |
| 47 | 49 | * @return string Widget title. |
| 48 | 50 | * @access public |
| 51 | + * | |
| 49 | 52 | */ |
| 50 | 53 | public function get_title() { |
| 51 | 54 | return esc_html__( 'Text Path', 'elementor' ); |
| 52 | 55 | } |
| @@ -57,8 +60,9 @@ | ||
| 57 | 60 | * Retrieve Text Path widget icon. |
| 58 | 61 | * |
| 59 | 62 | * @return string Widget icon. |
| 60 | 63 | * @access public |
| 64 | + * | |
| 61 | 65 | */ |
| 62 | 66 | public function get_icon() { |
| 63 | 67 | return 'eicon-wordart'; |
| 64 | 68 | } |
| @@ -69,8 +73,9 @@ | ||
| 69 | 73 | * Retrieve the list of keywords the widget belongs to. |
| 70 | 74 | * |
| 71 | 75 | * @return array Widget keywords. |
| 72 | 76 | * @access public |
| 77 | + * | |
| 73 | 78 | */ |
| 74 | 79 | public function get_keywords() { |
| 75 | 80 | return [ 'text path', 'word path', 'text on path', 'wordart', 'word art' ]; |
| 76 | 81 | } |
| @@ -85,13 +90,9 @@ | ||
| 85 | 90 | * |
| 86 | 91 | * @return array Widget style dependencies. |
| 87 | 92 | */ |
| 88 | 93 | public function get_style_depends(): array { |
| 89 | - return [ 'widget-text-path' ]; | |
| 90 | - } | |
| 91 | - | |
| 92 | - public function has_widget_inner_wrapper(): bool { | |
| 93 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 94 | + return [ 'widget-shapes' ]; | |
| 94 | 95 | } |
| 95 | 96 | |
| 96 | 97 | /** |
| 97 | 98 | * Register content controls under content tab. |