PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.4.0
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.4.0
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-layout.php

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

88 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The layout 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 Layout building class.
14 */
15 class SPS_Layout {
16
17 /**
18 * Layout metabox section.
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 'fields' => array(
28 array(
29 'type' => 'heading',
30 'image' => SP_PC_URL . 'admin/assets/img/logo.svg',
31 'after' => '<i class="fa fa-life-ring"></i> Support',
32 'link' => 'https://shapedplugin.com/support/?user=lite',
33 'class' => 'pcp-admin-header',
34 ),
35 array(
36 'id' => 'pcp_layout_preset',
37 'type' => 'layout_preset',
38 'title' => __( 'Layout Preset', 'smart-post-show' ),
39 'class' => 'pcp-layout-preset',
40 'options' => array(
41 'carousel_layout' => array(
42 'image' => SP_PC_URL . 'admin/assets/img/carousel.svg',
43 'text' => __( 'Carousel', 'smart-post-show' ),
44 ),
45 'grid_layout' => array(
46 'image' => SP_PC_URL . 'admin/assets/img/grid.svg',
47 'text' => __( 'Grid', 'smart-post-show' ),
48 ),
49 'list_layout' => array(
50 'image' => SP_PC_URL . 'admin/assets/img/list.svg',
51 'text' => __( 'List', 'smart-post-show' ),
52 'pro_only' => true,
53 ),
54 'filter_layout' => array(
55 'image' => SP_PC_URL . 'admin/assets/img/filter.svg',
56 'text' => __( 'Isotope', 'smart-post-show' ),
57 'pro_only' => true,
58 ),
59 'timeline_layout' => array(
60 'image' => SP_PC_URL . 'admin/assets/img/timeline.svg',
61 'text' => __( 'Timeline', 'smart-post-show' ),
62 'pro_only' => true,
63 ),
64 'zigzag_layout' => array(
65 'image' => SP_PC_URL . 'admin/assets/img/zigzag.svg',
66 'text' => __( 'Zigzag', 'smart-post-show' ),
67 'pro_only' => true,
68 ),
69 'accordion_layout' => array(
70 'image' => SP_PC_URL . 'admin/assets/img/collapsible.svg',
71 'text' => __( 'Accordion', 'smart-post-show' ),
72 'pro_only' => true,
73 ),
74 'large_with_small' => array(
75 'image' => SP_PC_URL . 'admin/assets/img/block.svg',
76 'text' => __( 'Large with Small', 'smart-post-show' ),
77 'pro_only' => true,
78 ),
79 ),
80 'default' => 'carousel_layout',
81 ),
82 ), // End of fields array.
83 )
84 );
85
86 }
87 }
88