← All changes
|
admin/views/configs/generator/class-sps-display.php
+127
-291
2.4.21
→
2.2.10
View file →
| @@ -6,10 +6,9 @@ | ||
| 6 | 6 | * @subpackage Smart_Post_Show/admin |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | - die; | |
| 11 | -} // Cannot access pages directly. | |
| 10 | + die; } // Cannot access pages directly. | |
| 12 | 11 | |
| 13 | 12 | /** |
| 14 | 13 | * The Layout building class. |
| 15 | 14 | */ |
| @@ -24,26 +23,26 @@ | ||
| 24 | 23 | public static function section( $prefix ) { |
| 25 | 24 | SP_PC::createSection( |
| 26 | 25 | $prefix, |
| 27 | 26 | array( |
| 28 | - 'title' => __( 'DISPLAY OPTIONS', 'post-carousel' ), | |
| 27 | + 'title' => __( 'DISPLAY OPTIONS', 'smart-post-show' ), | |
| 29 | 28 | 'icon' => 'fa fa-th-large', |
| 30 | 29 | 'fields' => array( |
| 31 | 30 | array( |
| 32 | 31 | 'id' => 'section_title', |
| 33 | 32 | 'type' => 'switcher', |
| 34 | - 'title' => __( 'Section Title ', 'post-carousel' ), | |
| 35 | - 'subtitle' => __( 'Show/Hide item showcase section title.', 'post-carousel' ), | |
| 33 | + 'title' => __( 'Section Title ', 'smart-post-show' ), | |
| 34 | + 'subtitle' => __( 'Show/Hide item showcase section title.', 'smart-post-show' ), | |
| 36 | 35 | 'default' => false, |
| 37 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 38 | - 'text_off' => __( 'Hide', 'post-carousel' ), | |
| 36 | + 'text_on' => __( 'Show', 'smart-post-show' ), | |
| 37 | + 'text_off' => __( 'Hide', 'smart-post-show' ), | |
| 39 | 38 | 'text_width' => 75, |
| 40 | 39 | ), |
| 41 | 40 | array( |
| 42 | 41 | 'id' => 'section_title_margin', |
| 43 | 42 | 'type' => 'spacing', |
| 44 | - 'title' => __( 'Section Title Margin', 'post-carousel' ), | |
| 45 | - 'subtitle' => __( 'Set margin for the section title.', 'post-carousel' ), | |
| 43 | + 'title' => __( 'Section Title Margin', 'smart-post-show' ), | |
| 44 | + 'subtitle' => __( 'Set margin for the section title.', 'smart-post-show' ), | |
| 46 | 45 | 'all_icon' => '<i class="fa fa-long-arrow-down"></i>', |
| 47 | 46 | 'units' => array( |
| 48 | 47 | 'px', |
| 49 | 48 | ), |
| @@ -51,9 +50,9 @@ | ||
| 51 | 50 | 'default' => array( |
| 52 | 51 | 'top' => '0', |
| 53 | 52 | 'right' => '0', |
| 54 | 53 | 'bottom' => '30', |
| 55 | - 'left' => '0', | |
| 54 | + 'top' => '0', | |
| 56 | 55 | ), |
| 57 | 56 | 'dependency' => array( |
| 58 | 57 | 'section_title', |
| 59 | 58 | '==', |
| @@ -63,10 +62,10 @@ | ||
| 63 | 62 | ), |
| 64 | 63 | array( |
| 65 | 64 | 'id' => 'pcp_number_of_columns', |
| 66 | 65 | 'type' => 'column', |
| 67 | - 'title' => __( 'Column(s)', 'post-carousel' ), | |
| 68 | - 'subtitle' => __( 'Set number of column(s) in different devices for responsive view.', 'post-carousel' ), | |
| 66 | + 'title' => __( 'Column(s)', 'smart-post-show' ), | |
| 67 | + 'subtitle' => __( 'Set number of column(s) in different devices for responsive view.', 'smart-post-show' ), | |
| 69 | 68 | 'default' => array( |
| 70 | 69 | 'lg_desktop' => '4', |
| 71 | 70 | 'desktop' => '4', |
| 72 | 71 | 'tablet' => '3', |
| @@ -78,10 +77,10 @@ | ||
| 78 | 77 | ), |
| 79 | 78 | array( |
| 80 | 79 | 'id' => 'margin_between_post', |
| 81 | 80 | 'type' => 'spacing', |
| 82 | - 'title' => __( 'Margin Between Columns', 'post-carousel' ), | |
| 83 | - 'subtitle' => __( 'Set margin between columns (items).', 'post-carousel' ), | |
| 81 | + 'title' => __( 'Margin Between Columns', 'smart-post-show' ), | |
| 82 | + 'subtitle' => __( 'Set margin between columns (items).', 'smart-post-show' ), | |
| 84 | 83 | 'all' => true, |
| 85 | 84 | 'all_icon' => '<i class="fa fa-arrows-h"></i>', |
| 86 | 85 | 'units' => array( |
| 87 | 86 | 'px', |
| @@ -93,40 +92,40 @@ | ||
| 93 | 92 | ), |
| 94 | 93 | array( |
| 95 | 94 | 'id' => 'post_content_orientation', |
| 96 | 95 | 'type' => 'layout_preset', |
| 97 | - 'title' => __( 'Content Orientation ', 'post-carousel' ), | |
| 98 | - 'subtitle' => __( 'Set a position for the item content.', 'post-carousel' ), | |
| 99 | - 'desc' => __( 'To unlock more amazing Content Orientation and Layout based Settings, <a href="https://smartpostshow.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'post-carousel' ), | |
| 96 | + 'title' => __( 'Content Orientation ', 'smart-post-show' ), | |
| 97 | + 'subtitle' => __( 'Set a position for the item content.', 'smart-post-show' ), | |
| 98 | + 'desc' => __( 'To unlock more amazing Content Orientation and Layout based Settings, <a href="https://smartpostshow.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'smart-post-show' ), | |
| 100 | 99 | 'class' => 'pcp-content-orientation', |
| 101 | 100 | 'options' => array( |
| 102 | 101 | 'default' => array( |
| 103 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/default.svg', | |
| 104 | - 'text' => __( 'Default', 'post-carousel' ), | |
| 102 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/default.png', | |
| 103 | + 'text' => __( 'Default', 'smart-post-show' ), | |
| 105 | 104 | ), |
| 106 | 105 | 'left-thumb' => array( |
| 107 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/left-image.svg', | |
| 108 | - 'text' => __( 'Left Image', 'post-carousel' ), | |
| 106 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/left-image.png', | |
| 107 | + 'text' => __( 'Left Image', 'smart-post-show' ), | |
| 109 | 108 | 'pro_only' => true, |
| 110 | 109 | ), |
| 111 | 110 | 'right-thumb' => array( |
| 112 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/right-image.svg', | |
| 113 | - 'text' => __( 'Right Image', 'post-carousel' ), | |
| 111 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/right-image.png', | |
| 112 | + 'text' => __( 'Right Image', 'smart-post-show' ), | |
| 114 | 113 | 'pro_only' => true, |
| 115 | 114 | ), |
| 116 | 115 | 'overlay' => array( |
| 117 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay.svg', | |
| 118 | - 'text' => __( 'Overlay', 'post-carousel' ), | |
| 116 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay.png', | |
| 117 | + 'text' => __( 'Overlay', 'smart-post-show' ), | |
| 119 | 118 | 'pro_only' => true, |
| 120 | 119 | ), |
| 121 | 120 | 'card' => array( |
| 122 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/card.svg', | |
| 123 | - 'text' => __( 'Card', 'post-carousel' ), | |
| 121 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/card.png', | |
| 122 | + 'text' => __( 'Card', 'smart-post-show' ), | |
| 124 | 123 | 'pro_only' => true, |
| 125 | 124 | ), |
| 126 | 125 | 'overlay-box' => array( |
| 127 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay-box.svg', | |
| 128 | - 'text' => __( 'Overlay Box', 'post-carousel' ), | |
| 126 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay-box.png', | |
| 127 | + 'text' => __( 'Overlay Box', 'smart-post-show' ), | |
| 129 | 128 | 'pro_only' => true, |
| 130 | 129 | ), |
| 131 | 130 | ), |
| 132 | 131 | 'default' => 'default', |
| @@ -133,10 +132,10 @@ | ||
| 133 | 132 | ), |
| 134 | 133 | array( |
| 135 | 134 | 'id' => 'post_border', |
| 136 | 135 | 'type' => 'border', |
| 137 | - 'title' => __( 'Border', 'post-carousel' ), | |
| 138 | - 'subtitle' => __( 'Set border for the item.', 'post-carousel' ), | |
| 136 | + 'title' => __( 'Border', 'smart-post-show' ), | |
| 137 | + 'subtitle' => __( 'Set border for the item.', 'smart-post-show' ), | |
| 139 | 138 | 'all' => true, |
| 140 | 139 | 'default' => array( |
| 141 | 140 | 'all' => '0', |
| 142 | 141 | 'style' => 'solid', |
| @@ -145,10 +144,10 @@ | ||
| 145 | 144 | ), |
| 146 | 145 | array( |
| 147 | 146 | 'id' => 'post_border_radius_property', |
| 148 | 147 | 'type' => 'spacing', |
| 149 | - 'title' => __( 'Border Radius', 'post-carousel' ), | |
| 150 | - 'subtitle' => __( 'Set border radius for item.', 'post-carousel' ), | |
| 148 | + 'title' => __( 'Border Radius', 'smart-post-show' ), | |
| 149 | + 'subtitle' => __( 'Set border radius for item.', 'smart-post-show' ), | |
| 151 | 150 | 'all' => true, |
| 152 | 151 | 'units' => array( 'px', '%' ), |
| 153 | 152 | 'default' => array( |
| 154 | 153 | 'all' => '0', |
| @@ -156,17 +155,17 @@ | ||
| 156 | 155 | ), |
| 157 | 156 | array( |
| 158 | 157 | 'id' => 'post_background_property', |
| 159 | 158 | 'type' => 'color', |
| 160 | - 'title' => __( 'Background', 'post-carousel' ), | |
| 161 | - 'subtitle' => __( 'Set background color for the item.', 'post-carousel' ), | |
| 159 | + 'title' => __( 'Background', 'smart-post-show' ), | |
| 160 | + 'subtitle' => __( 'Set background color for the item.', 'smart-post-show' ), | |
| 162 | 161 | 'default' => 'transparent', |
| 163 | 162 | ), |
| 164 | 163 | array( |
| 165 | 164 | 'id' => 'post_inner_padding_property', |
| 166 | 165 | 'type' => 'spacing', |
| 167 | - 'title' => __( 'Inner Padding', 'post-carousel' ), | |
| 168 | - 'subtitle' => __( 'Set inner padding for item.', 'post-carousel' ), | |
| 166 | + 'title' => __( 'Inner Padding', 'smart-post-show' ), | |
| 167 | + 'subtitle' => __( 'Set inner padding for item.', 'smart-post-show' ), | |
| 169 | 168 | 'default' => array( |
| 170 | 169 | 'top' => '0', |
| 171 | 170 | 'right' => '0', |
| 172 | 171 | 'bottom' => '0', |
| @@ -177,11 +176,11 @@ | ||
| 177 | 176 | ), |
| 178 | 177 | array( |
| 179 | 178 | 'id' => 'post_content_sorter', |
| 180 | 179 | 'type' => 'sortable', |
| 181 | - 'title' => __( 'Content Fields', 'post-carousel' ), | |
| 182 | - 'subtitle' => __( 'Item content fields which are draggable to change display order and it\'s settings.', 'post-carousel' ), | |
| 183 | - 'desc' => __( 'To show Social Share and Custom Fields, <a href="https://smartpostshow.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'post-carousel' ), | |
| 180 | + 'title' => __( 'Content Fields', 'smart-post-show' ), | |
| 181 | + 'subtitle' => __( 'Item content fields which are draggable to change display order and it\'s settings.', 'smart-post-show' ), | |
| 182 | + 'desc' => __( 'To show Social Share and Custom Fields, <a href="https://smartpostshow.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'smart-post-show' ), | |
| 184 | 183 | 'class' => 'post_content_sorter', |
| 185 | 184 | 'fields' => array( |
| 186 | 185 | array( |
| 187 | 186 | 'id' => 'pcp_post_thumb', |
| @@ -187,16 +186,16 @@ | ||
| 187 | 186 | 'id' => 'pcp_post_thumb', |
| 188 | 187 | 'type' => 'accordion', |
| 189 | 188 | 'accordions' => array( |
| 190 | 189 | array( |
| 191 | - 'title' => __( 'Thumbnail', 'post-carousel' ), | |
| 190 | + 'title' => __( 'Thumbnail', 'smart-post-show' ), | |
| 192 | 191 | 'fields' => array( |
| 193 | 192 | array( |
| 194 | 193 | 'id' => 'post_thumb_show', |
| 195 | 194 | 'type' => 'switcher', |
| 196 | - 'title' => __( 'Thumbnail', 'post-carousel' ), | |
| 197 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 198 | - 'text_off' => __( 'Hide', 'post-carousel' ), | |
| 195 | + 'title' => __( 'Thumbnail', 'smart-post-show' ), | |
| 196 | + 'text_on' => __( 'Show', 'smart-post-show' ), | |
| 197 | + 'text_off' => __( 'Hide', 'smart-post-show' ), | |
| 199 | 198 | 'default' => true, |
| 200 | 199 | 'text_width' => 80, |
| 201 | 200 | ), |
| 202 | 201 | array( |
| @@ -201,49 +200,12 @@ | ||
| 201 | 200 | ), |
| 202 | 201 | array( |
| 203 | 202 | 'id' => 'pcp_thumb_sizes', |
| 204 | 203 | 'type' => 'image_sizes', |
| 205 | - 'title' => __( 'Size', 'post-carousel' ), | |
| 204 | + 'title' => __( 'Size', 'smart-post-show' ), | |
| 206 | 205 | 'default' => 'full', |
| 207 | 206 | 'dependency' => array( 'post_thumb_show', '==', 'true', true ), |
| 208 | 207 | ), |
| 209 | - array( | |
| 210 | - 'id' => 'pcp_image_crop_size', | |
| 211 | - 'type' => 'dimensions_advanced', | |
| 212 | - 'title' => __( 'Custom Size (Pro)', 'post-carousel' ), | |
| 213 | - 'chosen' => true, | |
| 214 | - 'bottom' => false, | |
| 215 | - 'left' => false, | |
| 216 | - 'color' => false, | |
| 217 | - 'top_icon' => '<i class="fa fa-arrows-h"></i>', | |
| 218 | - 'right_icon' => '<i class="fa fa-arrows-v"></i>', | |
| 219 | - 'top_placeholder' => 'width', | |
| 220 | - 'right_placeholder' => 'height', | |
| 221 | - 'styles' => array( | |
| 222 | - 'Soft-crop', | |
| 223 | - 'Hard-crop', | |
| 224 | - ), | |
| 225 | - 'default' => array( | |
| 226 | - 'top' => '600', | |
| 227 | - 'right' => '400', | |
| 228 | - 'style' => 'Soft-crop', | |
| 229 | - 'unit' => 'px', | |
| 230 | - ), | |
| 231 | - 'attributes' => array( | |
| 232 | - 'min' => 0, | |
| 233 | - ), | |
| 234 | - 'dependency' => array( 'post_thumb_show|pcp_thumb_sizes', '==|==', 'true|custom' ), | |
| 235 | - ), | |
| 236 | - array( | |
| 237 | - 'id' => 'load_2x_image', | |
| 238 | - 'type' => 'switcher', | |
| 239 | - 'title' => __( 'Load 2x Resolution Image in Retina Display (Pro)', 'post-carousel' ), | |
| 240 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 241 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 242 | - 'text_width' => 94, | |
| 243 | - 'default' => false, | |
| 244 | - 'dependency' => array( 'post_thumb_show|pcp_thumb_sizes', '==|==', 'true|custom' ), | |
| 245 | - ), | |
| 246 | 208 | ), |
| 247 | 209 | ), |
| 248 | 210 | ), |
| 249 | 211 | ), |
| @@ -256,11 +218,11 @@ | ||
| 256 | 218 | 'fields' => array( |
| 257 | 219 | array( |
| 258 | 220 | 'id' => 'show_post_title', |
| 259 | 221 | 'type' => 'switcher', |
| 260 | - 'title' => __( 'Title', 'post-carousel' ), | |
| 261 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 262 | - 'text_off' => __( 'Hide', 'post-carousel' ), | |
| 222 | + 'title' => __( 'Title', 'smart-post-show' ), | |
| 223 | + 'text_on' => __( 'Show', 'smart-post-show' ), | |
| 224 | + 'text_off' => __( 'Hide', 'smart-post-show' ), | |
| 263 | 225 | 'default' => true, |
| 264 | 226 | 'text_width' => 80, |
| 265 | 227 | ), |
| 266 | 228 | array( |
| @@ -265,18 +227,18 @@ | ||
| 265 | 227 | ), |
| 266 | 228 | array( |
| 267 | 229 | 'id' => 'post_title_tag', |
| 268 | 230 | 'type' => 'select', |
| 269 | - 'title' => __( 'Title HTML Tag', 'post-carousel' ), | |
| 231 | + 'title' => __( 'Title HTML Tag', 'smart-post-show' ), | |
| 270 | 232 | 'options' => array( |
| 271 | - 'h1' => __( 'h1', 'post-carousel' ), | |
| 272 | - 'h2' => __( 'h2', 'post-carousel' ), | |
| 273 | - 'h3' => __( 'h3', 'post-carousel' ), | |
| 274 | - 'h4' => __( 'h4', 'post-carousel' ), | |
| 275 | - 'h5' => __( 'h5', 'post-carousel' ), | |
| 276 | - 'h6' => __( 'h6', 'post-carousel' ), | |
| 277 | - 'p' => __( 'p', 'post-carousel' ), | |
| 278 | - 'div' => __( 'div', 'post-carousel' ), | |
| 233 | + 'h1' => __( 'h1', 'smart-post-show' ), | |
| 234 | + 'h2' => __( 'h2', 'smart-post-show' ), | |
| 235 | + 'h3' => __( 'h3', 'smart-post-show' ), | |
| 236 | + 'h4' => __( 'h4', 'smart-post-show' ), | |
| 237 | + 'h5' => __( 'h5', 'smart-post-show' ), | |
| 238 | + 'h6' => __( 'h6', 'smart-post-show' ), | |
| 239 | + 'p' => __( 'p', 'smart-post-show' ), | |
| 240 | + 'div' => __( 'div', 'smart-post-show' ), | |
| 279 | 241 | ), |
| 280 | 242 | 'default' => 'h2', |
| 281 | 243 | 'class' => 'chosen', |
| 282 | 244 | 'dependency' => array( 'show_post_title', '==', 'true', true ), |
| @@ -289,16 +251,16 @@ | ||
| 289 | 251 | 'id' => 'pcp_post_meta', |
| 290 | 252 | 'type' => 'accordion', |
| 291 | 253 | 'accordions' => array( |
| 292 | 254 | array( |
| 293 | - 'title' => __( 'Meta Fields', 'post-carousel' ), | |
| 255 | + 'title' => __( 'Meta Fields', 'smart-post-show' ), | |
| 294 | 256 | 'fields' => array( |
| 295 | 257 | array( |
| 296 | 258 | 'id' => 'show_post_meta', |
| 297 | 259 | 'type' => 'switcher', |
| 298 | - 'title' => __( 'Meta Fields', 'post-carousel' ), | |
| 299 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 300 | - 'text_off' => __( 'Hide', 'post-carousel' ), | |
| 260 | + 'title' => __( 'Meta Fields', 'smart-post-show' ), | |
| 261 | + 'text_on' => __( 'Show', 'smart-post-show' ), | |
| 262 | + 'text_off' => __( 'Hide', 'smart-post-show' ), | |
| 301 | 263 | 'default' => true, |
| 302 | 264 | 'text_width' => 80, |
| 303 | 265 | ), |
| 304 | 266 | array( |
| @@ -304,169 +266,46 @@ | ||
| 304 | 266 | array( |
| 305 | 267 | 'id' => 'pcp_post_meta_group', |
| 306 | 268 | 'class' => 'pcp_custom_group_design', |
| 307 | 269 | 'type' => 'group', |
| 308 | - 'button_title' => __( 'Add New Meta', 'post-carousel' ), | |
| 270 | + 'button_title' => __( 'Add New Meta', 'smart-post-show' ), | |
| 309 | 271 | 'dependency' => array( 'show_post_meta', '==', 'true' ), |
| 310 | 272 | 'fields' => array( |
| 311 | 273 | array( |
| 312 | 274 | 'id' => 'select_post_meta', |
| 313 | 275 | 'type' => 'select', |
| 314 | - 'title' => __( 'Select Meta', 'post-carousel' ), | |
| 315 | - 'placeholder' => __( 'Select a meta', 'post-carousel' ), | |
| 276 | + 'title' => __( 'Select Meta', 'smart-post-show' ), | |
| 277 | + 'placeholder' => __( 'Select a meta', 'smart-post-show' ), | |
| 316 | 278 | 'class' => 'pcp-meta-select', |
| 317 | 279 | 'options' => array( |
| 318 | - 'author' => __( 'Author', 'post-carousel' ), | |
| 319 | - 'date' => __( 'Date', 'post-carousel' ), | |
| 320 | - 'comment_count' => __( 'Comment Count', 'post-carousel' ), | |
| 321 | - 'taxonomy' => __( 'Taxonomy (Pro)', 'post-carousel' ), | |
| 322 | - 'view_count' => __( 'View Count (Pro)', 'post-carousel' ), | |
| 323 | - 'like' => __( 'Like (Pro)', 'post-carousel' ), | |
| 324 | - 'reading_time' => __( 'Reading Time (Pro)', 'post-carousel' ), | |
| 280 | + 'author' => __( 'Author', 'smart-post-show' ), | |
| 281 | + 'date' => __( 'Date', 'smart-post-show' ), | |
| 282 | + 'comment_count' => __( 'Comment Count', 'smart-post-show' ), | |
| 283 | + 'taxonomy' => __( 'Taxonomy (Pro)', 'smart-post-show' ), | |
| 284 | + 'view_count' => __( 'View Count (Pro)', 'smart-post-show' ), | |
| 285 | + 'like' => __( 'Like (Pro)', 'smart-post-show' ), | |
| 286 | + 'reading_time' => __( 'Reading Time (Pro)', 'smart-post-show' ), | |
| 325 | 287 | ), |
| 326 | 288 | ), |
| 327 | 289 | array( |
| 328 | - 'id' => 'post_meta_author_avatar', | |
| 329 | - 'type' => 'select', | |
| 330 | - 'title' => __( 'Avatar', 'post-carousel' ), | |
| 331 | - 'class' => 'post_meta_author_avatar', | |
| 332 | - 'options' => array( | |
| 333 | - 'show_name' => __( 'Show name', 'post-carousel' ), | |
| 334 | - 'show_gravatar' => __( 'Show gravatar', 'post-carousel' ), | |
| 335 | - 'name_with_gravatar' => __( 'Author name & gravatar', 'post-carousel' ), | |
| 336 | - 'name_with_icon' => __( 'Author name with an icon', 'post-carousel' ), | |
| 337 | - | |
| 338 | - ), | |
| 339 | - 'desc' => __( 'To show gravatar, you must <a href="https://wordpress.org/support/article/how-to-use-gravatars/" target="_blank" rel="noopener noreferrer nofollow"><em>enable it</em></a>.', 'post-carousel' ), | |
| 340 | - 'default' => 'name_with_icon', | |
| 341 | - 'dependency' => array( 'select_post_meta', '==', 'author' ), | |
| 342 | - ), | |
| 343 | - array( | |
| 344 | - 'id' => 'post_meta_date_format', | |
| 345 | - 'type' => 'select', | |
| 346 | - 'title' => __( 'Date Format', 'post-carousel' ), | |
| 347 | - 'class' => 'post_meta_date_format', | |
| 348 | - 'options' => array( | |
| 349 | - 'default' => __( 'Default', 'post-carousel' ), | |
| 350 | - 'time_ago' => __( 'Time ago(human time)', 'post-carousel' ), | |
| 351 | - 'custom' => __( 'Custom', 'post-carousel' ), | |
| 352 | - ), | |
| 353 | - 'default' => 'default', | |
| 354 | - 'dependency' => array( 'select_post_meta', '==', 'date' ), | |
| 355 | - ), | |
| 356 | - array( | |
| 357 | - 'id' => 'pcp_custom_meta_date_format', | |
| 358 | - 'type' => 'text', | |
| 359 | - 'title' => ' ', | |
| 360 | - 'class' => 'pcp_custom_meta_date_format', | |
| 361 | - 'placeholder' => __( 'F j, Y', 'post-carousel' ), | |
| 362 | - 'default' => __( 'F j, Y', 'post-carousel' ), | |
| 363 | - 'desc' => __( 'To define format, check <a href="https://wordpress.org/support/article/formatting-date-and-time/" target="_blank" rel="noopener noreferrer nofollow"><em>this doc</em></a>.', 'post-carousel' ), | |
| 364 | - 'dependency' => array( 'select_post_meta|post_meta_date_format', '==|==', 'date|custom' ), | |
| 365 | - ), | |
| 366 | - array( | |
| 367 | - 'id' => 'post_meta_taxonomy', | |
| 368 | - 'type' => 'select', | |
| 369 | - 'title' => __( 'Select Taxonomy', 'post-carousel' ), | |
| 370 | - 'class' => 'post_meta_taxonomy', | |
| 371 | - 'options' => 'taxonomy', | |
| 372 | - 'query_args' => array( | |
| 373 | - 'type' => 'any', | |
| 374 | - ), | |
| 375 | - 'attributes' => array( | |
| 376 | - 'style' => 'width: 200px;', | |
| 377 | - ), | |
| 378 | - 'empty_message' => __( 'No taxonomies found.', 'post-carousel' ), | |
| 379 | - 'dependency' => array( 'select_post_meta', '==', 'taxonomy' ), | |
| 380 | - ), | |
| 381 | - array( | |
| 382 | - 'id' => 'pcp_meta_position', | |
| 383 | - 'class' => 'pcp_meta_position', | |
| 384 | - 'type' => 'button_set', | |
| 385 | - 'title' => __( 'Position', 'post-carousel' ), | |
| 386 | - 'options' => array( | |
| 387 | - 'beside_meta' => __( 'Beside Other Meta', 'post-carousel' ), | |
| 388 | - 'above_title' => __( 'Above Title', 'post-carousel' ), | |
| 389 | - 'over_thumb' => __( 'Over Thumbnail', 'post-carousel' ), | |
| 390 | - | |
| 391 | - ), | |
| 392 | - 'default' => 'beside_meta', | |
| 393 | - 'dependency' => array( 'select_post_meta', '==', 'taxonomy' ), | |
| 394 | - ), | |
| 395 | - array( | |
| 396 | - 'id' => 'pcp_meta_over_thump_position', | |
| 397 | - 'type' => 'select', | |
| 398 | - 'title' => __( 'Over Thumbnail Position', 'post-carousel' ), | |
| 399 | - 'options' => array( | |
| 400 | - 'top_left' => __( 'Top Left', 'post-carousel' ), | |
| 401 | - 'top_right' => __( 'Top Right', 'post-carousel' ), | |
| 402 | - 'bottom_left' => __( 'Bottom Left', 'post-carousel' ), | |
| 403 | - 'bottom_right' => __( 'Bottom Right', 'post-carousel' ), | |
| 404 | - ), | |
| 405 | - 'default' => 'top_left', | |
| 406 | - 'dependency' => array( 'select_post_meta|pcp_meta_position', '==|==', 'taxonomy|over_thumb' ), | |
| 407 | - ), | |
| 408 | - array( | |
| 409 | - 'id' => 'pcp_meta_pill_color', | |
| 410 | - 'type' => 'color_group', | |
| 411 | - 'title' => __( 'Meta Color', 'post-carousel' ), | |
| 412 | - 'options' => array( | |
| 413 | - 'text' => __( 'Text', 'post-carousel' ), | |
| 414 | - 'bg' => __( 'Background', 'post-carousel' ), | |
| 415 | - ), | |
| 416 | - 'default' => array( | |
| 417 | - 'text' => '#fff', | |
| 418 | - 'bg' => '#e53935', | |
| 419 | - ), | |
| 420 | - 'dependency' => array( 'select_post_meta|pcp_meta_position', '==|!=', 'taxonomy|beside_meta' ), | |
| 421 | - ), | |
| 422 | - array( | |
| 423 | - 'id' => 'pcp_word_per_minute', | |
| 424 | - 'type' => 'number', | |
| 425 | - 'title' => __( 'Per Minute', 'post-carousel' ), | |
| 426 | - 'class' => 'pcp_reading_time_meta', | |
| 427 | - 'title_help' => __( 'Default 300 words, the average reading speed for adults.', 'post-carousel' ), | |
| 428 | - 'sanitize' => 'pcp_sanitize_number_field', | |
| 429 | - 'unit' => __( 'words', 'post-carousel' ), | |
| 430 | - 'default' => '300', | |
| 431 | - 'dependency' => array( 'select_post_meta', '==', 'reading_time' ), | |
| 432 | - 'default' => 300, | |
| 433 | - ), | |
| 434 | - array( | |
| 435 | 290 | 'id' => 'select_meta_icon', |
| 436 | - 'class' => 'select_meta_icon', | |
| 437 | 291 | 'type' => 'icon', |
| 438 | - 'title' => __( 'Meta Icon', 'post-carousel' ), | |
| 292 | + 'title' => __( 'Meta Icon', 'smart-post-show' ), | |
| 439 | 293 | 'default' => 'fa fa-folder-o', |
| 440 | - 'dependency' => array( 'pcp_meta_position|select_post_meta', '==|!=', 'beside_meta|like' ), | |
| 294 | + 'dependency' => array( 'select_post_meta', '!=', '', true ), | |
| 295 | + | |
| 441 | 296 | ), |
| 442 | - array( | |
| 443 | - 'id' => 'reading_time_postfix', | |
| 444 | - 'type' => 'text', | |
| 445 | - 'title' => __( 'Reading Time Postfix', 'post-carousel' ), | |
| 446 | - 'class' => 'pcp_reading_time_postfix', | |
| 447 | - 'title_help' => __( 'Text after time. Leave empty for nothing.', 'post-carousel' ), | |
| 448 | - 'default' => ' Min Read', | |
| 449 | - 'dependency' => array( 'select_post_meta', '==', 'reading_time' ), | |
| 450 | - ), | |
| 297 | + | |
| 451 | 298 | ), |
| 452 | 299 | 'default' => array( |
| 453 | 300 | array( |
| 454 | - 'select_post_meta' => 'author', | |
| 455 | - 'post_meta_author_avatar' => 'name_with_icon', | |
| 301 | + 'select_post_meta' => 'author', | |
| 456 | 302 | 'select_meta_icon' => 'fa fa-user', |
| 457 | - 'pcp_meta_position' => 'beside_meta', | |
| 458 | 303 | ), |
| 459 | 304 | array( |
| 460 | 305 | 'select_post_meta' => 'date', |
| 461 | 306 | 'select_meta_icon' => 'fa fa-calendar', |
| 462 | - 'pcp_meta_position' => 'beside_meta', | |
| 463 | 307 | ), |
| 464 | - array( | |
| 465 | - 'select_post_meta' => 'comment_count', | |
| 466 | - 'select_meta_icon' => 'fa fa-comments-o', | |
| 467 | - 'pcp_meta_position' => 'beside_meta', | |
| 468 | - ), | |
| 469 | 308 | ), |
| 470 | 309 | ), |
| 471 | 310 | ), |
| 472 | 311 | ), |
| @@ -481,11 +320,11 @@ | ||
| 481 | 320 | 'fields' => array( |
| 482 | 321 | array( |
| 483 | 322 | 'id' => 'show_post_content', |
| 484 | 323 | 'type' => 'switcher', |
| 485 | - 'title' => __( 'Content', 'post-carousel' ), | |
| 486 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 487 | - 'text_off' => __( 'Hide', 'post-carousel' ), | |
| 324 | + 'title' => __( 'Content', 'smart-post-show' ), | |
| 325 | + 'text_on' => __( 'Show', 'smart-post-show' ), | |
| 326 | + 'text_off' => __( 'Hide', 'smart-post-show' ), | |
| 488 | 327 | 'default' => true, |
| 489 | 328 | 'text_width' => 80, |
| 490 | 329 | ), |
| 491 | 330 | array( |
| @@ -491,13 +330,13 @@ | ||
| 491 | 330 | array( |
| 492 | 331 | 'id' => 'post_content_type', |
| 493 | 332 | 'type' => 'select', |
| 494 | 333 | 'class' => 'pcp-post-content-type', |
| 495 | - 'title' => __( 'Content Display Type', 'post-carousel' ), | |
| 334 | + 'title' => __( 'Content Display Type', 'smart-post-show' ), | |
| 496 | 335 | 'options' => array( |
| 497 | - 'excerpt' => __( 'Excerpt', 'post-carousel' ), | |
| 498 | - 'full_content' => __( 'Full Content', 'post-carousel' ), | |
| 499 | - 'limit_content' => __( 'Content with Limit (Pro)', 'post-carousel' ), | |
| 336 | + 'excerpt' => __( 'Excerpt', 'smart-post-show' ), | |
| 337 | + 'full_content' => __( 'Full Content', 'smart-post-show' ), | |
| 338 | + 'limit_content' => __( 'Content with Limit (Pro)', 'smart-post-show' ), | |
| 500 | 339 | ), |
| 501 | 340 | 'default' => 'excerpt', |
| 502 | 341 | 'dependency' => array( 'show_post_content', '==', 'true', true ), |
| 503 | 342 | ), |
| @@ -505,11 +344,11 @@ | ||
| 505 | 344 | // ReadMore settings. |
| 506 | 345 | array( |
| 507 | 346 | 'id' => 'show_read_more', |
| 508 | 347 | 'type' => 'switcher', |
| 509 | - 'title' => __( 'Read More', 'post-carousel' ), | |
| 510 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 511 | - 'text_off' => __( 'Hide', 'post-carousel' ), | |
| 348 | + 'title' => __( 'Read More', 'smart-post-show' ), | |
| 349 | + 'text_on' => __( 'Show', 'smart-post-show' ), | |
| 350 | + 'text_off' => __( 'Hide', 'smart-post-show' ), | |
| 512 | 351 | 'default' => true, |
| 513 | 352 | 'text_width' => 80, |
| 514 | 353 | 'dependency' => array( 'post_content_type', '!=', 'full_content', true ), |
| 515 | 354 | ), |
| @@ -515,9 +354,9 @@ | ||
| 515 | 354 | ), |
| 516 | 355 | array( |
| 517 | 356 | 'id' => 'pcp_read_label', |
| 518 | 357 | 'type' => 'text', |
| 519 | - 'title' => __( 'Read More Label', 'post-carousel' ), | |
| 358 | + 'title' => __( 'Read More Label', 'smart-post-show' ), | |
| 520 | 359 | 'default' => 'Read More', |
| 521 | 360 | 'dependency' => array( 'post_content_type|show_read_more', '!=|==', 'full_content|true', true ), |
| 522 | 361 | ), |
| 523 | 362 | array( |
| @@ -522,16 +361,16 @@ | ||
| 522 | 361 | ), |
| 523 | 362 | array( |
| 524 | 363 | 'id' => 'readmore_color_button', |
| 525 | 364 | 'type' => 'color_group', |
| 526 | - 'title' => __( 'Read More Color', 'post-carousel' ), | |
| 365 | + 'title' => __( 'Read More Color', 'smart-post-show' ), | |
| 527 | 366 | 'options' => array( |
| 528 | - 'standard' => __( 'Text Color', 'post-carousel' ), | |
| 529 | - 'hover' => __( 'Text Hover Color', 'post-carousel' ), | |
| 530 | - 'bg' => __( 'Background', 'post-carousel' ), | |
| 531 | - 'hover_bg' => __( 'Hover Background', 'post-carousel' ), | |
| 532 | - 'border' => __( 'Border', 'post-carousel' ), | |
| 533 | - 'hover_border' => __( 'Hover Border', 'post-carousel' ), | |
| 367 | + 'standard' => __( 'Text Color', 'smart-post-show' ), | |
| 368 | + 'hover' => __( 'Text Hover Color', 'smart-post-show' ), | |
| 369 | + 'bg' => __( 'Background', 'smart-post-show' ), | |
| 370 | + 'hover_bg' => __( 'Hover Background', 'smart-post-show' ), | |
| 371 | + 'border' => __( 'Border', 'smart-post-show' ), | |
| 372 | + 'hover_border' => __( 'Hover Border', 'smart-post-show' ), | |
| 534 | 373 | ), |
| 535 | 374 | 'default' => array( |
| 536 | 375 | 'standard' => '#111', |
| 537 | 376 | 'hover' => '#fff', |
| @@ -552,14 +391,14 @@ | ||
| 552 | 391 | 'type' => 'accordion', |
| 553 | 392 | 'class' => 'pcp-pro-only', |
| 554 | 393 | 'accordions' => array( |
| 555 | 394 | array( |
| 556 | - 'title' => __( 'Social Share (Pro)', 'post-carousel' ), | |
| 395 | + 'title' => __( 'Social Share (Pro)', 'smart-post-show' ), | |
| 557 | 396 | 'fields' => array( |
| 558 | 397 | array( |
| 559 | 398 | 'id' => 'social_position', |
| 560 | 399 | 'type' => 'button_set', |
| 561 | - 'title' => __( 'Alignment', 'post-carousel' ), | |
| 400 | + 'title' => __( 'Alignment', 'smart-post-show' ), | |
| 562 | 401 | 'options' => array( |
| 563 | 402 | 'left' => '<i class="fa fa-align-left" title="Left"></i>', |
| 564 | 403 | 'center' => '<i class="fa fa-align-center" title="Center"></i>', |
| 565 | 404 | 'right' => '<i class="fa fa-align-right" title="Right"></i>', |
| @@ -576,18 +415,18 @@ | ||
| 576 | 415 | 'type' => 'accordion', |
| 577 | 416 | 'class' => 'pcp-pro-only', |
| 578 | 417 | 'accordions' => array( |
| 579 | 418 | array( |
| 580 | - 'title' => __( 'Custom Fields (Pro)', 'post-carousel' ), | |
| 419 | + 'title' => __( 'Custom Fields (Pro)', 'smart-post-show' ), | |
| 581 | 420 | 'fields' => array( |
| 582 | 421 | // The Group Fields. |
| 583 | 422 | array( |
| 584 | - 'id' => 'pcp_custom_meta_icon', | |
| 585 | - 'type' => 'icon', | |
| 586 | - 'title' => 'Icon Before Name', | |
| 423 | + 'id' => 'pcp_custom_meta_icon', | |
| 424 | + 'type' => 'icon', | |
| 425 | + 'title' => 'Icon Before Name', | |
| 587 | 426 | 'default' => 'fa fa-calendar-o', |
| 588 | 427 | ), |
| 589 | - | |
| 428 | + | |
| 590 | 429 | ), // End Fields array. |
| 591 | 430 | ), |
| 592 | 431 | ), // Accordion. |
| 593 | 432 | ), // Custom fields end. |
| @@ -595,13 +434,13 @@ | ||
| 595 | 434 | ), |
| 596 | 435 | array( |
| 597 | 436 | 'id' => 'show_post_pagination', |
| 598 | 437 | 'type' => 'switcher', |
| 599 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 600 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 438 | + 'text_on' => __( 'Enabled', 'smart-post-show' ), | |
| 439 | + 'text_off' => __( 'Disabled', 'smart-post-show' ), | |
| 601 | 440 | 'text_width' => 100, |
| 602 | - 'title' => __( 'Pagination', 'post-carousel' ), | |
| 603 | - 'subtitle' => __( 'Enabled/Disabled item pagination.', 'post-carousel' ), | |
| 441 | + 'title' => __( 'Pagination', 'smart-post-show' ), | |
| 442 | + 'subtitle' => __( 'Enabled/Disabled item pagination.', 'smart-post-show' ), | |
| 604 | 443 | 'default' => true, |
| 605 | 444 | 'dependency' => array( 'pcp_layout_preset', 'not-any', 'carousel_layout', 'true' ), |
| 606 | 445 | ), |
| 607 | 446 | array( |
| @@ -606,17 +445,17 @@ | ||
| 606 | 445 | ), |
| 607 | 446 | array( |
| 608 | 447 | 'id' => 'post_pagination_type', |
| 609 | 448 | 'type' => 'radio', |
| 610 | - 'title' => __( 'Pagination Type', 'post-carousel' ), | |
| 611 | - 'subtitle' => __( 'Choose a pagination type.', 'post-carousel' ), | |
| 612 | - 'desc' => __( 'More amazing Ajax Pagination Settings are available in <a href="https://smartpostshow.com/" target="_blank"><strong>Pro</strong></a>!', 'post-carousel' ), | |
| 449 | + 'title' => __( 'Pagination Type', 'smart-post-show' ), | |
| 450 | + 'subtitle' => __( 'Choose a pagination type.', 'smart-post-show' ), | |
| 451 | + 'desc' => __( 'More amazing Ajax Pagination Settings are available in <a href="https://smartpostshow.com/" target="_blank"><strong>Pro</strong></a>!', 'smart-post-show' ), | |
| 613 | 452 | 'class' => 'pcp-pagination-type', |
| 614 | 453 | 'options' => array( |
| 615 | - 'no_ajax' => __( 'Normal Pagination', 'post-carousel' ), | |
| 616 | - 'ajax_load_more' => __( 'Ajax Load More Button (Pro)', 'post-carousel' ), | |
| 617 | - 'ajax_pagination' => __( 'Ajax Number Pagination (Pro)', 'post-carousel' ), | |
| 618 | - 'infinite_scroll' => __( 'Ajax Infinite Scroll (Pro)', 'post-carousel' ), | |
| 454 | + 'no_ajax' => __( 'Normal Pagination', 'smart-post-show' ), | |
| 455 | + 'ajax_load_more' => __( 'Ajax Load More Button (Pro)', 'smart-post-show' ), | |
| 456 | + 'ajax_pagination' => __( 'Ajax Number Pagination (Pro)', 'smart-post-show' ), | |
| 457 | + 'infinite_scroll' => __( 'Ajax Infinite Scroll (Pro)', 'smart-post-show' ), | |
| 619 | 458 | ), |
| 620 | 459 | 'default' => 'no_ajax', |
| 621 | 460 | 'dependency' => array( 'pcp_layout_preset|show_post_pagination', 'not-any|==', 'carousel_layout|true', true ), |
| 622 | 461 | // 'dependency' => array( 'pcp_layout_preset', 'not-any', 'grid_layout', 'true' ), |
| @@ -623,17 +462,17 @@ | ||
| 623 | 462 | ), |
| 624 | 463 | array( |
| 625 | 464 | 'id' => 'pcp_pagination_btn_color', |
| 626 | 465 | 'type' => 'color_group', |
| 627 | - 'title' => __( 'Pagination Color', 'post-carousel' ), | |
| 628 | - 'subtitle' => __( 'Set Pagination color', 'post-carousel' ), | |
| 466 | + 'title' => __( 'Pagination Color', 'smart-post-show' ), | |
| 467 | + 'subtitle' => __( 'Set Pagination color', 'smart-post-show' ), | |
| 629 | 468 | 'options' => array( |
| 630 | - 'text_color' => __( 'Text Color', 'post-carousel' ), | |
| 631 | - 'text_acolor' => __( 'Text Active Color', 'post-carousel' ), | |
| 632 | - 'border_color' => __( 'Border Color', 'post-carousel' ), | |
| 633 | - 'border_acolor' => __( 'Border Active Color', 'post-carousel' ), | |
| 634 | - 'background' => __( 'Background', 'post-carousel' ), | |
| 635 | - 'active_background' => __( 'Active BG', 'post-carousel' ), | |
| 469 | + 'text_color' => __( 'Text Color', 'smart-post-show' ), | |
| 470 | + 'text_acolor' => __( 'Text Active Color', 'smart-post-show' ), | |
| 471 | + 'border_color' => __( 'Border Color', 'smart-post-show' ), | |
| 472 | + 'border_acolor' => __( 'Border Active Color', 'smart-post-show' ), | |
| 473 | + 'background' => __( 'Background', 'smart-post-show' ), | |
| 474 | + 'active_background' => __( 'Active BG', 'smart-post-show' ), | |
| 636 | 475 | ), |
| 637 | 476 | 'default' => array( |
| 638 | 477 | 'text_color' => '#5e5e5e', |
| 639 | 478 | 'text_acolor' => '#ffffff', |
| @@ -646,24 +485,21 @@ | ||
| 646 | 485 | ), |
| 647 | 486 | array( |
| 648 | 487 | 'id' => 'post_per_page', |
| 649 | 488 | 'type' => 'spinner', |
| 650 | - 'title' => __( 'Items Per Page', 'post-carousel' ), | |
| 651 | - 'subtitle' => __( 'Set number of items to show per page.', 'post-carousel' ), | |
| 652 | - 'help' => __( 'This value should be lesser than that <strong> Limit </strong> from <strong>Filter Content </strong> tab.', 'post-carousel' ), | |
| 489 | + 'title' => __( 'Items Per Page', 'smart-post-show' ), | |
| 490 | + 'subtitle' => __( 'Set number of items to show per page.', 'smart-post-show' ), | |
| 491 | + 'help' => __( 'This value should be lesser than that <strong> Limit </strong> from <strong>Filter Content </strong> tab.', 'smart-post-show' ), | |
| 653 | 492 | 'default' => 12, |
| 654 | 493 | 'dependency' => array( 'pcp_layout_preset|show_post_pagination', '==|==', 'grid_layout|true' ), |
| 655 | 494 | ), |
| 656 | 495 | |
| 657 | 496 | array( |
| 658 | - 'id' => 'show_preloader', | |
| 659 | - 'type' => 'switcher', | |
| 660 | - 'title' => __( 'Preloader', 'post-carousel' ), | |
| 661 | - 'subtitle' => __( 'Items will be hidden until page load completed.', 'post-carousel' ), | |
| 662 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 663 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 664 | - 'text_width' => 94, | |
| 665 | - 'default' => false, | |
| 497 | + 'id' => 'show_preloader', | |
| 498 | + 'type' => 'switcher', | |
| 499 | + 'title' => __( 'Preloader', 'smart-post-show' ), | |
| 500 | + 'subtitle' => __( 'Items will be hidden until page load completed.', 'smart-post-show' ), | |
| 501 | + 'default' => false, | |
| 666 | 502 | ), |
| 667 | 503 | ), // End of fields array. |
| 668 | 504 | ) |
| 669 | 505 | ); // Display settings section end. |