PluginProbe
WP Ultimate Post Grid / 2.0
WP Ultimate Post Grid v2.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 +35 -1 1.9 → 2.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,10 +58,19 @@
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'
@@ -120,12 +142,24 @@
120 142 $grid = new WPUPG_Grid( $post );
121 143 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_premium_only.php' );
122 144 }
123 145
146 + public function meta_box_general( $post )
147 + {
148 + $grid = new WPUPG_Grid( $post );
149 + include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_general.php' );
150 + }
151 +
124 152 public function meta_box_data_source( $post )
125 153 {
126 154 $grid = new WPUPG_Grid( $post );
127 155 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source.php' );
156 + }
157 +
158 + public function meta_box_data_source_terms( $post )
159 + {
160 + $grid = new WPUPG_Grid( $post );
161 + include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source_terms.php' );
128 162 }
129 163
130 164 public function meta_box_limit_posts( $post )
131 165 {