PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.8.1
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.8.1
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 / cookie-banner / admin / options.php

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

143 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Merchant - Cookie Banner
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit; // Exit if accessed directly
8 }
9
10 /**
11 * Settings
12 */
13 Merchant_Admin_Options::create( array(
14 'title' => esc_html__( 'Settings', 'merchant' ),
15 'module' => 'cookie-banner',
16 'fields' => array(
17
18 array(
19 'id' => 'theme',
20 'type' => 'select',
21 'title' => esc_html__( 'Theme', 'merchant' ),
22 'options' => array(
23 'merchant-cookie-banner-floating' => esc_html__( 'Floating', 'merchant' ),
24 'merchant-cookie-banner-fixed-bottom' => esc_html__( 'Fixed bottom', 'merchant' ),
25 ),
26 'default' => 'merchant-cookie-banner-floating',
27 ),
28
29 array(
30 'id' => 'bar_text',
31 'type' => 'text',
32 'title' => esc_html__( 'Bar text', 'merchant' ),
33 'default' => esc_html__( '🍪 We\'re using cookies to give you the best experience on our site.', 'merchant' ),
34 ),
35
36 array(
37 'id' => 'privacy_policy_text',
38 'type' => 'text',
39 'title' => esc_html__( 'Privacy policy text', 'merchant' ),
40 'desc' => esc_html__( 'The error will be shown if the user tries to go to checkout without accepting terms & conditions.', 'merchant' ),
41 'default' => esc_html__( 'Learn More', 'merchant' ),
42 ),
43
44 array(
45 'id' => 'privacy_policy_url',
46 'type' => 'text',
47 'title' => esc_html__( 'Privacy policy URL', 'merchant' ),
48 'default' => get_privacy_policy_url(),
49 ),
50
51 array(
52 'id' => 'button_text',
53 'type' => 'text',
54 'title' => esc_html__( 'Button text', 'merchant' ),
55 'default' => esc_html__( 'I understand', 'merchant' ),
56 ),
57
58 array(
59 'id' => 'cookie_duration',
60 'type' => 'number',
61 'title' => esc_html__( 'Cookie duration (days)', 'merchant' ),
62 'default' => '365',
63 ),
64
65 array(
66 'id' => 'close_button',
67 'type' => 'switcher',
68 'title' => esc_html__( 'Show close \'x\' button', 'merchant' ),
69 'default' => 1,
70 ),
71
72 ),
73 ) );
74
75 /**
76 * Style
77 */
78 Merchant_Admin_Options::create( array(
79 'title' => esc_html__( 'Style', 'merchant' ),
80 'module' => 'cookie-banner',
81 'fields' => array(
82
83 array(
84 'id' => 'modal_width',
85 'type' => 'range',
86 'title' => esc_html__( 'Modal width', 'merchant' ),
87 'min' => 1,
88 'max' => 2000,
89 'step' => 1,
90 'default' => 750,
91 'unit' => 'px',
92 'condition' => array( 'theme', '==', 'floating' ),
93 ),
94
95 array(
96 'id' => 'modal_height',
97 'type' => 'range',
98 'title' => esc_html__( 'Modal height', 'merchant' ),
99 'min' => 1,
100 'max' => 1000,
101 'step' => 1,
102 'default' => 80,
103 'unit' => 'px',
104 ),
105
106 array(
107 'id' => 'background_color',
108 'type' => 'color',
109 'title' => esc_html__( 'Modal background color', 'merchant' ),
110 'default' => '#000000',
111 ),
112
113 array(
114 'id' => 'text_color',
115 'type' => 'color',
116 'title' => esc_html__( 'Text color', 'merchant' ),
117 'default' => '#ffffff',
118 ),
119
120 array(
121 'id' => 'link_color',
122 'type' => 'color',
123 'title' => esc_html__( 'Link color', 'merchant' ),
124 'default' => '#aeaeae',
125 ),
126
127 array(
128 'id' => 'button_background_color',
129 'type' => 'color',
130 'title' => esc_html__( 'Button background color', 'merchant' ),
131 'default' => '#dddddd',
132 ),
133
134 array(
135 'id' => 'button_text_color',
136 'type' => 'color',
137 'title' => esc_html__( 'Button text color', 'merchant' ),
138 'default' => '#151515',
139 ),
140
141 ),
142 ) );
143