PluginProbe
WP Ultimate Post Grid / 4.0.1
WP Ultimate Post Grid v4.0.1
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / templates / settings / group-general.php

group-general.php in WP Ultimate Post Grid 4.0.1, at templates/settings/group-general.php

55 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 array(
29 'id' => 'default_custom_link_nofollow',
30 'name' => __( 'Default Nofollow Attribute', 'wp-ultimate-post-grid' ),
31 'description' => __( 'Default for the nofollow attribute for custom links.', 'wp-ultimate-post-grid' ),
32 'type' => 'dropdown',
33 'options' => array(
34 'dofollow' => __( 'Use a regular dofollow link', 'wp-ultimate-post-grid' ),
35 'nofollow' => __( 'Add the rel="nofollow" attribute', 'wp-ultimate-post-grid' ),
36 ),
37 'default' => 'dofollow',
38 ),
39 ),
40 ),
41 array(
42 'name' => __( 'Compatibility', 'wp-ultimate-post-grid' ),
43 'settings' => array(
44 array(
45 'id' => 'prevent_lazy_image_loading',
46 'name' => __( 'Prevent Lazy Image Loading', 'wp-ultimate-post-grid' ),
47 'description' => __( 'Enable to try to prevent lazy image loading for grid images, as that can mess with the grid layout.', 'wp-ultimate-post-grid' ),
48 'type' => 'toggle',
49 'default' => true,
50 ),
51 ),
52 ),
53 ),
54 );
55