| 1 |
<?php |
| 2 |
|
| 3 |
$group_general = array( |
| 4 |
'id' => 'general', |
| 5 |
'name' => __( 'General', 'wp-ultimate-post-grid' ), |
| 6 |
'icon' => 'cog', |
| 7 |
'subGroups' => array( |
| 8 |
array( |
| 9 |
'name' => __( 'Customize Link & Image', 'wp-ultimate-post-grid' ), |
| 10 |
'description' => __( 'You can set a custom link or image for every item in the grid by editing the individual post.', 'wp-ultimate-post-grid' ), |
| 11 |
'settings' => array( |
| 12 |
array( |
| 13 |
'id' => 'meta_box_post_types', |
| 14 |
'name' => __( 'Post Types', 'wp-ultimate-post-grid' ), |
| 15 |
'description' => __( 'Which post types do you want to enable this option for?', 'wp-ultimate-post-grid' ), |
| 16 |
'type' => 'dropdownMultiselect', |
| 17 |
'optionsCallback' => function() { return get_post_types( '', 'names' ); }, |
| 18 |
'default' => array( 'post', 'page' ), |
| 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 |
), |
| 40 |
), |
| 41 |
), |
| 42 |
), |
| 43 |
); |
| 44 |
|