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
merchant / inc / modules / login-popup / admin / options.php

options.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 2.3.2, at inc/modules/login-popup/admin/options.php

243 lines 6.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Login Popup Options.
5 *
6 * @package Merchant
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13 // Settings
14
15 return array(
16 array(
17 'title' => esc_html__( 'Settings', 'merchant' ),
18 'module' => 'login-popup',
19 'fields' => array(
20
21 array(
22 'id' => 'shortcode',
23 'type' => 'text_readonly',
24 'title' => esc_html__( 'Shortcode', 'merchant' ),
25 'desc' => esc_html__( 'Copy this shortcode into pages to show login popup.', 'merchant' ),
26 'default' => '[merchant_login_popup]',
27 ),
28
29 array(
30 'id' => 'login_link_text',
31 'type' => 'text',
32 'title' => esc_html__( 'Login link text', 'merchant' ),
33 'desc' => esc_html__( 'Only visible to logout users.', 'merchant' ),
34 'default' => esc_html__( 'Login', 'merchant' ),
35 ),
36
37 array(
38 'id' => 'show_welcome_message',
39 'type' => 'switcher',
40 'title' => esc_html__( 'Show welcome message', 'merchant' ),
41 'desc' => esc_html__( 'Show a welcome message when the user it\'s logged in.', 'merchant' ),
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 ),
47 ),
48
49 array(
50 'id' => 'welcome_message_text',
51 'type' => 'text',
52 'title' => esc_html__( 'Welcome message text', '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 ),
66 /* Translators: 1. Display name */
67 'default' => sprintf( esc_html__( 'Welcome %s', 'merchant' ), '{display_name}' ),
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 ),
73 ),
74
75 array(
76 'id' => 'login-text-color',
77 'type' => 'color',
78 'title' => esc_html__( 'Login text color', 'merchant' ),
79 'default' => '#212121',
80 ),
81
82 array(
83 'id' => 'login-text-color-hover',
84 'type' => 'color',
85 'title' => esc_html__( 'Login text color hover', 'merchant' ),
86 'default' => '#515151',
87 ),
88
89 array(
90 'id' => 'dropdown-link-color',
91 'type' => 'color',
92 'title' => esc_html__( 'Dropdown link color', 'merchant' ),
93 'default' => '#212121',
94 ),
95
96 array(
97 'id' => 'dropdown-link-color-hover',
98 'type' => 'color',
99 'title' => esc_html__( 'Dropdown link color hover', 'merchant' ),
100 'default' => '#515151',
101 ),
102
103 array(
104 'id' => 'dropdown-background-color',
105 'type' => 'color',
106 'title' => esc_html__( 'Dropdown background color', 'merchant' ),
107 'default' => '#ffffff',
108 ),
109
110 ),
111 ),
112 array(
113 'title' => esc_html__( 'Popup Settings', 'merchant' ),
114 'module' => 'login-popup',
115 'fields' => array(
116
117 array(
118 'id' => 'popup-width',
119 'type' => 'range',
120 'title' => esc_html__( 'Popup width', 'merchant' ),
121 'min' => 0,
122 'max' => 1000,
123 'step' => 1,
124 'default' => 400,
125 'unit' => 'px',
126 ),
127
128 array(
129 'id' => 'popup-title-color',
130 'type' => 'color',
131 'title' => esc_html__( 'Title color', 'merchant' ),
132 'default' => '#212121',
133 ),
134
135 array(
136 'id' => 'popup-text-color',
137 'type' => 'color',
138 'title' => esc_html__( 'Text color', 'merchant' ),
139 'default' => '#212121',
140 ),
141
142 array(
143 'id' => 'popup-icon-color',
144 'type' => 'color',
145 'title' => esc_html__( 'Icon color', 'merchant' ),
146 'default' => '#212121',
147 ),
148
149 array(
150 'id' => 'popup-link-color',
151 'type' => 'color',
152 'title' => esc_html__( 'Link color', 'merchant' ),
153 'default' => '#212121',
154 ),
155
156 array(
157 'id' => 'popup-button-color',
158 'type' => 'color',
159 'title' => esc_html__( 'Button color', 'merchant' ),
160 'default' => '#ffffff',
161 ),
162
163 array(
164 'id' => 'popup-button-color-hover',
165 'type' => 'color',
166 'title' => esc_html__( 'Button color hover', 'merchant' ),
167 'default' => '#ffffff',
168 ),
169
170 array(
171 'id' => 'popup-button-border-color',
172 'type' => 'color',
173 'title' => esc_html__( 'Button border color', 'merchant' ),
174 'default' => '#212121',
175 ),
176
177 array(
178 'id' => 'popup-button-border-color-hover',
179 'type' => 'color',
180 'title' => esc_html__( 'Button border color hover', 'merchant' ),
181 'default' => '#757575',
182 ),
183
184 array(
185 'id' => 'popup-button-background-color',
186 'type' => 'color',
187 'title' => esc_html__( 'Button background color', 'merchant' ),
188 'default' => '#212121',
189 ),
190
191 array(
192 'id' => 'popup-button-background-color-hover',
193 'type' => 'color',
194 'title' => esc_html__( 'Button background color hover', 'merchant' ),
195 'default' => '#757575',
196 ),
197
198 array(
199 'id' => 'popup-link-color-hover',
200 'type' => 'color',
201 'title' => esc_html__( 'Link color hover', 'merchant' ),
202 'default' => '#515151',
203 ),
204
205 array(
206 'id' => 'popup-background-color',
207 'type' => 'color',
208 'title' => esc_html__( 'Background color', 'merchant' ),
209 'default' => '#ffffff',
210 ),
211
212 array(
213 'id' => 'popup-footer-text-color',
214 'type' => 'color',
215 'title' => esc_html__( 'Footer text color', 'merchant' ),
216 'default' => '#212121',
217 ),
218
219 array(
220 'id' => 'popup-footer-link-color',
221 'type' => 'color',
222 'title' => esc_html__( 'Footer link color', 'merchant' ),
223 'default' => '#212121',
224 ),
225
226 array(
227 'id' => 'popup-footer-link-color-hover',
228 'type' => 'color',
229 'title' => esc_html__( 'Footer link color hover', 'merchant' ),
230 'default' => '#515151',
231 ),
232
233 array(
234 'id' => 'popup-footer-background-color',
235 'type' => 'color',
236 'title' => esc_html__( 'Footer background color', 'merchant' ),
237 'default' => '#f5f5f5',
238 ),
239
240 ),
241 ),
242 );
243