You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/php/promotions/elementor-pro.php
+37-20Lines changed: 37 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -27,27 +27,20 @@ public function promotion_in_custom_code_screen() {
27
27
if ( ! $this->is_custom_code_screen() ) {
28
28
return;
29
29
}
30
-
31
30
?>
32
-
<div class="notice notice-info is-dismissibleX">
31
+
<div class="notice notice-info is-dismissible">
33
32
<p>
34
-
<strong><?phpesc_html_e( '💡 Looking for a better way to manage custom code?', 'code-snippets' ); ?></strong>
33
+
<strong><?phpesc_html_e( 'Looking for a better way to manage your custom code?', 'code-snippets' ); ?></strong>
35
34
</p>
36
35
<p>
37
-
<?php
38
-
printf(
39
-
/* translators: %s: Code Snippets plugin name */
40
-
esc_html__( '%s provides a powerful and user-friendly alternative to Elementor Custom Code, with cloud sync, advanced features, and an intuitive interface.', 'code-snippets' ),
41
-
'<strong>Code Snippets Pro</strong>'
42
-
);
43
-
?>
36
+
<?phpesc_html_e( 'Code Snippets Pro provides a powerful and user-friendly alternative to Elementor Custom Code, with cloud sync, advanced features, and an intuitive interface.', 'code-snippets' ); ?>
@@ -101,13 +94,37 @@ public function add_promotion_to_custom_css_section( $element ) {
101
94
'type' => \Elementor\Controls_Manager::NOTICE,
102
95
'notice_type' => 'info',
103
96
'dismissible' => true,
104
-
'heading' => esc_html__( 'Manage your custom code', 'code-snippets' ),
105
-
'content' => sprintf(
106
-
/* translators: %s: Code Snippets plugin name */
107
-
esc_html__( '%s provides a powerful and user-friendly alternative to Elementor Custom Code, with cloud sync, advanced features, and an intuitive interface.', 'code-snippets' ),
108
-
'<strong>Code Snippets Pro</strong>'
109
-
),
97
+
'heading' => esc_html__( 'Manage your custom styles', 'code-snippets' ),
98
+
'content' => $this->get_promotion_content(),
110
99
]
111
100
);
112
101
}
102
+
103
+
/**
104
+
* Get the promotion content with appropriate link.
105
+
*
106
+
* @return string
107
+
*/
108
+
privatefunctionget_promotion_content(): string {
109
+
$message = esc_html__( 'Code Snippets Pro provides a powerful and user-friendly alternative to Elementor Custom Code, with cloud sync, conditional logic, and advanced features.', 'code-snippets' );
0 commit comments