| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | if( is_null( $grid ) ) $grid = new WPUPG_Grid(0); |
| 4 | 4 | $premium_only = WPUltimatePostGrid::is_premium_active() ? '' : ' (' . __( 'Premium only', 'wp-ultimate-post-grid' ) . ')'; |
| 5 | 5 | ?> |
| 6 | 6 | |
| 7 | +<input type="hidden" name="wpupg_nonce" value="<?php echo wp_create_nonce( 'grid' ); ?>" /> | |
| 7 | 8 | <table id="wpupg_form_data_source" class="wpupg_form"> |
| 8 | 9 | <tr> |
| 9 | 10 | <td><label for="wpupg_post_types"><?php _e( 'Post Types', 'wp-ultimate-post-grid' ); ?></label></td> |
| 10 | 11 | <td> |
| @@ -33,10 +34,8 @@ | ||
| 33 | 34 | $order_by_options = array( |
| 34 | 35 | 'title' => __( 'Title', 'wp-ultimate-post-grid' ), |
| 35 | 36 | 'date' => __( 'Date', 'wp-ultimate-post-grid' ), |
| 36 | 37 | 'rand' => __( 'Random', 'wp-ultimate-post-grid' ), |
| 37 | - 'menu_order' => __( 'Menu Order (pages)', 'wp-ultimate-post-grid' ), | |
| 38 | - 'custom' => __( 'Custom Key', 'wp-ultimate-post-grid' ) . $premium_only, | |
| 39 | 38 | ); |
| 40 | 39 | |
| 41 | 40 | foreach( $order_by_options as $order_by => $order_by_name ) { |
| 42 | 41 | $selected = $order_by == $grid->order_by() ? ' selected="selected"' : ''; |
| @@ -44,9 +43,9 @@ | ||
| 44 | 43 | } |
| 45 | 44 | ?> |
| 46 | 45 | </select> |
| 47 | 46 | </td> |
| 48 | - <td><?php _e( 'How to order the items in the grid.', 'wp-ultimate-post-grid' ); ?></td> | |
| 47 | + <td><?php _e( 'How to order the posts in the grid.', 'wp-ultimate-post-grid' ); ?></td> | |
| 49 | 48 | </tr> |
| 50 | 49 | <tr> |
| 51 | 50 | <td><label for="wpupg_order"><?php _e( 'Order', 'wp-ultimate-post-grid' ); ?></label></td> |
| 52 | 51 | <td> |
| @@ -65,48 +64,20 @@ | ||
| 65 | 64 | </select> |
| 66 | 65 | </td> |
| 67 | 66 | <td> </td> |
| 68 | 67 | </tr> |
| 69 | - <tr class="wpupg_order_custom_key_container"> | |
| 70 | - <td><label for="wpupg_order_custom_key"><?php _e( 'Custom Key', 'wp-ultimate-post-grid' ); ?></label></td> | |
| 71 | - <td> | |
| 72 | - <input type="text" name="wpupg_order_custom_key" id="wpupg_order_custom_key" value="<?php echo $grid->order_custom_key(); ?>"/> | |
| 73 | - </td> | |
| 74 | - <td><?php _e( 'Custom key to order the grid by.', 'wp-ultimate-post-grid' ); ?></td> | |
| 75 | - </tr> | |
| 76 | - <tr class="wpupg_order_custom_key_container"> | |
| 77 | - <td><label for="wpupg_order_custom_key_numeric"><?php _e( 'Numeric Order', 'wp-ultimate-post-grid' ); ?></label></td> | |
| 78 | - <td> | |
| 79 | - <input type="checkbox" name="wpupg_order_custom_key_numeric" id="wpupg_order_custom_key_numeric" <?php if( $grid->order_custom_key_numeric() ) echo 'checked="true" '?>/> | |
| 80 | - </td> | |
| 81 | - <td><?php _e( 'Enable if the custom field contains numbers.', 'wp-ultimate-post-grid' ); ?></td> | |
| 82 | - </tr> | |
| 83 | 68 | <tr class="wpupg_divider"> |
| 84 | 69 | <td><label for="wpupg_images_only"><?php _e( 'Images Only', 'wp-ultimate-post-grid' ); ?></label></td> |
| 85 | 70 | <td> |
| 86 | 71 | <input type="checkbox" name="wpupg_images_only" id="wpupg_images_only" <?php if( $grid->images_only() ) echo 'checked="true" '?>/> |
| 87 | 72 | </td> |
| 88 | - <td><?php _e( 'Only display items with a featured image.', 'wp-ultimate-post-grid' ); ?></td> | |
| 73 | + <td><?php _e( 'Only display posts with a featured image.', 'wp-ultimate-post-grid' ); ?></td> | |
| 89 | 74 | </tr> |
| 90 | 75 | <tr class="wpupg_divider"> |
| 91 | - <td><label for="wpupg_limit_posts_offset"><?php _e( 'Offset Items', 'wp-ultimate-post-grid' ); ?></label></td> | |
| 76 | + <td><label for="wpupg_limit_posts"><?php _e( 'Limit Posts', 'wp-ultimate-post-grid' ); ?></label></td> | |
| 92 | 77 | <td> |
| 93 | - <input type="number" name="wpupg_limit_posts_offset" id="wpupg_limit_posts_offset" value="<?php echo $grid->limit_posts_offset(); ?>"/> | |
| 94 | - </td> | |
| 95 | - <td><?php _e( 'Exclude the first x items from the grid.', 'wp-ultimate-post-grid' ); ?></td> | |
| 96 | - </tr> | |
| 97 | - <tr> | |
| 98 | - <td><label for="wpupg_limit_posts_number"><?php _e( 'Limit Total # Items', 'wp-ultimate-post-grid' ); ?></label></td> | |
| 99 | - <td> | |
| 100 | - <input type="number" min="1" name="wpupg_limit_posts_number" id="wpupg_limit_posts_number" value="<?php echo $grid->limit_posts_number(); ?>"/> | |
| 101 | - </td> | |
| 102 | - <td><?php _e( 'Limit the total number of items in the grid.', 'wp-ultimate-post-grid' ); ?></td> | |
| 103 | - </tr> | |
| 104 | - <tr> | |
| 105 | - <td><label for="wpupg_limit_posts"><?php _e( 'Limit Items', 'wp-ultimate-post-grid' ); ?></label></td> | |
| 106 | - <td> | |
| 107 | 78 | <input type="checkbox" name="wpupg_limit_posts" id="wpupg_limit_posts" <?php if( $grid->limit_posts() ) echo 'checked="true" '?>/> |
| 108 | 79 | <?php echo $premium_only; ?> |
| 109 | 80 | </td> |
| 110 | - <td><?php _e( 'Limit the items that will be shown in the grid.', 'wp-ultimate-post-grid' ); ?></td> | |
| 81 | + <td><?php _e( 'Limit the posts that will be shown in the grid.', 'wp-ultimate-post-grid' ); ?></td> | |
| 111 | 82 | </tr> |
| 112 | 83 | </table> |