PluginProbe
Elementor Website Builder – more than just a page builder / 3.19.2
Elementor Website Builder – more than just a page builder v3.19.2
4.3.1 4.3.0 4.3.0-beta3 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 All 454 releases
← All changes | modules/shapes/widgets/text-path.php +10 -26 4.0.83.19.2 View file →
@@ -5,10 +5,10 @@
5 5 use Elementor\Controls_Manager;
6 6 use Elementor\Core\Kits\Documents\Tabs\Global_Typography;
7 7 use Elementor\Group_Control_Typography;
8 8 use Elementor\Modules\Shapes\Module as Shapes_Module;
9 +use Elementor\Utils;
9 10 use Elementor\Group_Control_Text_Stroke;
10 -use Elementor\Plugin;
11 11 use Elementor\Widget_Base;
12 12
13 13 if ( ! defined( 'ABSPATH' ) ) {
14 14 exit; // Exit if accessed directly.
@@ -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,17 +30,14 @@
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 }
37 39
38 - public function get_group_name() {
39 - return 'shapes';
40 - }
41 -
42 40 /**
43 41 * Get widget title.
44 42 *
45 43 * Retrieve Text Path widget title.
@@ -45,8 +43,9 @@
45 43 * Retrieve Text Path widget title.
46 44 *
47 45 * @return string Widget title.
48 46 * @access public
47 + *
49 48 */
50 49 public function get_title() {
51 50 return esc_html__( 'Text Path', 'elementor' );
52 51 }
@@ -57,8 +56,9 @@
57 56 * Retrieve Text Path widget icon.
58 57 *
59 58 * @return string Widget icon.
60 59 * @access public
60 + *
61 61 */
62 62 public function get_icon() {
63 63 return 'eicon-wordart';
64 64 }
@@ -69,8 +69,9 @@
69 69 * Retrieve the list of keywords the widget belongs to.
70 70 *
71 71 * @return array Widget keywords.
72 72 * @access public
73 + *
73 74 */
74 75 public function get_keywords() {
75 76 return [ 'text path', 'word path', 'text on path', 'wordart', 'word art' ];
76 77 }
@@ -75,26 +76,8 @@
75 76 return [ 'text path', 'word path', 'text on path', 'wordart', 'word art' ];
76 77 }
77 78
78 79 /**
79 - * Get style dependencies.
80 - *
81 - * Retrieve the list of style dependencies the widget requires.
82 - *
83 - * @since 3.24.0
84 - * @access public
85 - *
86 - * @return array Widget style dependencies.
87 - */
88 - 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 - }
95 -
96 - /**
97 80 * Register content controls under content tab.
98 81 */
99 82 protected function register_content_tab() {
100 83 $this->start_controls_section(
@@ -144,11 +127,12 @@
144 127 'dynamic' => [
145 128 'active' => true,
146 129 ],
147 130 'description' => sprintf(
148 - '%1$s <a target="_blank" href="https://go.elementor.com/text-path-create-paths/">%2$s</a>',
149 - esc_html__( 'Want to create custom text paths with SVG?', 'elementor' ),
150 - esc_html__( 'Learn more', 'elementor' )
131 + /* translators: 1: Link open tag, 2: Link close tag. */
132 + esc_html__( 'Want to create custom text paths with SVG? %1$sLearn More%2$s', 'elementor' ),
133 + '<a target="_blank" href="https://go.elementor.com/text-path-create-paths/">',
134 + '</a>'
151 135 ),
152 136 ]
153 137 );
154 138