← All changes
|
includes/widgets/Steps_Process_Timeline/Steps_Process_Timeline.php
+9
-31
51.1.44
→
51.1.83
View file →
| @@ -34,9 +34,9 @@ | ||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | public function get_icon(): string |
| 37 | 37 | { |
| 38 | - return 'eicon-steps'; | |
| 38 | + return 'king-addons-icon king-addons-icon-steps-process-timeline'; | |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | public function get_style_depends(): array |
| 42 | 42 | { |
| @@ -62,9 +62,14 @@ | ||
| 62 | 62 | { |
| 63 | 63 | return ['steps', 'process', 'timeline', 'how it works', 'workflow', 'milestones', 'king-addons']; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - protected function register_controls(): void | |
| 66 | + public function get_custom_help_url() | |
| 67 | + { | |
| 68 | + return 'mailto:bug@kingaddons.com?subject=Bug Report - King Addons&body=Please describe the issue'; | |
| 69 | + } | |
| 70 | + | |
| 71 | + protected function register_controls(): void | |
| 67 | 72 | { |
| 68 | 73 | $this->register_content_controls(); |
| 69 | 74 | $this->register_steps_controls(); |
| 70 | 75 | $this->register_interaction_controls(); |
| @@ -132,23 +137,8 @@ | ||
| 132 | 137 | |
| 133 | 138 | Core::renderUpgradeProNotice($this, Controls_Manager::RAW_HTML, 'steps-process-timeline', 'kng_steps_layout', ['horizontal']); |
| 134 | 139 | |
| 135 | 140 | $this->add_control( |
| 136 | - 'kng_steps_source', | |
| 137 | - [ | |
| 138 | - 'label' => esc_html__('Steps Source', 'king-addons'), | |
| 139 | - 'type' => Controls_Manager::SELECT, | |
| 140 | - 'default' => 'manual', | |
| 141 | - 'options' => [ | |
| 142 | - 'manual' => esc_html__('Manual Steps', 'king-addons'), | |
| 143 | - 'templates' => esc_html__('Elementor Templates (Pro)', 'king-addons'), | |
| 144 | - ], | |
| 145 | - ] | |
| 146 | - ); | |
| 147 | - | |
| 148 | - Core::renderUpgradeProNotice($this, Controls_Manager::RAW_HTML, 'steps-process-timeline', 'kng_steps_source', ['templates']); | |
| 149 | - | |
| 150 | - $this->add_control( | |
| 151 | 141 | 'kng_steps_numbering_mode', |
| 152 | 142 | [ |
| 153 | 143 | 'label' => esc_html__('Step Numbering', 'king-addons'), |
| 154 | 144 | 'type' => Controls_Manager::SELECT, |
| @@ -380,20 +370,8 @@ | ||
| 380 | 370 | 'classes' => $this->get_pro_control_class(), |
| 381 | 371 | ] |
| 382 | 372 | ); |
| 383 | 373 | |
| 384 | - $repeater->add_control( | |
| 385 | - 'step_template_id', | |
| 386 | - [ | |
| 387 | - 'label' => esc_html__('Template ID (Pro)', 'king-addons'), | |
| 388 | - 'type' => Controls_Manager::NUMBER, | |
| 389 | - 'condition' => [ | |
| 390 | - 'kng_steps_source' => 'templates', | |
| 391 | - ], | |
| 392 | - 'classes' => $this->get_pro_control_class(), | |
| 393 | - ] | |
| 394 | - ); | |
| 395 | - | |
| 396 | 374 | $this->add_control( |
| 397 | 375 | 'kng_steps_list', |
| 398 | 376 | [ |
| 399 | 377 | 'label' => esc_html__('Steps', 'king-addons'), |
| @@ -399,9 +377,9 @@ | ||
| 399 | 377 | 'label' => esc_html__('Steps', 'king-addons'), |
| 400 | 378 | 'type' => Controls_Manager::REPEATER, |
| 401 | 379 | 'fields' => $repeater->get_controls(), |
| 402 | 380 | 'default' => $this->get_default_steps(), |
| 403 | - 'title_field' => '{{{ step_title }}}', | |
| 381 | + 'title_field' => '{{ step_title }}', | |
| 404 | 382 | ] |
| 405 | 383 | ); |
| 406 | 384 | |
| 407 | 385 | $this->end_controls_section(); |
| @@ -1281,9 +1259,9 @@ | ||
| 1281 | 1259 | if (!$is_pro && 'number-icon' === $marker_type) { |
| 1282 | 1260 | $marker_type = 'number'; |
| 1283 | 1261 | } |
| 1284 | 1262 | |
| 1285 | - $use_templates = $is_pro && ($settings['kng_steps_source'] ?? 'manual') === 'templates'; | |
| 1263 | + $use_templates = false; | |
| 1286 | 1264 | |
| 1287 | 1265 | $wrapper_classes = [ |
| 1288 | 1266 | 'king-addons-steps-timeline', |
| 1289 | 1267 | 'king-addons-steps-layout-' . $layout, |