Plugin Directory

Changeset 454273


Ignore:
Timestamp:
10/22/2011 03:00:05 PM (14 years ago)
Author:
aspatti
Message:

screenshot-1.gif added

Location:
wp-super-settings/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-super-settings/trunk/readme.txt

    r452309 r454273  
    3434
    3535== Screenshots ==
     361. WP Super Settings
    3637
    3738== Changelog ==
  • wp-super-settings/trunk/wp-super-settings.php

    r452309 r454273  
    1616}
    1717
    18 
    1918add_action('admin_menu', 'wpss_menu_init');
    2019function wpss_menu_init()
    2120{
    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');
    2326}
    24 
    2527
    2628function wpss_options_page()
    2729{
    28 
    2930?>
    30 
    3131<div class="wrap">
    3232  <?php screen_icon( 'options-general' ); ?>
    33   <h2> WP Super Settings</h2>
     33  <h2>WP Super Settings</h2>
    3434  <form action="options.php" method="POST">
    3535    <?php settings_fields('wpss_option_group'); ?>
     
    4040          <th>Settings </th>
    4141          <th>Option</th>
     42                    <th width=50%>Description</th>
    4243        </tr>
    4344      </thead>
     
    4647          <th>Settings </th>
    4748          <th>Option</th>
     49                    <th width=50%>Description</th>
    4850        </tr>
    4951      </tfoot>
     
    5153        <tr>
    5254          <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']); ?> />
    5456            Enable<br>
    5557            <input type="radio" name="wpss_options[save_revisions]" value="disable" <?php checked('disable', $options['save_revisions']); ?> />
    5658            Disable </td>
     59                        <td>Enable/Disable Post Revisions</td>
    5760        </tr>
    5861        <tr>
     
    6265            <input type="radio" name="wpss_options[auto_save]" value="disable" <?php checked('disable', $options['auto_save']); ?> />
    6366            Disable </td>
     67                        <td>Enable/Disable Post Auto Save</td>
    6468        </tr>
    6569        <tr>
     
    6973            <input type="radio" name="wpss_options[admin_bar]" value="hide" <?php checked('hide', $options['admin_bar']); ?> />
    7074            Hide </td>
     75                        <td>Show/Hide Admin Bar</td>
    7176        </tr>
    7277        <tr>
     
    7681            <input type="radio" name="wpss_options[embed_post]" value="disable" <?php checked('disable', $options['embed_post']); ?> />
    7782            Disable </td>
     83                        <td>Enable/Disable Embed_Post shortcode</td>
    7884        </tr>
    7985      </tbody>
     
    8692<?php
    8793}
    88 
    8994
    9095add_action( 'wp_print_scripts', 'wpss_auto_save_setting' );
     
    116121add_action('plugins_loaded', 'wpss_other_settings');
    117122
    118 
    119123function wpss_other_settings()
    120124{
    121125
    122126    $options = get_option('wpss_options');
    123    
    124127   
    125128    if( $options['save_revisions'] == "disable" )
     
    132135        add_shortcode ('Embed_Post', 'embed_post');
    133136    }
    134        
     137
    135138}
    136139
Note: See TracChangeset for help on using the changeset viewer.