PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.11.0
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.11.0
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 1.11.0, at inc/modules/login-popup/admin/options.php

234 lines 6.0 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 Merchant_Admin_Options::create( array(
15 'title' => esc_html__( 'Settings', 'merchant' ),
16 'module' => 'login-popup',
17 'fields' => array(
18
19 array(
20 'id' => 'shortcode',
21 'type' => 'text_readonly',
22 'title' => esc_html__( 'Shortcode', 'merchant' ),
23 'desc' => esc_html__( 'Copy this shortcode into pages to show login popup.', 'merchant' ),
24 'default' => '[merchant_login_popup]',
25 ),
26
27 array(
28 'id' => 'login_link_text',
29 'type' => 'text',
30 'title' => esc_html__( 'Login link text', 'merchant' ),
31 'desc' => esc_html__( 'Only visible to logout users.', 'merchant' ),
32 'default' => esc_html__( 'Login', 'merchant' ),
33 ),
34
35 array(
36 'id' => 'show_welcome_message',
37 'type' => 'switcher',
38 'title' => esc_html__( 'Show welcome message', 'merchant' ),
39 'desc' => esc_html__( 'Show a welcome message when the user it\'s logged in.', 'merchant' ),
40 'default' => true,
41 ),
42
43 array(
44 'id' => 'welcome_message_text',
45 'type' => 'text',
46 'title' => esc_html__( 'Welcome message text', 'merchant' ),
47 'desc' => esc_html__( 'You can use these codes in the content.', 'merchant' ),
48 'hidden_desc' => sprintf(
49 /* 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 */
50 __(
51 '<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.',
52 'merchant'
53 ),
54 '{user_firstname}',
55 '{user_lastname}',
56 '{user_email}',
57 '{user_login}',
58 '{display_name}'
59 ),
60 /* Translators: 1. Display name */
61 'default' => sprintf( esc_html__( 'Welcome %s', 'merchant' ), '{display_name}' ),
62 'condition' => array( 'show_welcome_message', '==', '1' ),
63 ),
64
65 array(
66 'id' => 'login-text-color',
67 'type' => 'color',
68 'title' => esc_html__( 'Login text color', 'merchant' ),
69 'default' => '#212121',
70 ),
71
72 array(
73 'id' => 'login-text-color-hover',
74 'type' => 'color',
75 'title' => esc_html__( 'Login text color hover', 'merchant' ),
76 'default' => '#515151',
77 ),
78
79 array(
80 'id' => 'dropdown-link-color',
81 'type' => 'color',
82 'title' => esc_html__( 'Dropdown link color', 'merchant' ),
83 'default' => '#212121',
84 ),
85
86 array(
87 'id' => 'dropdown-link-color-hover',
88 'type' => 'color',
89 'title' => esc_html__( 'Dropdown link color hover', 'merchant' ),
90 'default' => '#515151',
91 ),
92
93 array(
94 'id' => 'dropdown-background-color',
95 'type' => 'color',
96 'title' => esc_html__( 'Dropdown background color', 'merchant' ),
97 'default' => '#ffffff',
98 ),
99
100 ),
101 ) );
102
103 // Popup Settings
104 Merchant_Admin_Options::create( array(
105 'title' => esc_html__( 'Popup Settings', 'merchant' ),
106 'module' => 'login-popup',
107 'fields' => array(
108
109 array(
110 'id' => 'popup-width',
111 'type' => 'range',
112 'title' => esc_html__( 'Popup width', 'merchant' ),
113 'min' => 0,
114 'max' => 1000,
115 'step' => 1,
116 'default' => 400,
117 'unit' => 'px',
118 ),
119
120 array(
121 'id' => 'popup-title-color',
122 'type' => 'color',
123 'title' => esc_html__( 'Title color', 'merchant' ),
124 'default' => '#212121',
125 ),
126
127 array(
128 'id' => 'popup-text-color',
129 'type' => 'color',
130 'title' => esc_html__( 'Text color', 'merchant' ),
131 'default' => '#212121',
132 ),
133
134 array(
135 'id' => 'popup-icon-color',
136 'type' => 'color',
137 'title' => esc_html__( 'Icon color', 'merchant' ),
138 'default' => '#212121',
139 ),
140
141 array(
142 'id' => 'popup-link-color',
143 'type' => 'color',
144 'title' => esc_html__( 'Link color', 'merchant' ),
145 'default' => '#212121',
146 ),
147
148 array(
149 'id' => 'popup-button-color',
150 'type' => 'color',
151 'title' => esc_html__( 'Button color', 'merchant' ),
152 'default' => '#ffffff',
153 ),
154
155 array(
156 'id' => 'popup-button-color-hover',
157 'type' => 'color',
158 'title' => esc_html__( 'Button color hover', 'merchant' ),
159 'default' => '#ffffff',
160 ),
161
162 array(
163 'id' => 'popup-button-border-color',
164 'type' => 'color',
165 'title' => esc_html__( 'Button border color', 'merchant' ),
166 'default' => '#212121',
167 ),
168
169 array(
170 'id' => 'popup-button-border-color-hover',
171 'type' => 'color',
172 'title' => esc_html__( 'Button border color hover', 'merchant' ),
173 'default' => '#757575',
174 ),
175
176 array(
177 'id' => 'popup-button-background-color',
178 'type' => 'color',
179 'title' => esc_html__( 'Button background color', 'merchant' ),
180 'default' => '#212121',
181 ),
182
183 array(
184 'id' => 'popup-button-background-color-hover',
185 'type' => 'color',
186 'title' => esc_html__( 'Button background color hover', 'merchant' ),
187 'default' => '#757575',
188 ),
189
190 array(
191 'id' => 'popup-link-color-hover',
192 'type' => 'color',
193 'title' => esc_html__( 'Link color hover', 'merchant' ),
194 'default' => '#515151',
195 ),
196
197 array(
198 'id' => 'popup-background-color',
199 'type' => 'color',
200 'title' => esc_html__( 'Background color', 'merchant' ),
201 'default' => '#ffffff',
202 ),
203
204 array(
205 'id' => 'popup-footer-text-color',
206 'type' => 'color',
207 'title' => esc_html__( 'Footer text color', 'merchant' ),
208 'default' => '#212121',
209 ),
210
211 array(
212 'id' => 'popup-footer-link-color',
213 'type' => 'color',
214 'title' => esc_html__( 'Footer link color', 'merchant' ),
215 'default' => '#212121',
216 ),
217
218 array(
219 'id' => 'popup-footer-link-color-hover',
220 'type' => 'color',
221 'title' => esc_html__( 'Footer link color hover', 'merchant' ),
222 'default' => '#515151',
223 ),
224
225 array(
226 'id' => 'popup-footer-background-color',
227 'type' => 'color',
228 'title' => esc_html__( 'Footer background color', 'merchant' ),
229 'default' => '#f5f5f5',
230 ),
231
232 ),
233 ) );
234