Changeset 454273
- Timestamp:
- 10/22/2011 03:00:05 PM (14 years ago)
- Location:
- wp-super-settings/trunk
- Files:
-
- 1 added
- 2 edited
-
readme.txt (modified) (1 diff)
-
screenshot-1.gif (added)
-
wp-super-settings.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-super-settings/trunk/readme.txt
r452309 r454273 34 34 35 35 == Screenshots == 36 1. WP Super Settings 36 37 37 38 == Changelog == -
wp-super-settings/trunk/wp-super-settings.php
r452309 r454273 16 16 } 17 17 18 19 18 add_action('admin_menu', 'wpss_menu_init'); 20 19 function wpss_menu_init() 21 20 { 22 add_options_page('WP Super Settings', 'WP Super Settings', 'manage_options', 'wpss_menu', 'wpss_options_page'); 21 add_options_page('WP Super Settings', 22 'WP Super Settings', 23 'manage_options', 24 'wpss_menu', 25 'wpss_options_page'); 23 26 } 24 25 27 26 28 function wpss_options_page() 27 29 { 28 29 30 ?> 30 31 31 <div class="wrap"> 32 32 <?php screen_icon( 'options-general' ); ?> 33 <h2> WP Super Settings</h2>33 <h2>WP Super Settings</h2> 34 34 <form action="options.php" method="POST"> 35 35 <?php settings_fields('wpss_option_group'); ?> … … 40 40 <th>Settings </th> 41 41 <th>Option</th> 42 <th width=50%>Description</th> 42 43 </tr> 43 44 </thead> … … 46 47 <th>Settings </th> 47 48 <th>Option</th> 49 <th width=50%>Description</th> 48 50 </tr> 49 51 </tfoot> … … 51 53 <tr> 52 54 <th scope="row">Revisions</th> 53 <td><input type="radio" name=" wpss_options[save_revisions]" value="enable" <?php checked('enable', $options['save_revisions']); ?> />55 <td><input type="radio" name=" " value="enable" <?php checked('enable', $options['save_revisions']); ?> /> 54 56 Enable<br> 55 57 <input type="radio" name="wpss_options[save_revisions]" value="disable" <?php checked('disable', $options['save_revisions']); ?> /> 56 58 Disable </td> 59 <td>Enable/Disable Post Revisions</td> 57 60 </tr> 58 61 <tr> … … 62 65 <input type="radio" name="wpss_options[auto_save]" value="disable" <?php checked('disable', $options['auto_save']); ?> /> 63 66 Disable </td> 67 <td>Enable/Disable Post Auto Save</td> 64 68 </tr> 65 69 <tr> … … 69 73 <input type="radio" name="wpss_options[admin_bar]" value="hide" <?php checked('hide', $options['admin_bar']); ?> /> 70 74 Hide </td> 75 <td>Show/Hide Admin Bar</td> 71 76 </tr> 72 77 <tr> … … 76 81 <input type="radio" name="wpss_options[embed_post]" value="disable" <?php checked('disable', $options['embed_post']); ?> /> 77 82 Disable </td> 83 <td>Enable/Disable Embed_Post shortcode</td> 78 84 </tr> 79 85 </tbody> … … 86 92 <?php 87 93 } 88 89 94 90 95 add_action( 'wp_print_scripts', 'wpss_auto_save_setting' ); … … 116 121 add_action('plugins_loaded', 'wpss_other_settings'); 117 122 118 119 123 function wpss_other_settings() 120 124 { 121 125 122 126 $options = get_option('wpss_options'); 123 124 127 125 128 if( $options['save_revisions'] == "disable" ) … … 132 135 add_shortcode ('Embed_Post', 'embed_post'); 133 136 } 134 137 135 138 } 136 139
Note: See TracChangeset
for help on using the changeset viewer.