PluginProbe
WP Ultimate Post Grid / 2.4.0
WP Ultimate Post Grid v2.4.0
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | helpers/meta_box.php +65 -1 1.72.4.0 View file →
@@ -4,8 +4,9 @@
4 4
5 5 public function __construct()
6 6 {
7 7 add_action( 'admin_init', array( $this, 'add_meta_box' ), 10 );
8 + add_action( 'admin_init', array( $this, 'add_meta_box_general' ), 11 );
8 9 add_action( 'admin_init', array( $this, 'add_meta_box_data_source' ), 12 );
9 10 add_action( 'admin_init', array( $this, 'add_meta_box_filter' ), 14 );
10 11 add_action( 'admin_init', array( $this, 'add_meta_box_grid' ), 16 );
11 12 add_action( 'admin_init', array( $this, 'add_meta_box_pagination' ), 18 );
@@ -33,8 +34,20 @@
33 34 );
34 35 }
35 36 }
36 37
38 + public function add_meta_box_general()
39 + {
40 + add_meta_box(
41 + 'wpupg_meta_box_general',
42 + __( 'General', 'wp-ultimate-post-grid' ),
43 + array( $this, 'meta_box_general' ),
44 + WPUPG_POST_TYPE,
45 + 'normal',
46 + 'high'
47 + );
48 + }
49 +
37 50 public function add_meta_box_data_source()
38 51 {
39 52 add_meta_box(
40 53 'wpupg_meta_box_data_source',
@@ -45,15 +58,33 @@
45 58 'high'
46 59 );
47 60
48 61 add_meta_box(
62 + 'wpupg_meta_box_data_source_terms',
63 + __( 'Data Source', 'wp-ultimate-post-grid' ),
64 + array( $this, 'meta_box_data_source_terms' ),
65 + WPUPG_POST_TYPE,
66 + 'normal',
67 + 'high'
68 + );
69 +
70 + add_meta_box(
49 71 'wpupg_meta_box_limit_posts',
50 - __( 'Limit Posts', 'wp-ultimate-post-grid' ),
72 + __( 'Limit Items', 'wp-ultimate-post-grid' ),
51 73 array( $this, 'meta_box_limit_posts' ),
52 74 WPUPG_POST_TYPE,
53 75 'normal',
54 76 'high'
55 77 );
78 +
79 + add_meta_box(
80 + 'wpupg_meta_box_limit_terms',
81 + __( 'Limit Terms', 'wp-ultimate-post-grid' ),
82 + array( $this, 'meta_box_limit_terms' ),
83 + WPUPG_POST_TYPE,
84 + 'normal',
85 + 'high'
86 + );
56 87 }
57 88
58 89 public function add_meta_box_filter()
59 90 {
@@ -66,8 +97,17 @@
66 97 'high'
67 98 );
68 99
69 100 add_meta_box(
101 + 'wpupg_meta_box_text_filter',
102 + __( 'Text Search Filter', 'wp-ultimate-post-grid' ),
103 + array( $this, 'meta_box_text_filter' ),
104 + WPUPG_POST_TYPE,
105 + 'normal',
106 + 'high'
107 + );
108 +
109 + add_meta_box(
70 110 'wpupg_meta_box_isotope_filter',
71 111 __( 'Isotope Filter', 'wp-ultimate-post-grid' ),
72 112 array( $this, 'meta_box_isotope_filter' ),
73 113 WPUPG_POST_TYPE,
@@ -120,8 +160,14 @@
120 160 $grid = new WPUPG_Grid( $post );
121 161 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_premium_only.php' );
122 162 }
123 163
164 + public function meta_box_general( $post )
165 + {
166 + $grid = new WPUPG_Grid( $post );
167 + include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_general.php' );
168 + }
169 +
124 170 public function meta_box_data_source( $post )
125 171 {
126 172 $grid = new WPUPG_Grid( $post );
127 173 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source.php' );
@@ -126,8 +172,14 @@
126 172 $grid = new WPUPG_Grid( $post );
127 173 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source.php' );
128 174 }
129 175
176 + public function meta_box_data_source_terms( $post )
177 + {
178 + $grid = new WPUPG_Grid( $post );
179 + include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source_terms.php' );
180 + }
181 +
130 182 public function meta_box_limit_posts( $post )
131 183 {
132 184 $grid = new WPUPG_Grid( $post );
133 185 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_limit_posts.php' );
@@ -132,12 +184,24 @@
132 184 $grid = new WPUPG_Grid( $post );
133 185 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_limit_posts.php' );
134 186 }
135 187
188 + public function meta_box_limit_terms( $post )
189 + {
190 + $grid = new WPUPG_Grid( $post );
191 + include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_limit_terms.php' );
192 + }
193 +
136 194 public function meta_box_filter( $post )
137 195 {
138 196 $grid = new WPUPG_Grid( $post );
139 197 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_filter.php' );
198 + }
199 +
200 + public function meta_box_text_filter( $post )
201 + {
202 + $grid = new WPUPG_Grid( $post );
203 + include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_text_filter.php' );
140 204 }
141 205
142 206 public function meta_box_isotope_filter( $post )
143 207 {