| @@ -1,15 +1,15 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: WP Ultimate Post Grid |
| 4 | 4 | Plugin URI: http://bootstrapped.ventures/wp-ultimate-post-grid/ |
| 5 | -Description: Easily create filterable grids for any of your posts, pages or custom post types | |
| 6 | -Version: 1.6 | |
| 5 | +Description: Easily create filterable responsive grids for your posts, pages or custom post types | |
| 6 | +Version: 2.4.0 | |
| 7 | 7 | Author: Bootstrapped Ventures |
| 8 | 8 | Author URI: http://bootstrapped.ventures |
| 9 | 9 | License: GPLv3 |
| 10 | 10 | */ |
| 11 | -define( 'WPUPG_VERSION', '1.6' ); | |
| 11 | +define( 'WPUPG_VERSION', '2.4.0' ); | |
| 12 | 12 | define( 'WPUPG_POST_TYPE', 'wpupg_grid' ); |
| 13 | 13 | |
| 14 | 14 | class WPUltimatePostGrid { |
| 15 | 15 | |
| @@ -126,14 +126,17 @@ | ||
| 126 | 126 | $this->helper( 'ajax' ); |
| 127 | 127 | $this->helper( 'content' ); |
| 128 | 128 | $this->helper( 'css' ); |
| 129 | 129 | $this->helper( 'faq' ); |
| 130 | + $this->helper( 'giveaway' ); | |
| 130 | 131 | $this->helper( 'grid_cache' ); |
| 131 | 132 | $this->helper( 'grid_save' ); |
| 132 | 133 | $this->helper( 'meta_box' ); |
| 134 | + $this->helper( 'meta_box_post' ); | |
| 133 | 135 | $this->helper( 'notices' ); |
| 134 | 136 | $this->helper( 'pagination' ); |
| 135 | 137 | $this->helper( 'plugin_action_link' ); |
| 138 | + $this->helper( 'post_save' ); | |
| 136 | 139 | $this->helper( 'post_type' ); |
| 137 | 140 | $this->helper( 'support_tab' ); |
| 138 | 141 | $this->helper( 'vafpress_menu' ); |
| 139 | 142 | $this->helper( 'vafpress_shortcode' ); |
| @@ -212,8 +215,15 @@ | ||
| 212 | 215 | |
| 213 | 216 | public function template( $template ) |
| 214 | 217 | { |
| 215 | 218 | return $this->addon( 'custom-templates' )->get_template( $template ); |
| 219 | + } | |
| 220 | +} | |
| 221 | + | |
| 222 | +// Backward compatibility for older versions of WordPress | |
| 223 | +if( !function_exists( 'get_term_meta' ) ) { | |
| 224 | + function get_term_meta ( $term_id = 0, $key = '', $single = false ) { | |
| 225 | + return ''; | |
| 216 | 226 | } |
| 217 | 227 | } |
| 218 | 228 | |
| 219 | 229 | // Premium version is responsible for instantiating if available |