PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.2.10
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.2.10
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
← All changes | admin/views/class-sps-metaboxes.php +6 -93 4.0.7 → 2.2.10 View file →
@@ -6,10 +6,9 @@
6 6 * @subpackage Smart_Post_Show/admin/views
7 7 */
8 8
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 - exit; // Exit if accessed directly.
11 -}
10 + die; } // Cannot access pages directly.
12 11
13 12 /**
14 13 * Smart Post Show Metaboxes.
15 14 */
@@ -24,9 +23,9 @@
24 23 public static function layout_metabox( $prefix ) {
25 24 SP_PC::createMetabox(
26 25 $prefix,
27 26 array(
28 - 'title' => __( 'Smart Post Show', 'post-carousel' ),
27 + 'title' => __( 'Smart Post Show', 'smart-post-show' ),
29 28 'post_type' => 'sp_post_carousel',
30 29 'show_restore' => false,
31 30 'context' => 'normal',
32 31 )
@@ -32,37 +31,12 @@
32 31 )
33 32 );
34 33
35 34 SPS_Layout::section( $prefix );
35 +
36 36 }
37 +
37 38 /**
38 - * Preview metabox.
39 - *
40 - * @param string $prefix The metabox main Key.
41 - * @return void
42 - */
43 - public static function preview_metabox( $prefix ) {
44 - SP_PC::createMetabox(
45 - $prefix,
46 - array(
47 - 'title' => __( 'Live Preview', 'post-carousel' ),
48 - 'post_type' => 'sp_post_carousel',
49 - 'show_restore' => false,
50 - 'context' => 'normal',
51 - )
52 - );
53 - SP_PC::createSection(
54 - $prefix,
55 - array(
56 - 'fields' => array(
57 - array(
58 - 'type' => 'preview',
59 - ),
60 - ),
61 - )
62 - );
63 - }
64 - /**
65 39 * Option Metabox function
66 40 *
67 41 * @param string $prefix The metabox key.
68 42 * @return void
@@ -70,9 +44,9 @@
70 44 public static function option_metabox( $prefix ) {
71 45 SP_PC::createMetabox(
72 46 $prefix,
73 47 array(
74 - 'title' => __( 'View Options', 'post-carousel' ),
48 + 'title' => __( 'View Options', 'smart-post-show' ),
75 49 'post_type' => 'sp_post_carousel',
76 50 'show_restore' => false,
77 51 'theme' => 'light',
78 52 )
@@ -83,9 +57,8 @@
83 57 SPS_Carousel::section( $prefix );
84 58 SPS_DetailSettings::section( $prefix );
85 59 SPS_Typography::section( $prefix );
86 60 }
87 -
88 61 /**
89 62 * Shortcode Metabox function
90 63 *
91 64 * @param string $prefix The metabox key.
@@ -94,9 +67,9 @@
94 67 public static function shortcode_metabox( $prefix ) {
95 68 SP_PC::createMetabox(
96 69 $prefix,
97 70 array(
98 - 'title' => __( 'How To Use', 'post-carousel' ),
71 + 'title' => __( 'How To Use', 'smart-post-show' ),
99 72 'post_type' => 'sp_post_carousel',
100 73 'context' => 'side',
101 74 'show_restore' => false,
102 75 )
@@ -102,68 +75,8 @@
102 75 )
103 76 );
104 77
105 78 SPS_Shortcode::section( $prefix );
106 - }
107 79
108 - /**
109 - * Page Builder Metabox function
110 - *
111 - * @param string $prefix The metabox key.
112 - * @return void
113 - */
114 - public static function page_builders_metabox( $prefix ) {
115 - // SP_PC::createMetabox(
116 - // $prefix,
117 - // array(
118 - // 'title' => __( 'Page Builders', 'post-carousel' ),
119 - // 'post_type' => 'sp_post_carousel',
120 - // 'context' => 'side',
121 - // 'show_restore' => false,
122 - // )
123 - // );
124 -
125 - SP_PC::createSection(
126 - $prefix,
127 - array(
128 - 'fields' => array(
129 - array(
130 - 'type' => 'shortcode',
131 - 'shortcode' => false,
132 - 'class' => 'pcp-admin-sidebar',
133 - ),
134 - ),
135 - )
136 - );
137 80 }
138 81
139 - /**
140 - * Shortcode Metabox function
141 - *
142 - * @param string $prefix The metabox key.
143 - * @return void
144 - */
145 - public static function promotional_metabox( $prefix ) {
146 - SP_PC::createMetabox(
147 - $prefix,
148 - array(
149 - 'title' => __( 'Additional Features in Pro', 'post-carousel' ),
150 - 'post_type' => 'sp_post_carousel',
151 - 'context' => 'side',
152 - 'show_restore' => false,
153 - )
154 - );
155 -
156 - SP_PC::createSection(
157 - $prefix,
158 - array(
159 - 'fields' => array(
160 - array(
161 - 'type' => 'shortcode',
162 - 'shortcode' => 'pro_notice',
163 - 'class' => 'pcp-admin-sidebar',
164 - ),
165 - ),
166 - )
167 - );
168 - }
169 82 }