PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.3.6
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.3.6
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / admin / views / configs / generator / class-sps-detailsettings.php

class-sps-detailsettings.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 2.3.6, at admin/views/configs/generator/class-sps-detailsettings.php

259 lines 9.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The Popup Settings Meta-box configurations.
4 *
5 * @package Smart_Post_Show
6 * @subpackage Smart_Post_Show/admin
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 die; } // Cannot access pages directly.
11
12 /**
13 * The Popup settings class.
14 */
15 class SPS_DetailSettings {
16
17 /**
18 * Popup settings section metabox.
19 *
20 * @param string $prefix The metabox key.
21 * @return void
22 */
23 public static function section( $prefix ) {
24 SP_PC::createSection(
25 $prefix,
26 array(
27 'title' => __( 'Detail page Settings', 'smart-post-show' ),
28 'icon' => 'fa fa-external-link-square',
29 'fields' => array(
30 array(
31 'id' => 'pcp_page_link_type',
32 'class' => 'pcp_page_link_type',
33 'type' => 'radio',
34 'title' => __( 'Detail Page Link Type', 'smart-post-show' ),
35 'subtitle' => __( 'Choose a link type for the (item) detail page.', 'smart-post-show' ),
36 'options' => array(
37 'popup' => __( 'Popup (Pro)', 'smart-post-show' ),
38 'single_page' => __( 'Single Page', 'smart-post-show' ),
39 'none' => __( 'None (no link action)', 'smart-post-show' ),
40 ),
41 'default' => 'single_page',
42 ),
43 array(
44 'id' => 'pcp_link_target',
45 'type' => 'radio',
46 'title' => __( 'Target', 'smart-post-show' ),
47 'subtitle' => __( 'Set a target for the item link.', 'smart-post-show' ),
48 'options' => array(
49 '_self' => __( 'Current Tab', 'smart-post-show' ),
50 '_blank' => __( 'New Tab', 'smart-post-show' ),
51 '_parent' => __( 'Parent', 'smart-post-show' ),
52 '_top' => __( 'Top', 'smart-post-show' ),
53 ),
54 'default' => '_self',
55 'dependency' => array( 'pcp_page_link_type', '==', 'single_page' ),
56 ),
57 array(
58 'id' => 'pcp_link_rel',
59 'type' => 'checkbox',
60 'title' => __( 'Add rel="nofollow" to item links', 'smart-post-show' ),
61 'default' => false,
62 ),
63 array(
64 'type' => 'notice',
65 'content' => __( 'To unlock the following amazing Popup Settings</b>, <a href="//smartpostshow.com" target="_blank"><b>Upgrade To Pro!</b></a>', 'smart-post-show' ),
66 ),
67 array(
68 'id' => 'pcp_popup_settings',
69 'class' => 'pcp_popup_settings_field',
70 'type' => 'fieldset',
71 'fields' => array(
72 array(
73 'id' => 'pcp_popup_type',
74 'type' => 'radio',
75 'title' => __( 'Popup Type', 'smart-post-show-pro' ),
76 'subtitle' => __( 'Choose a popup type.', 'smart-post-show-pro' ),
77 'options' => array(
78 'single_popup' => __( 'Single Popup', 'smart-post-show-pro' ),
79 'multi_popup' => __( 'Multi Popup (Preview with navigation)', 'smart-post-show-pro' ),
80 ),
81 'default' => 'single_popup',
82 ),
83 array(
84 'id' => 'popup_width',
85 'type' => 'spacing',
86 'title' => __( 'Maximum Width', 'smart-post-show-pro' ),
87 'subtitle' => __( 'Set maximum popup width.', 'smart-post-show-pro' ),
88 'all' => true,
89 'min' => 0,
90 'max' => 3000,
91 'all_icon' => '<i class="fa fa-arrows-h"></i>',
92 'units' => array( 'px', '%' ),
93 'default' => array(
94 'all' => '1050',
95 ),
96 ),
97 array(
98 'id' => 'popup_height',
99 'type' => 'spacing',
100 'title' => __( 'Maximum Height', 'smart-post-show-pro' ),
101 'subtitle' => __( 'Set maximum popup height.', 'smart-post-show-pro' ),
102 'all' => true,
103 'min' => 0,
104 'max' => 3000,
105 'all_icon' => '<i class="fa fa-arrows-v"></i>',
106 'units' => array( 'vh', 'px', '%' ),
107 'default' => array(
108 'all' => '700',
109 ),
110 ),
111 array(
112 'id' => 'popup_content_color',
113 'type' => 'color_group',
114 'title' => __( 'Content Color', 'smart-post-show-pro' ),
115 'subtitle' => __( 'Set the popup content color.', 'smart-post-show-pro' ),
116 'options' => array(
117 'post-title' => __( 'Post Title', 'smart-post-show-pro' ),
118 'post-meta' => __( 'Post Meta', 'smart-post-show-pro' ),
119 'post-content' => __( 'Post Content', 'smart-post-show-pro' ),
120 'custom-fields' => __( 'Custom Fields', 'smart-post-show-pro' ),
121 ),
122 'default' => array(
123 'post-title' => '#111',
124 'post-meta' => '#888',
125 'post-content' => '#444',
126 'custom-fields' => '#888',
127 ),
128 ),
129 array(
130 'id' => 'popup_bg_color',
131 'type' => 'color',
132 'title' => __( 'Background Color', 'smart-post-show-pro' ),
133 'subtitle' => __( 'Change the popup background color.', 'smart-post-show-pro' ),
134 'default' => '#fff',
135 ),
136 array(
137 'id' => 'popup_overlay_color',
138 'type' => 'color',
139 'title' => __( 'Overlay Color', 'smart-post-show-pro' ),
140 'subtitle' => __( 'Change the popup overlay color.', 'smart-post-show-pro' ),
141 'default' => 'rgba(11,11,11,0.8)',
142 ),
143 array(
144 'id' => 'popup_close_button',
145 'type' => 'switcher',
146 'title' => __( 'Close Button', 'smart-post-show-pro' ),
147 'subtitle' => __( 'Show/Hide popup close button.', 'smart-post-show-pro' ),
148 'text_on' => __( 'Show', 'smart-post-show-pro' ),
149 'text_off' => __( 'Hide', 'smart-post-show-pro' ),
150 'text_width' => 80,
151 'default' => true,
152 ),
153 array(
154 'id' => 'popup_close_button_color',
155 'type' => 'color_group',
156 'title' => __( 'Close Button Color', 'smart-post-show-pro' ),
157 'subtitle' => __( 'Change the popup close button color.', 'smart-post-show-pro' ),
158 'options' => array(
159 'color' => __( 'Color', 'smart-post-show-pro' ),
160 'hover-color' => __( 'Hover Color', 'smart-post-show-pro' ),
161 ),
162 'default' => array(
163 'color' => '#fc0c0c',
164 'hover-color' => '#e1624b',
165 ),
166 ),
167 array(
168 'id' => 'popup_nav_color',
169 'type' => 'color_group',
170 'title' => __( 'Navigation Color', 'smart-post-show-pro' ),
171 'subtitle' => __( 'Change the popup navigation color.', 'smart-post-show-pro' ),
172 'options' => array(
173 'color' => __( 'Color', 'smart-post-show-pro' ),
174 'hover-color' => __( 'Hover Color', 'smart-post-show-pro' ),
175 'bg' => __( 'Background', 'smart-post-show-pro' ),
176 'hover-bg' => __( 'Hover Background', 'smart-post-show-pro' ),
177 ),
178 'default' => array(
179 'color' => '#aaa',
180 'hover-color' => '#fff',
181 'bg' => 'rgba(0,0,0,0.5)',
182 'hover-bg' => '#e1624b',
183 ),
184 ),
185 array(
186 'id' => 'popup_post_content_sorter',
187 'type' => 'sortable',
188 'title' => __( 'Popup Fields', 'smart-post-show-pro' ),
189 'subtitle' => __( 'Show/Hide content fields in the popup. These fields are also sortable.', 'smart-post-show-pro' ),
190 'class' => 'post_content_sorter_sortable',
191 'default' => array(
192 'popup_show_post_thumb' => true,
193 'popup_show_post_title' => true,
194 'popup_show_post_meta' => true,
195 'popup_show_post_content' => true,
196 'popup_show_social_share' => true,
197 'popup_show_custom_fields' => false,
198 ),
199 'fields' => array(
200 array(
201 'id' => 'popup_show_post_thumb',
202 'type' => 'switcher',
203 'title' => __( 'Thumbnail', 'smart-post-show-pro' ),
204 'text_on' => __( 'Show', 'smart-post-show-pro' ),
205 'text_off' => __( 'Hide', 'smart-post-show-pro' ),
206 'text_width' => 80,
207 ),
208 array(
209 'id' => 'popup_show_post_title',
210 'type' => 'switcher',
211 'title' => __( 'Title', 'smart-post-show-pro' ),
212 'text_on' => __( 'Show', 'smart-post-show-pro' ),
213 'text_off' => __( 'Hide', 'smart-post-show-pro' ),
214 'text_width' => 80,
215 ),
216 array(
217 'id' => 'popup_show_post_meta',
218 'type' => 'switcher',
219 'title' => __( 'Meta Fields', 'smart-post-show-pro' ),
220 'text_on' => __( 'Show', 'smart-post-show-pro' ),
221 'text_off' => __( 'Hide', 'smart-post-show-pro' ),
222 'text_width' => 80,
223 ),
224 array(
225 'id' => 'popup_show_post_content',
226 'type' => 'switcher',
227 'title' => __( 'Content', 'smart-post-show-pro' ),
228 'text_on' => __( 'Show', 'smart-post-show-pro' ),
229 'text_off' => __( 'Hide', 'smart-post-show-pro' ),
230 'text_width' => 80,
231 ),
232 array(
233 'id' => 'popup_show_social_share',
234 'type' => 'switcher',
235 'title' => __( 'Social Share', 'smart-post-show-pro' ),
236 'text_on' => __( 'Show', 'smart-post-show-pro' ),
237 'text_off' => __( 'Hide', 'smart-post-show-pro' ),
238 'text_width' => 80,
239 ),
240 array(
241 'id' => 'popup_show_custom_fields',
242 'type' => 'switcher',
243 'title' => __( 'Custom Fields', 'smart-post-show-pro' ),
244 'text_on' => __( 'Show', 'smart-post-show-pro' ),
245 'text_off' => __( 'Hide', 'smart-post-show-pro' ),
246 'text_width' => 80,
247 ),
248
249 ),
250 ),
251 ),
252 ),
253
254 ), // End of fields array.
255 )
256 ); // Display settings section end.
257 }
258 }
259