| @@ -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.7 | |
| 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.7' ); | |
| 11 | +define( 'WPUPG_VERSION', '2.4.0' ); | |
| 12 | 12 | define( 'WPUPG_POST_TYPE', 'wpupg_grid' ); |
| 13 | 13 | |
| 14 | 14 | class WPUltimatePostGrid { |
| 15 | 15 | |
| @@ -126,8 +126,9 @@ | ||
| 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' ); |
| 133 | 134 | $this->helper( 'meta_box_post' ); |
| @@ -214,8 +215,15 @@ | ||
| 214 | 215 | |
| 215 | 216 | public function template( $template ) |
| 216 | 217 | { |
| 217 | 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 ''; | |
| 218 | 226 | } |
| 219 | 227 | } |
| 220 | 228 | |
| 221 | 229 | // Premium version is responsible for instantiating if available |