Changeset 956140
- Timestamp:
- 07/28/2014 05:35:28 PM (12 years ago)
- Location:
- post-sorter
- Files:
-
- 1 added
- 3 edited
-
assets/screenshot-6.jpg (added)
-
trunk/page/general.php (modified) (1 diff)
-
trunk/post_sorter.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
post-sorter/trunk/page/general.php
r804473 r956140 20 20 <td> 21 21 <input name="post_sorter_enabled" id="post_sorter_enabled" type="checkbox" <?php checked( 1, get_option( 'post_sorter_enabled' ) )?> /> 22 <span class="hint"><?php _e( 'The plugin will only work on the client side, if it is enabled', 'post_sorter' ) ?></span> 22 <span class="hint"><?php _e( 'Enable sorting on the front-end', 'post_sorter' ) ?></span> 23 </td> 24 </tr> 25 26 <tr valign="top"> 27 <th scope="row"><label for="post_sorter_no_admin_sort"><?php _e( 'Disable Admin Sorting', 'post_sorter' ) ?></label>:</th> 28 <td> 29 <input name="post_sorter_no_admin_sort" id="post_sorter_no_admin_sort" type="checkbox" <?php checked( 1, get_option( 'post_sorter_no_admin_sort' ) )?> /> 30 <span class="hint"><?php _e( 'The plugin will not sort administrative post lists', 'post_sorter' ) ?></span> 23 31 </td> 24 32 </tr> -
post-sorter/trunk/post_sorter.php
r804473 r956140 4 4 Plugin URI: http://intellisys.org/ 5 5 Description: Plugin for easy sorting of posts and pages by numeric value, both ascending and descending. 6 Version: 1.4 6 Version: 1.4.1 7 7 Author: Lyubomir Gardev 8 8 Author URI: http://rolice.intellisys.info/ … … 77 77 public function activate() { 78 78 update_option( 'post_sorter_enabled', TRUE ); 79 update_option( 'post_sorter_no_admin_sort', FALSE ); 79 80 update_option( 'post_sorter_direction', 'ASC' ); 80 81 update_option( 'post_sorter_enabled_roles', array( 'administrator' ) ); … … 218 219 if ( !get_option( 'post_sorter_enabled' ) ) 219 220 return $sql; 221 222 if( get_option( 'post_sorter_no_admin_sort' ) && is_admin() ) 223 return $sql; 220 224 221 225 // If we have some hooks apply them - other plugins, etc. … … 241 245 // Plugin disabled - nothing to do 242 246 if ( !get_option('post_sorter_enabled') ) 247 return $sql; 248 249 if( get_option( 'post_sorter_no_admin_sort' ) && is_admin() ) 243 250 return $sql; 244 251 … … 367 374 368 375 update_option( 'post_sorter_enabled', isset( $_POST['post_sorter_enabled'] ) ); 376 update_option( 'post_sorter_no_admin_sort', isset( $_POST['post_sorter_no_admin_sort'] ) ); 369 377 update_option( 'post_sorter_direction', isset( $_POST['post_sorter_direction'] ) && mb_strtoupper( $_POST['post_sorter_direction'] ) == 'DESC' ? 'DESC' : '' ); 370 378 -
post-sorter/trunk/readme.txt
r956032 r956140 66 66 4. A screenshot of updated Post Sorter settings. 67 67 5. Permissions screen where you can authorize roles to operate with Post Sorter. 68 6. Screenshot of v1.4.1 settings - option to disable sorting inside the administrative lists added 68 69 69 70 == Changelog ==
Note: See TracChangeset
for help on using the changeset viewer.