Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Output settings page
- *
- * @access public
- * @return mixed HTML Output
- */
- public function render_admin_menu() {
- // Save settings
- if (isset($_POST['ss_settings_nonce']) && wp_verify_nonce($_POST['ss_settings_nonce'], 'ss_settings')) {
- update_option('ss_settings', $_POST['ss_settings']);
- echo '<div id="message" class="updated fade"><p><strong>Settings saved.</strong></p></div>';
- }
- ?>
- <div class="wrap">
- <h2>Slide Sync Options</h2>
- <form id="ss-settings" action="" method="post">
- <?php wp_nonce_field('ss_settings', 'ss_settings_nonce'); ?>
- <?php $settings = get_option( 'ss_settings', array() ); ?>
- <input type="hidden" name="action" value="update">
- <h4>Display Settings</h4>
- <table class="form-table">
- <tbody>
- <tr valign="top">
- <th scope="row">
- Show slider ribbon
- </th>
- <td>
- <input type="checkbox" id="show_ribbon" class="form-control" name="ss_settings[show_ribbon]" value="1" <?php checked($settings['show_ribbon']); ?>>
- <label for="show_ribbon">Show a ribbon of slide thumbnails beneath the slider</label>
- </td>
- </tr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement