| @@ -16,8 +16,28 @@ | ||
| 16 | 16 | 'type' => 'dropdownMultiselect', |
| 17 | 17 | 'optionsCallback' => function() { return get_post_types( '', 'names' ); }, |
| 18 | 18 | 'default' => array( 'post', 'page' ), |
| 19 | 19 | ), |
| 20 | + array( | |
| 21 | + 'id' => 'meta_box_taxonomies', | |
| 22 | + 'name' => __( 'Taxonomies', 'wp-ultimate-post-grid' ), | |
| 23 | + 'description' => __( 'Which taxonomies do you want to enable this option for?', 'wp-ultimate-post-grid' ), | |
| 24 | + 'type' => 'dropdownMultiselect', | |
| 25 | + 'optionsCallback' => function() { return get_taxonomies( '', 'names' ); }, | |
| 26 | + 'default' => array( 'category', 'post_tag' ), | |
| 27 | + ), | |
| 28 | + ), | |
| 29 | + ), | |
| 30 | + array( | |
| 31 | + 'name' => __( 'Compatibility', 'wp-ultimate-post-grid' ), | |
| 32 | + 'settings' => array( | |
| 33 | + array( | |
| 34 | + 'id' => 'prevent_lazy_image_loading', | |
| 35 | + 'name' => __( 'Prevent Lazy Image Loading', 'wp-ultimate-post-grid' ), | |
| 36 | + 'description' => __( 'Enable to try to prevent lazy image loading for grid images, as that can mess with the grid layout.', 'wp-ultimate-post-grid' ), | |
| 37 | + 'type' => 'toggle', | |
| 38 | + 'default' => true, | |
| 39 | + ), | |
| 20 | 40 | ), |
| 21 | 41 | ), |
| 22 | 42 | ), |
| 23 | 43 | ); |