← All changes
|
modules/link-in-bio/base/widget-link-in-bio-base.php
+9
-21
4.3.0
→
3.24.4
View file →
| @@ -21,21 +21,12 @@ | ||
| 21 | 21 | return 'link-in-bio'; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | public function get_style_depends(): array { |
| 25 | - $widget_name = $this->get_name(); | |
| 26 | - | |
| 27 | - $style_depends = Plugin::$instance->experiments->is_feature_active( 'e_font_icon_svg' ) | |
| 28 | - ? parent::get_style_depends() | |
| 29 | - : [ 'elementor-icons-fa-solid', 'elementor-icons-fa-brands', 'elementor-icons-fa-regular' ]; | |
| 30 | - | |
| 31 | - $style_depends[] = 'widget-link-in-bio-base'; | |
| 32 | - | |
| 33 | - if ( 'link-in-bio' !== $widget_name ) { | |
| 34 | - $style_depends[] = "widget-{$widget_name}"; | |
| 25 | + if ( Plugin::$instance->experiments->is_feature_active( 'e_font_icon_svg' ) ) { | |
| 26 | + return parent::get_style_depends(); | |
| 35 | 27 | } |
| 36 | - | |
| 37 | - return $style_depends; | |
| 28 | + return [ 'elementor-icons-fa-solid', 'elementor-icons-fa-brands', 'elementor-icons-fa-regular' ]; | |
| 38 | 29 | } |
| 39 | 30 | |
| 40 | 31 | public static function get_configuration() { |
| 41 | 32 | return [ |
| @@ -223,11 +214,10 @@ | ||
| 223 | 214 | [ |
| 224 | 215 | 'type' => Controls_Manager::ALERT, |
| 225 | 216 | 'alert_type' => 'info', |
| 226 | 217 | 'content' => sprintf( |
| 227 | - /* translators: %s: Maximum number of images allowed. */ | |
| 228 | - esc_html__( 'Add up to %s Images', 'elementor' ), | |
| 229 | - '<b>' . $config['content']['image_links_section']['images_max'] . '</b>' | |
| 218 | + __( 'Add up to <b>%d</b> Images', 'elementor' ), | |
| 219 | + $config['content']['image_links_section']['images_max'] | |
| 230 | 220 | ), |
| 231 | 221 | ] |
| 232 | 222 | ); |
| 233 | 223 | } |
| @@ -311,11 +301,10 @@ | ||
| 311 | 301 | [ |
| 312 | 302 | 'type' => Controls_Manager::ALERT, |
| 313 | 303 | 'alert_type' => 'info', |
| 314 | 304 | 'content' => sprintf( |
| 315 | - /* translators: %s: Maximum number of CTA links allowed. */ | |
| 316 | - esc_html__( 'Add up to %s CTA links', 'elementor' ), | |
| 317 | - '<b>' . $config['content']['cta_section']['cta_max'] . '</b>' | |
| 305 | + __( 'Add up to <b>%d</b> CTA links', 'elementor' ), | |
| 306 | + $config['content']['cta_section']['cta_max'] | |
| 318 | 307 | ), |
| 319 | 308 | ] |
| 320 | 309 | ); |
| 321 | 310 | } |
| @@ -567,11 +556,10 @@ | ||
| 567 | 556 | [ |
| 568 | 557 | 'type' => Controls_Manager::ALERT, |
| 569 | 558 | 'alert_type' => 'info', |
| 570 | 559 | 'content' => sprintf( |
| 571 | - /* translators: %s: Maximum number of icons allowed. */ | |
| 572 | - esc_html__( 'Add up to %s icons', 'elementor' ), | |
| 573 | - '<b>' . $config['content']['icon_section']['platform']['limit'] . '</b>' | |
| 560 | + __( 'Add up to <b>%d</b> icons', 'elementor' ), | |
| 561 | + $config['content']['icon_section']['platform']['limit'] | |
| 574 | 562 | ), |
| 575 | 563 | ] |
| 576 | 564 | ); |
| 577 | 565 | } |