PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.2
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
← All changes | inc/modules/login-popup/admin/options.php +28 -7 1.9.10 → 2.3.2 View file →
@@ -10,9 +10,11 @@
10 10 exit; // Exit if accessed directly
11 11 }
12 12
13 13 // Settings
14 -Merchant_Admin_Options::create( array(
14 +
15 +return array(
16 + array(
15 17 'title' => esc_html__( 'Settings', 'merchant' ),
16 18 'module' => 'login-popup',
17 19 'fields' => array(
18 20
@@ -37,8 +39,12 @@
37 39 'type' => 'switcher',
38 40 'title' => esc_html__( 'Show welcome message', 'merchant' ),
39 41 'desc' => esc_html__( 'Show a welcome message when the user it\'s logged in.', 'merchant' ),
40 42 'default' => true,
43 + 'ai_meta' => array(
44 + 'toggle_for' => 'welcome_message_text',
45 + 'usage_hint' => 'Enable this toggle before setting welcome_message_text. Controls whether a personalised welcome message is shown to logged-in users.',
46 + ),
41 47 ),
42 48
43 49 array(
44 50 'id' => 'welcome_message_text',
@@ -43,12 +49,28 @@
43 49 array(
44 50 'id' => 'welcome_message_text',
45 51 'type' => 'text',
46 52 'title' => esc_html__( 'Welcome message text', 'merchant' ),
47 - 'desc' => esc_html__( 'You can use the following tags: {user_firstname}, {user_lastname}, {user_email}, {user_login}, {display_name}', 'merchant' ),
53 + 'desc' => esc_html__( 'You can use these codes in the content.', 'merchant' ),
54 + 'hidden_desc' => sprintf(
55 + /* Translators: %1$s: User first name, %2$s: User last name, %3$s: User email, %4$s: User login name, %5$s: User display name */
56 + __(
57 + '<strong>%1$s:</strong> displays the user’s first name<br><strong>%2$s:</strong> displays the user’s last name<br><strong>%3$s:</strong> displays the user’s email<br><strong>%4$s</strong> displays the user’s login name<br><strong>%5$s:</strong> displays the user’s display name.',
58 + 'merchant'
59 + ),
60 + '{user_firstname}',
61 + '{user_lastname}',
62 + '{user_email}',
63 + '{user_login}',
64 + '{display_name}'
65 + ),
48 66 /* Translators: 1. Display name */
49 67 'default' => sprintf( esc_html__( 'Welcome %s', 'merchant' ), '{display_name}' ),
50 68 'condition' => array( 'show_welcome_message', '==', '1' ),
69 + 'ai_meta' => array(
70 + 'toggled_by' => 'show_welcome_message',
71 + 'usage_hint' => 'Supports template vars: {display_name}, {user_firstname}, {user_lastname}, {user_email}, {user_login}. Only shown when show_welcome_message is enabled.',
72 + ),
51 73 ),
52 74
53 75 array(
54 76 'id' => 'login-text-color',
@@ -85,12 +107,10 @@
85 107 'default' => '#ffffff',
86 108 ),
87 109
88 110 ),
89 -) );
90 -
91 -// Popup Settings
92 -Merchant_Admin_Options::create( array(
111 +),
112 + array(
93 113 'title' => esc_html__( 'Popup Settings', 'merchant' ),
94 114 'module' => 'login-popup',
95 115 'fields' => array(
96 116
@@ -217,5 +237,6 @@
217 237 'default' => '#f5f5f5',
218 238 ),
219 239
220 240 ),
221 -) );
241 +),
242 +);