PluginProbe
Elementor Website Builder – more than just a page builder / 3.29.1
Elementor Website Builder – more than just a page builder v3.29.1
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 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/widgets/progress.php +42 -105 4.2.23.29.1 View file →
@@ -206,11 +206,8 @@
206 206 'label_on' => esc_html__( 'Show', 'elementor' ),
207 207 'label_off' => esc_html__( 'Hide', 'elementor' ),
208 208 'return_value' => 'show',
209 209 'default' => 'show',
210 - 'condition' => [
211 - 'percent!' => '',
212 - ],
213 210 ]
214 211 );
215 212
216 213 $this->add_control(
@@ -238,70 +235,8 @@
238 235 ]
239 236 );
240 237
241 238 $this->add_control(
242 - 'title_heading',
243 - [
244 - 'label' => esc_html__( 'Title', 'elementor' ),
245 - 'type' => Controls_Manager::HEADING,
246 - 'condition' => [
247 - 'title!' => '',
248 - ],
249 - ]
250 - );
251 -
252 - $this->add_control(
253 - 'title_color',
254 - [
255 - 'label' => esc_html__( 'Text Color', 'elementor' ),
256 - 'type' => Controls_Manager::COLOR,
257 - 'selectors' => [
258 - '{{WRAPPER}} .elementor-title' => 'color: {{VALUE}};',
259 - ],
260 - 'global' => [
261 - 'default' => Global_Colors::COLOR_PRIMARY,
262 - ],
263 - 'condition' => [
264 - 'title!' => '',
265 - ],
266 - ]
267 - );
268 -
269 - $this->add_group_control(
270 - Group_Control_Typography::get_type(),
271 - [
272 - 'name' => 'typography',
273 - 'selector' => '{{WRAPPER}} .elementor-title',
274 - 'global' => [
275 - 'default' => Global_Typography::TYPOGRAPHY_TEXT,
276 - ],
277 - 'condition' => [
278 - 'title!' => '',
279 - ],
280 - ]
281 - );
282 -
283 - $this->add_group_control(
284 - Group_Control_Text_Shadow::get_type(),
285 - [
286 - 'name' => 'title_shadow',
287 - 'selector' => '{{WRAPPER}} .elementor-title',
288 - 'condition' => [
289 - 'title!' => '',
290 - ],
291 - ]
292 - );
293 -
294 - $this->add_control(
295 - 'percentage_heading',
296 - [
297 - 'label' => esc_html__( 'Percentage', 'elementor' ),
298 - 'type' => Controls_Manager::HEADING,
299 - 'separator' => 'before',
300 - ]
301 - );
302 -
303 - $this->add_control(
304 239 'bar_color',
305 240 [
306 241 'label' => esc_html__( 'Color', 'elementor' ),
307 242 'type' => Controls_Manager::COLOR,
@@ -354,11 +289,8 @@
354 289 [
355 290 'label' => esc_html__( 'Inner Text', 'elementor' ),
356 291 'type' => Controls_Manager::HEADING,
357 292 'separator' => 'before',
358 - 'condition' => [
359 - 'inner_text!' => '',
360 - ],
361 293 ]
362 294 );
363 295
364 296 $this->add_control(
@@ -368,11 +300,8 @@
368 300 'type' => Controls_Manager::COLOR,
369 301 'selectors' => [
370 302 '{{WRAPPER}} .elementor-progress-bar' => 'color: {{VALUE}};',
371 303 ],
372 - 'condition' => [
373 - 'inner_text!' => '',
374 - ],
375 304 ]
376 305 );
377 306
378 307 $this->add_group_control(
@@ -382,11 +311,8 @@
382 311 'selector' => '{{WRAPPER}} .elementor-progress-bar',
383 312 'exclude' => [
384 313 'line_height',
385 314 ],
386 - 'condition' => [
387 - 'inner_text!' => '',
388 - ],
389 315 ]
390 316 );
391 317
392 318 $this->add_group_control(
@@ -393,14 +319,54 @@
393 319 Group_Control_Text_Shadow::get_type(),
394 320 [
395 321 'name' => 'bar_inner_shadow',
396 322 'selector' => '{{WRAPPER}} .elementor-progress-bar',
397 - 'condition' => [
398 - 'inner_text!' => '',
323 + ]
324 + );
325 +
326 + $this->end_controls_section();
327 +
328 + $this->start_controls_section(
329 + 'section_title',
330 + [
331 + 'label' => esc_html__( 'Title Style', 'elementor' ),
332 + 'tab' => Controls_Manager::TAB_STYLE,
333 + ]
334 + );
335 +
336 + $this->add_control(
337 + 'title_color',
338 + [
339 + 'label' => esc_html__( 'Text Color', 'elementor' ),
340 + 'type' => Controls_Manager::COLOR,
341 + 'selectors' => [
342 + '{{WRAPPER}} .elementor-title' => 'color: {{VALUE}};',
399 343 ],
344 + 'global' => [
345 + 'default' => Global_Colors::COLOR_PRIMARY,
346 + ],
400 347 ]
401 348 );
402 349
350 + $this->add_group_control(
351 + Group_Control_Typography::get_type(),
352 + [
353 + 'name' => 'typography',
354 + 'selector' => '{{WRAPPER}} .elementor-title',
355 + 'global' => [
356 + 'default' => Global_Typography::TYPOGRAPHY_TEXT,
357 + ],
358 + ]
359 + );
360 +
361 + $this->add_group_control(
362 + Group_Control_Text_Shadow::get_type(),
363 + [
364 + 'name' => 'title_shadow',
365 + 'selector' => '{{WRAPPER}} .elementor-title',
366 + ]
367 + );
368 +
403 369 $this->end_controls_section();
404 370 }
405 371
406 372 /**
@@ -573,35 +539,6 @@
573 539 <# } #>
574 540 </div>
575 541 </div>
576 542 <?php
577 - }
578 -
579 - public function render_markdown(): string {
580 - $settings = $this->get_settings_for_display();
581 - $title = Utils::html_to_plain_text( $settings['title'] ?? '' );
582 - $inner_text = Utils::html_to_plain_text( $settings['inner_text'] ?? '' );
583 - $percent = $settings['percent']['size'] ?? ( $settings['percent'] ?? '' );
584 -
585 - $parts = [];
586 -
587 - if ( ! empty( $title ) ) {
588 - $parts[] = $title;
589 - }
590 -
591 - if ( ! empty( $inner_text ) ) {
592 - $parts[] = $inner_text;
593 - }
594 -
595 - if ( empty( $parts ) && empty( $percent ) ) {
596 - return '';
597 - }
598 -
599 - $label = implode( ' - ', $parts );
600 -
601 - if ( ! empty( $percent ) ) {
602 - return ! empty( $label ) ? $label . ': ' . $percent . '%' : $percent . '%';
603 - }
604 -
605 - return $label;
606 543 }
607 544 }