| 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 |
|