| @@ -4,9 +4,8 @@ | ||
| 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 ); | |
| 9 | 8 | add_action( 'admin_init', array( $this, 'add_meta_box_data_source' ), 12 ); |
| 10 | 9 | add_action( 'admin_init', array( $this, 'add_meta_box_filter' ), 14 ); |
| 11 | 10 | add_action( 'admin_init', array( $this, 'add_meta_box_grid' ), 16 ); |
| 12 | 11 | add_action( 'admin_init', array( $this, 'add_meta_box_pagination' ), 18 ); |
| @@ -34,20 +33,8 @@ | ||
| 34 | 33 | ); |
| 35 | 34 | } |
| 36 | 35 | } |
| 37 | 36 | |
| 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 | - | |
| 50 | 37 | public function add_meta_box_data_source() |
| 51 | 38 | { |
| 52 | 39 | add_meta_box( |
| 53 | 40 | 'wpupg_meta_box_data_source', |
| @@ -58,33 +45,15 @@ | ||
| 58 | 45 | 'high' |
| 59 | 46 | ); |
| 60 | 47 | |
| 61 | 48 | 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( | |
| 71 | 49 | 'wpupg_meta_box_limit_posts', |
| 72 | - __( 'Limit Items', 'wp-ultimate-post-grid' ), | |
| 50 | + __( 'Limit Posts', 'wp-ultimate-post-grid' ), | |
| 73 | 51 | array( $this, 'meta_box_limit_posts' ), |
| 74 | 52 | WPUPG_POST_TYPE, |
| 75 | 53 | 'normal', |
| 76 | 54 | 'high' |
| 77 | 55 | ); |
| 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 | - ); | |
| 87 | 56 | } |
| 88 | 57 | |
| 89 | 58 | public function add_meta_box_filter() |
| 90 | 59 | { |
| @@ -97,17 +66,8 @@ | ||
| 97 | 66 | 'high' |
| 98 | 67 | ); |
| 99 | 68 | |
| 100 | 69 | 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( | |
| 110 | 70 | 'wpupg_meta_box_isotope_filter', |
| 111 | 71 | __( 'Isotope Filter', 'wp-ultimate-post-grid' ), |
| 112 | 72 | array( $this, 'meta_box_isotope_filter' ), |
| 113 | 73 | WPUPG_POST_TYPE, |
| @@ -160,14 +120,8 @@ | ||
| 160 | 120 | $grid = new WPUPG_Grid( $post ); |
| 161 | 121 | include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_premium_only.php' ); |
| 162 | 122 | } |
| 163 | 123 | |
| 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 | - | |
| 170 | 124 | public function meta_box_data_source( $post ) |
| 171 | 125 | { |
| 172 | 126 | $grid = new WPUPG_Grid( $post ); |
| 173 | 127 | include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source.php' ); |
| @@ -172,14 +126,8 @@ | ||
| 172 | 126 | $grid = new WPUPG_Grid( $post ); |
| 173 | 127 | include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source.php' ); |
| 174 | 128 | } |
| 175 | 129 | |
| 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 | - | |
| 182 | 130 | public function meta_box_limit_posts( $post ) |
| 183 | 131 | { |
| 184 | 132 | $grid = new WPUPG_Grid( $post ); |
| 185 | 133 | include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_limit_posts.php' ); |
| @@ -184,24 +132,12 @@ | ||
| 184 | 132 | $grid = new WPUPG_Grid( $post ); |
| 185 | 133 | include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_limit_posts.php' ); |
| 186 | 134 | } |
| 187 | 135 | |
| 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 | - | |
| 194 | 136 | public function meta_box_filter( $post ) |
| 195 | 137 | { |
| 196 | 138 | $grid = new WPUPG_Grid( $post ); |
| 197 | 139 | 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' ); | |
| 204 | 140 | } |
| 205 | 141 | |
| 206 | 142 | public function meta_box_isotope_filter( $post ) |
| 207 | 143 | { |