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

222 lines 5.7 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 the following tags: {user_firstname}, {user_lastname}, {user_email}, {user_login}, {display_name}', 'merchant' ),
48 /* Translators: 1. Display name */
49 'default' => sprintf( esc_html__( 'Welcome %s', 'merchant' ), '{display_name}' ),
50 'condition' => array( 'show_welcome_message', '==', true ),
51 ),
52
53 array(
54 'id' => 'login-text-color',
55 'type' => 'color',
56 'title' => esc_html__( 'Login text color', 'merchant' ),
57 'default' => '#212121',
58 ),
59
60 array(
61 'id' => 'login-text-color-hover',
62 'type' => 'color',
63 'title' => esc_html__( 'Login text color hover', 'merchant' ),
64 'default' => '#515151',
65 ),
66
67 array(
68 'id' => 'dropdown-link-color',
69 'type' => 'color',
70 'title' => esc_html__( 'Dropdown link color', 'merchant' ),
71 'default' => '#212121',
72 ),
73
74 array(
75 'id' => 'dropdown-link-color-hover',
76 'type' => 'color',
77 'title' => esc_html__( 'Dropdown link color hover', 'merchant' ),
78 'default' => '#515151',
79 ),
80
81 array(
82 'id' => 'dropdown-background-color',
83 'type' => 'color',
84 'title' => esc_html__( 'Dropdown background color', 'merchant' ),
85 'default' => '#ffffff',
86 ),
87
88 ),
89 ) );
90
91 // Popup Settings
92 Merchant_Admin_Options::create( array(
93 'title' => esc_html__( 'Popup Settings', 'merchant' ),
94 'module' => 'login-popup',
95 'fields' => array(
96
97 array(
98 'id' => 'popup-width',
99 'type' => 'range',
100 'title' => esc_html__( 'Popup width', 'merchant' ),
101 'min' => 0,
102 'max' => 1000,
103 'step' => 1,
104 'default' => 400,
105 'unit' => 'px',
106 ),
107
108 array(
109 'id' => 'popup-title-color',
110 'type' => 'color',
111 'title' => esc_html__( 'Title color', 'merchant' ),
112 'default' => '#212121',
113 ),
114
115 array(
116 'id' => 'popup-text-color',
117 'type' => 'color',
118 'title' => esc_html__( 'Text color', 'merchant' ),
119 'default' => '#212121',
120 ),
121
122 array(
123 'id' => 'popup-icon-color',
124 'type' => 'color',
125 'title' => esc_html__( 'Icon color', 'merchant' ),
126 'default' => '#212121',
127 ),
128
129 array(
130 'id' => 'popup-link-color',
131 'type' => 'color',
132 'title' => esc_html__( 'Link color', 'merchant' ),
133 'default' => '#212121',
134 ),
135
136 array(
137 'id' => 'popup-button-color',
138 'type' => 'color',
139 'title' => esc_html__( 'Button color', 'merchant' ),
140 'default' => '#ffffff',
141 ),
142
143 array(
144 'id' => 'popup-button-color-hover',
145 'type' => 'color',
146 'title' => esc_html__( 'Button color hover', 'merchant' ),
147 'default' => '#ffffff',
148 ),
149
150 array(
151 'id' => 'popup-button-border-color',
152 'type' => 'color',
153 'title' => esc_html__( 'Button border color', 'merchant' ),
154 'default' => '#212121',
155 ),
156
157 array(
158 'id' => 'popup-button-border-color-hover',
159 'type' => 'color',
160 'title' => esc_html__( 'Button border color hover', 'merchant' ),
161 'default' => '#757575',
162 ),
163
164 array(
165 'id' => 'popup-button-background-color',
166 'type' => 'color',
167 'title' => esc_html__( 'Button background color', 'merchant' ),
168 'default' => '#212121',
169 ),
170
171 array(
172 'id' => 'popup-button-background-color-hover',
173 'type' => 'color',
174 'title' => esc_html__( 'Button background color hover', 'merchant' ),
175 'default' => '#757575',
176 ),
177
178 array(
179 'id' => 'popup-link-color-hover',
180 'type' => 'color',
181 'title' => esc_html__( 'Link color hover', 'merchant' ),
182 'default' => '#515151',
183 ),
184
185 array(
186 'id' => 'popup-background-color',
187 'type' => 'color',
188 'title' => esc_html__( 'Background color', 'merchant' ),
189 'default' => '#ffffff',
190 ),
191
192 array(
193 'id' => 'popup-footer-text-color',
194 'type' => 'color',
195 'title' => esc_html__( 'Footer text color', 'merchant' ),
196 'default' => '#212121',
197 ),
198
199 array(
200 'id' => 'popup-footer-link-color',
201 'type' => 'color',
202 'title' => esc_html__( 'Footer link color', 'merchant' ),
203 'default' => '#212121',
204 ),
205
206 array(
207 'id' => 'popup-footer-link-color-hover',
208 'type' => 'color',
209 'title' => esc_html__( 'Footer link color hover', 'merchant' ),
210 'default' => '#515151',
211 ),
212
213 array(
214 'id' => 'popup-footer-background-color',
215 'type' => 'color',
216 'title' => esc_html__( 'Footer background color', 'merchant' ),
217 'default' => '#f5f5f5',
218 ),
219
220 ),
221 ) );
222