← All changes
|
admin/views/configs/generator/class-sps-display.php
+129
-123
2.4.10
→
2.2.10
View file →
| @@ -23,26 +23,26 @@ | ||
| 23 | 23 | public static function section( $prefix ) { |
| 24 | 24 | SP_PC::createSection( |
| 25 | 25 | $prefix, |
| 26 | 26 | array( |
| 27 | - 'title' => __( 'DISPLAY OPTIONS', 'post-carousel' ), | |
| 27 | + 'title' => __( 'DISPLAY OPTIONS', 'smart-post-show' ), | |
| 28 | 28 | 'icon' => 'fa fa-th-large', |
| 29 | 29 | 'fields' => array( |
| 30 | 30 | array( |
| 31 | 31 | 'id' => 'section_title', |
| 32 | 32 | 'type' => 'switcher', |
| 33 | - 'title' => __( 'Section Title ', 'post-carousel' ), | |
| 34 | - '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' ), | |
| 35 | 35 | 'default' => false, |
| 36 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 37 | - 'text_off' => __( 'Hide', 'post-carousel' ), | |
| 36 | + 'text_on' => __( 'Show', 'smart-post-show' ), | |
| 37 | + 'text_off' => __( 'Hide', 'smart-post-show' ), | |
| 38 | 38 | 'text_width' => 75, |
| 39 | 39 | ), |
| 40 | 40 | array( |
| 41 | 41 | 'id' => 'section_title_margin', |
| 42 | 42 | 'type' => 'spacing', |
| 43 | - 'title' => __( 'Section Title Margin', 'post-carousel' ), | |
| 44 | - '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' ), | |
| 45 | 45 | 'all_icon' => '<i class="fa fa-long-arrow-down"></i>', |
| 46 | 46 | 'units' => array( |
| 47 | 47 | 'px', |
| 48 | 48 | ), |
| @@ -62,10 +62,10 @@ | ||
| 62 | 62 | ), |
| 63 | 63 | array( |
| 64 | 64 | 'id' => 'pcp_number_of_columns', |
| 65 | 65 | 'type' => 'column', |
| 66 | - 'title' => __( 'Column(s)', 'post-carousel' ), | |
| 67 | - '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' ), | |
| 68 | 68 | 'default' => array( |
| 69 | 69 | 'lg_desktop' => '4', |
| 70 | 70 | 'desktop' => '4', |
| 71 | 71 | 'tablet' => '3', |
| @@ -77,10 +77,10 @@ | ||
| 77 | 77 | ), |
| 78 | 78 | array( |
| 79 | 79 | 'id' => 'margin_between_post', |
| 80 | 80 | 'type' => 'spacing', |
| 81 | - 'title' => __( 'Margin Between Columns', 'post-carousel' ), | |
| 82 | - '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' ), | |
| 83 | 83 | 'all' => true, |
| 84 | 84 | 'all_icon' => '<i class="fa fa-arrows-h"></i>', |
| 85 | 85 | 'units' => array( |
| 86 | 86 | 'px', |
| @@ -92,40 +92,40 @@ | ||
| 92 | 92 | ), |
| 93 | 93 | array( |
| 94 | 94 | 'id' => 'post_content_orientation', |
| 95 | 95 | 'type' => 'layout_preset', |
| 96 | - 'title' => __( 'Content Orientation ', 'post-carousel' ), | |
| 97 | - 'subtitle' => __( 'Set a position for the item content.', 'post-carousel' ), | |
| 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>', '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' ), | |
| 99 | 99 | 'class' => 'pcp-content-orientation', |
| 100 | 100 | 'options' => array( |
| 101 | 101 | 'default' => array( |
| 102 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/default.svg', | |
| 103 | - 'text' => __( 'Default', 'post-carousel' ), | |
| 102 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/default.png', | |
| 103 | + 'text' => __( 'Default', 'smart-post-show' ), | |
| 104 | 104 | ), |
| 105 | 105 | 'left-thumb' => array( |
| 106 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/left-image.svg', | |
| 107 | - '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' ), | |
| 108 | 108 | 'pro_only' => true, |
| 109 | 109 | ), |
| 110 | 110 | 'right-thumb' => array( |
| 111 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/right-image.svg', | |
| 112 | - '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' ), | |
| 113 | 113 | 'pro_only' => true, |
| 114 | 114 | ), |
| 115 | 115 | 'overlay' => array( |
| 116 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay.svg', | |
| 117 | - 'text' => __( 'Overlay', 'post-carousel' ), | |
| 116 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay.png', | |
| 117 | + 'text' => __( 'Overlay', 'smart-post-show' ), | |
| 118 | 118 | 'pro_only' => true, |
| 119 | 119 | ), |
| 120 | 120 | 'card' => array( |
| 121 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/card.svg', | |
| 122 | - 'text' => __( 'Card', 'post-carousel' ), | |
| 121 | + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/card.png', | |
| 122 | + 'text' => __( 'Card', 'smart-post-show' ), | |
| 123 | 123 | 'pro_only' => true, |
| 124 | 124 | ), |
| 125 | 125 | 'overlay-box' => array( |
| 126 | - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay-box.svg', | |
| 127 | - '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' ), | |
| 128 | 128 | 'pro_only' => true, |
| 129 | 129 | ), |
| 130 | 130 | ), |
| 131 | 131 | 'default' => 'default', |
| @@ -132,10 +132,10 @@ | ||
| 132 | 132 | ), |
| 133 | 133 | array( |
| 134 | 134 | 'id' => 'post_border', |
| 135 | 135 | 'type' => 'border', |
| 136 | - 'title' => __( 'Border', 'post-carousel' ), | |
| 137 | - 'subtitle' => __( 'Set border for the item.', 'post-carousel' ), | |
| 136 | + 'title' => __( 'Border', 'smart-post-show' ), | |
| 137 | + 'subtitle' => __( 'Set border for the item.', 'smart-post-show' ), | |
| 138 | 138 | 'all' => true, |
| 139 | 139 | 'default' => array( |
| 140 | 140 | 'all' => '0', |
| 141 | 141 | 'style' => 'solid', |
| @@ -144,10 +144,10 @@ | ||
| 144 | 144 | ), |
| 145 | 145 | array( |
| 146 | 146 | 'id' => 'post_border_radius_property', |
| 147 | 147 | 'type' => 'spacing', |
| 148 | - 'title' => __( 'Border Radius', 'post-carousel' ), | |
| 149 | - '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' ), | |
| 150 | 150 | 'all' => true, |
| 151 | 151 | 'units' => array( 'px', '%' ), |
| 152 | 152 | 'default' => array( |
| 153 | 153 | 'all' => '0', |
| @@ -155,17 +155,17 @@ | ||
| 155 | 155 | ), |
| 156 | 156 | array( |
| 157 | 157 | 'id' => 'post_background_property', |
| 158 | 158 | 'type' => 'color', |
| 159 | - 'title' => __( 'Background', 'post-carousel' ), | |
| 160 | - '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' ), | |
| 161 | 161 | 'default' => 'transparent', |
| 162 | 162 | ), |
| 163 | 163 | array( |
| 164 | 164 | 'id' => 'post_inner_padding_property', |
| 165 | 165 | 'type' => 'spacing', |
| 166 | - 'title' => __( 'Inner Padding', 'post-carousel' ), | |
| 167 | - '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' ), | |
| 168 | 168 | 'default' => array( |
| 169 | 169 | 'top' => '0', |
| 170 | 170 | 'right' => '0', |
| 171 | 171 | 'bottom' => '0', |
| @@ -176,11 +176,11 @@ | ||
| 176 | 176 | ), |
| 177 | 177 | array( |
| 178 | 178 | 'id' => 'post_content_sorter', |
| 179 | 179 | 'type' => 'sortable', |
| 180 | - 'title' => __( 'Content Fields', 'post-carousel' ), | |
| 181 | - 'subtitle' => __( 'Item content fields which are draggable to change display order and it\'s settings.', 'post-carousel' ), | |
| 182 | - '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' ), | |
| 183 | 183 | 'class' => 'post_content_sorter', |
| 184 | 184 | 'fields' => array( |
| 185 | 185 | array( |
| 186 | 186 | 'id' => 'pcp_post_thumb', |
| @@ -186,16 +186,16 @@ | ||
| 186 | 186 | 'id' => 'pcp_post_thumb', |
| 187 | 187 | 'type' => 'accordion', |
| 188 | 188 | 'accordions' => array( |
| 189 | 189 | array( |
| 190 | - 'title' => __( 'Thumbnail', 'post-carousel' ), | |
| 190 | + 'title' => __( 'Thumbnail', 'smart-post-show' ), | |
| 191 | 191 | 'fields' => array( |
| 192 | 192 | array( |
| 193 | 193 | 'id' => 'post_thumb_show', |
| 194 | 194 | 'type' => 'switcher', |
| 195 | - 'title' => __( 'Thumbnail', 'post-carousel' ), | |
| 196 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 197 | - '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' ), | |
| 198 | 198 | 'default' => true, |
| 199 | 199 | 'text_width' => 80, |
| 200 | 200 | ), |
| 201 | 201 | array( |
| @@ -200,9 +200,9 @@ | ||
| 200 | 200 | ), |
| 201 | 201 | array( |
| 202 | 202 | 'id' => 'pcp_thumb_sizes', |
| 203 | 203 | 'type' => 'image_sizes', |
| 204 | - 'title' => __( 'Size', 'post-carousel' ), | |
| 204 | + 'title' => __( 'Size', 'smart-post-show' ), | |
| 205 | 205 | 'default' => 'full', |
| 206 | 206 | 'dependency' => array( 'post_thumb_show', '==', 'true', true ), |
| 207 | 207 | ), |
| 208 | 208 | ), |
| @@ -218,11 +218,11 @@ | ||
| 218 | 218 | 'fields' => array( |
| 219 | 219 | array( |
| 220 | 220 | 'id' => 'show_post_title', |
| 221 | 221 | 'type' => 'switcher', |
| 222 | - 'title' => __( 'Title', 'post-carousel' ), | |
| 223 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 224 | - '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' ), | |
| 225 | 225 | 'default' => true, |
| 226 | 226 | 'text_width' => 80, |
| 227 | 227 | ), |
| 228 | 228 | array( |
| @@ -227,18 +227,18 @@ | ||
| 227 | 227 | ), |
| 228 | 228 | array( |
| 229 | 229 | 'id' => 'post_title_tag', |
| 230 | 230 | 'type' => 'select', |
| 231 | - 'title' => __( 'Title HTML Tag', 'post-carousel' ), | |
| 231 | + 'title' => __( 'Title HTML Tag', 'smart-post-show' ), | |
| 232 | 232 | 'options' => array( |
| 233 | - 'h1' => __( 'h1', 'post-carousel' ), | |
| 234 | - 'h2' => __( 'h2', 'post-carousel' ), | |
| 235 | - 'h3' => __( 'h3', 'post-carousel' ), | |
| 236 | - 'h4' => __( 'h4', 'post-carousel' ), | |
| 237 | - 'h5' => __( 'h5', 'post-carousel' ), | |
| 238 | - 'h6' => __( 'h6', 'post-carousel' ), | |
| 239 | - 'p' => __( 'p', 'post-carousel' ), | |
| 240 | - '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' ), | |
| 241 | 241 | ), |
| 242 | 242 | 'default' => 'h2', |
| 243 | 243 | 'class' => 'chosen', |
| 244 | 244 | 'dependency' => array( 'show_post_title', '==', 'true', true ), |
| @@ -251,16 +251,16 @@ | ||
| 251 | 251 | 'id' => 'pcp_post_meta', |
| 252 | 252 | 'type' => 'accordion', |
| 253 | 253 | 'accordions' => array( |
| 254 | 254 | array( |
| 255 | - 'title' => __( 'Meta Fields', 'post-carousel' ), | |
| 255 | + 'title' => __( 'Meta Fields', 'smart-post-show' ), | |
| 256 | 256 | 'fields' => array( |
| 257 | 257 | array( |
| 258 | 258 | 'id' => 'show_post_meta', |
| 259 | 259 | 'type' => 'switcher', |
| 260 | - 'title' => __( 'Meta Fields', 'post-carousel' ), | |
| 261 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 262 | - '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' ), | |
| 263 | 263 | 'default' => true, |
| 264 | 264 | 'text_width' => 80, |
| 265 | 265 | ), |
| 266 | 266 | array( |
| @@ -266,27 +266,36 @@ | ||
| 266 | 266 | array( |
| 267 | 267 | 'id' => 'pcp_post_meta_group', |
| 268 | 268 | 'class' => 'pcp_custom_group_design', |
| 269 | 269 | 'type' => 'group', |
| 270 | - 'button_title' => __( 'Add New Meta', 'post-carousel' ), | |
| 270 | + 'button_title' => __( 'Add New Meta', 'smart-post-show' ), | |
| 271 | 271 | 'dependency' => array( 'show_post_meta', '==', 'true' ), |
| 272 | 272 | 'fields' => array( |
| 273 | 273 | array( |
| 274 | 274 | 'id' => 'select_post_meta', |
| 275 | 275 | 'type' => 'select', |
| 276 | - 'title' => __( 'Select Meta', 'post-carousel' ), | |
| 277 | - 'placeholder' => __( 'Select a meta', 'post-carousel' ), | |
| 276 | + 'title' => __( 'Select Meta', 'smart-post-show' ), | |
| 277 | + 'placeholder' => __( 'Select a meta', 'smart-post-show' ), | |
| 278 | 278 | 'class' => 'pcp-meta-select', |
| 279 | 279 | 'options' => array( |
| 280 | - 'author' => __( 'Author', 'post-carousel' ), | |
| 281 | - 'date' => __( 'Date', 'post-carousel' ), | |
| 282 | - 'comment_count' => __( 'Comment Count', 'post-carousel' ), | |
| 283 | - 'taxonomy' => __( 'Taxonomy (Pro)', 'post-carousel' ), | |
| 284 | - 'view_count' => __( 'View Count (Pro)', 'post-carousel' ), | |
| 285 | - 'like' => __( 'Like (Pro)', 'post-carousel' ), | |
| 286 | - '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' ), | |
| 287 | 287 | ), |
| 288 | 288 | ), |
| 289 | + array( | |
| 290 | + 'id' => 'select_meta_icon', | |
| 291 | + 'type' => 'icon', | |
| 292 | + 'title' => __( 'Meta Icon', 'smart-post-show' ), | |
| 293 | + 'default' => 'fa fa-folder-o', | |
| 294 | + 'dependency' => array( 'select_post_meta', '!=', '', true ), | |
| 295 | + | |
| 296 | + ), | |
| 297 | + | |
| 289 | 298 | ), |
| 290 | 299 | 'default' => array( |
| 291 | 300 | array( |
| 292 | 301 | 'select_post_meta' => 'author', |
| @@ -311,11 +320,11 @@ | ||
| 311 | 320 | 'fields' => array( |
| 312 | 321 | array( |
| 313 | 322 | 'id' => 'show_post_content', |
| 314 | 323 | 'type' => 'switcher', |
| 315 | - 'title' => __( 'Content', 'post-carousel' ), | |
| 316 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 317 | - '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' ), | |
| 318 | 327 | 'default' => true, |
| 319 | 328 | 'text_width' => 80, |
| 320 | 329 | ), |
| 321 | 330 | array( |
| @@ -321,13 +330,13 @@ | ||
| 321 | 330 | array( |
| 322 | 331 | 'id' => 'post_content_type', |
| 323 | 332 | 'type' => 'select', |
| 324 | 333 | 'class' => 'pcp-post-content-type', |
| 325 | - 'title' => __( 'Content Display Type', 'post-carousel' ), | |
| 334 | + 'title' => __( 'Content Display Type', 'smart-post-show' ), | |
| 326 | 335 | 'options' => array( |
| 327 | - 'excerpt' => __( 'Excerpt', 'post-carousel' ), | |
| 328 | - 'full_content' => __( 'Full Content', 'post-carousel' ), | |
| 329 | - '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' ), | |
| 330 | 339 | ), |
| 331 | 340 | 'default' => 'excerpt', |
| 332 | 341 | 'dependency' => array( 'show_post_content', '==', 'true', true ), |
| 333 | 342 | ), |
| @@ -335,11 +344,11 @@ | ||
| 335 | 344 | // ReadMore settings. |
| 336 | 345 | array( |
| 337 | 346 | 'id' => 'show_read_more', |
| 338 | 347 | 'type' => 'switcher', |
| 339 | - 'title' => __( 'Read More', 'post-carousel' ), | |
| 340 | - 'text_on' => __( 'Show', 'post-carousel' ), | |
| 341 | - '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' ), | |
| 342 | 351 | 'default' => true, |
| 343 | 352 | 'text_width' => 80, |
| 344 | 353 | 'dependency' => array( 'post_content_type', '!=', 'full_content', true ), |
| 345 | 354 | ), |
| @@ -345,9 +354,9 @@ | ||
| 345 | 354 | ), |
| 346 | 355 | array( |
| 347 | 356 | 'id' => 'pcp_read_label', |
| 348 | 357 | 'type' => 'text', |
| 349 | - 'title' => __( 'Read More Label', 'post-carousel' ), | |
| 358 | + 'title' => __( 'Read More Label', 'smart-post-show' ), | |
| 350 | 359 | 'default' => 'Read More', |
| 351 | 360 | 'dependency' => array( 'post_content_type|show_read_more', '!=|==', 'full_content|true', true ), |
| 352 | 361 | ), |
| 353 | 362 | array( |
| @@ -352,16 +361,16 @@ | ||
| 352 | 361 | ), |
| 353 | 362 | array( |
| 354 | 363 | 'id' => 'readmore_color_button', |
| 355 | 364 | 'type' => 'color_group', |
| 356 | - 'title' => __( 'Read More Color', 'post-carousel' ), | |
| 365 | + 'title' => __( 'Read More Color', 'smart-post-show' ), | |
| 357 | 366 | 'options' => array( |
| 358 | - 'standard' => __( 'Text Color', 'post-carousel' ), | |
| 359 | - 'hover' => __( 'Text Hover Color', 'post-carousel' ), | |
| 360 | - 'bg' => __( 'Background', 'post-carousel' ), | |
| 361 | - 'hover_bg' => __( 'Hover Background', 'post-carousel' ), | |
| 362 | - 'border' => __( 'Border', 'post-carousel' ), | |
| 363 | - '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' ), | |
| 364 | 373 | ), |
| 365 | 374 | 'default' => array( |
| 366 | 375 | 'standard' => '#111', |
| 367 | 376 | 'hover' => '#fff', |
| @@ -382,14 +391,14 @@ | ||
| 382 | 391 | 'type' => 'accordion', |
| 383 | 392 | 'class' => 'pcp-pro-only', |
| 384 | 393 | 'accordions' => array( |
| 385 | 394 | array( |
| 386 | - 'title' => __( 'Social Share (Pro)', 'post-carousel' ), | |
| 395 | + 'title' => __( 'Social Share (Pro)', 'smart-post-show' ), | |
| 387 | 396 | 'fields' => array( |
| 388 | 397 | array( |
| 389 | 398 | 'id' => 'social_position', |
| 390 | 399 | 'type' => 'button_set', |
| 391 | - 'title' => __( 'Alignment', 'post-carousel' ), | |
| 400 | + 'title' => __( 'Alignment', 'smart-post-show' ), | |
| 392 | 401 | 'options' => array( |
| 393 | 402 | 'left' => '<i class="fa fa-align-left" title="Left"></i>', |
| 394 | 403 | 'center' => '<i class="fa fa-align-center" title="Center"></i>', |
| 395 | 404 | 'right' => '<i class="fa fa-align-right" title="Right"></i>', |
| @@ -406,18 +415,18 @@ | ||
| 406 | 415 | 'type' => 'accordion', |
| 407 | 416 | 'class' => 'pcp-pro-only', |
| 408 | 417 | 'accordions' => array( |
| 409 | 418 | array( |
| 410 | - 'title' => __( 'Custom Fields (Pro)', 'post-carousel' ), | |
| 419 | + 'title' => __( 'Custom Fields (Pro)', 'smart-post-show' ), | |
| 411 | 420 | 'fields' => array( |
| 412 | 421 | // The Group Fields. |
| 413 | 422 | array( |
| 414 | - 'id' => 'pcp_custom_meta_icon', | |
| 415 | - 'type' => 'icon', | |
| 416 | - 'title' => 'Icon Before Name', | |
| 423 | + 'id' => 'pcp_custom_meta_icon', | |
| 424 | + 'type' => 'icon', | |
| 425 | + 'title' => 'Icon Before Name', | |
| 417 | 426 | 'default' => 'fa fa-calendar-o', |
| 418 | 427 | ), |
| 419 | - | |
| 428 | + | |
| 420 | 429 | ), // End Fields array. |
| 421 | 430 | ), |
| 422 | 431 | ), // Accordion. |
| 423 | 432 | ), // Custom fields end. |
| @@ -425,13 +434,13 @@ | ||
| 425 | 434 | ), |
| 426 | 435 | array( |
| 427 | 436 | 'id' => 'show_post_pagination', |
| 428 | 437 | 'type' => 'switcher', |
| 429 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 430 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 438 | + 'text_on' => __( 'Enabled', 'smart-post-show' ), | |
| 439 | + 'text_off' => __( 'Disabled', 'smart-post-show' ), | |
| 431 | 440 | 'text_width' => 100, |
| 432 | - 'title' => __( 'Pagination', 'post-carousel' ), | |
| 433 | - 'subtitle' => __( 'Enabled/Disabled item pagination.', 'post-carousel' ), | |
| 441 | + 'title' => __( 'Pagination', 'smart-post-show' ), | |
| 442 | + 'subtitle' => __( 'Enabled/Disabled item pagination.', 'smart-post-show' ), | |
| 434 | 443 | 'default' => true, |
| 435 | 444 | 'dependency' => array( 'pcp_layout_preset', 'not-any', 'carousel_layout', 'true' ), |
| 436 | 445 | ), |
| 437 | 446 | array( |
| @@ -436,17 +445,17 @@ | ||
| 436 | 445 | ), |
| 437 | 446 | array( |
| 438 | 447 | 'id' => 'post_pagination_type', |
| 439 | 448 | 'type' => 'radio', |
| 440 | - 'title' => __( 'Pagination Type', 'post-carousel' ), | |
| 441 | - 'subtitle' => __( 'Choose a pagination type.', 'post-carousel' ), | |
| 442 | - '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' ), | |
| 443 | 452 | 'class' => 'pcp-pagination-type', |
| 444 | 453 | 'options' => array( |
| 445 | - 'no_ajax' => __( 'Normal Pagination', 'post-carousel' ), | |
| 446 | - 'ajax_load_more' => __( 'Ajax Load More Button (Pro)', 'post-carousel' ), | |
| 447 | - 'ajax_pagination' => __( 'Ajax Number Pagination (Pro)', 'post-carousel' ), | |
| 448 | - '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' ), | |
| 449 | 458 | ), |
| 450 | 459 | 'default' => 'no_ajax', |
| 451 | 460 | 'dependency' => array( 'pcp_layout_preset|show_post_pagination', 'not-any|==', 'carousel_layout|true', true ), |
| 452 | 461 | // 'dependency' => array( 'pcp_layout_preset', 'not-any', 'grid_layout', 'true' ), |
| @@ -453,17 +462,17 @@ | ||
| 453 | 462 | ), |
| 454 | 463 | array( |
| 455 | 464 | 'id' => 'pcp_pagination_btn_color', |
| 456 | 465 | 'type' => 'color_group', |
| 457 | - 'title' => __( 'Pagination Color', 'post-carousel' ), | |
| 458 | - 'subtitle' => __( 'Set Pagination color', 'post-carousel' ), | |
| 466 | + 'title' => __( 'Pagination Color', 'smart-post-show' ), | |
| 467 | + 'subtitle' => __( 'Set Pagination color', 'smart-post-show' ), | |
| 459 | 468 | 'options' => array( |
| 460 | - 'text_color' => __( 'Text Color', 'post-carousel' ), | |
| 461 | - 'text_acolor' => __( 'Text Active Color', 'post-carousel' ), | |
| 462 | - 'border_color' => __( 'Border Color', 'post-carousel' ), | |
| 463 | - 'border_acolor' => __( 'Border Active Color', 'post-carousel' ), | |
| 464 | - 'background' => __( 'Background', 'post-carousel' ), | |
| 465 | - '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' ), | |
| 466 | 475 | ), |
| 467 | 476 | 'default' => array( |
| 468 | 477 | 'text_color' => '#5e5e5e', |
| 469 | 478 | 'text_acolor' => '#ffffff', |
| @@ -476,24 +485,21 @@ | ||
| 476 | 485 | ), |
| 477 | 486 | array( |
| 478 | 487 | 'id' => 'post_per_page', |
| 479 | 488 | 'type' => 'spinner', |
| 480 | - 'title' => __( 'Items Per Page', 'post-carousel' ), | |
| 481 | - 'subtitle' => __( 'Set number of items to show per page.', 'post-carousel' ), | |
| 482 | - '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' ), | |
| 483 | 492 | 'default' => 12, |
| 484 | 493 | 'dependency' => array( 'pcp_layout_preset|show_post_pagination', '==|==', 'grid_layout|true' ), |
| 485 | 494 | ), |
| 486 | 495 | |
| 487 | 496 | array( |
| 488 | - 'id' => 'show_preloader', | |
| 489 | - 'type' => 'switcher', | |
| 490 | - 'title' => __( 'Preloader', 'post-carousel' ), | |
| 491 | - 'subtitle' => __( 'Items will be hidden until page load completed.', 'post-carousel' ), | |
| 492 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 493 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 494 | - 'text_width' => 94, | |
| 495 | - '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, | |
| 496 | 502 | ), |
| 497 | 503 | ), // End of fields array. |
| 498 | 504 | ) |
| 499 | 505 | ); // Display settings section end. |