wp-smushit
Last commit date
JSON
16 years ago
license.txt
16 years ago
options.php
16 years ago
readme.txt
16 years ago
screenshot-1.jpg
16 years ago
theme.php
16 years ago
wp-smushit.php
16 years ago
options.php
33 lines
| 1 | <?php |
| 2 | $wp_smushit_gif_to_png = intval(get_option('wp_smushit_gif_to_png')); |
| 3 | ?> |
| 4 | <div class="wrap"> |
| 5 | <h2>WP Smush.it</h2> |
| 6 | <form method="post" action="options.php"> |
| 7 | <input type="hidden" name="action" value="update" /> |
| 8 | <input type="hidden" name="page_options" value="wp_smushit_gif_to_png" /> |
| 9 | <?php wp_nonce_field('update-options'); ?> |
| 10 | <table class="form-table"> |
| 11 | <tr valign="top"> |
| 12 | <th scope="row"><?php _e('When Smush.it suggests converting a GIF to a PNG file…', WP_SMUSHIT_DOMAIN); ?></th> |
| 13 | <td> |
| 14 | <select name="wp_smushit_gif_to_png" id="wp_smushit_gif_to_png"> |
| 15 | <option value="1"<?php echo $wp_smushit_gif_to_png == 1 ? ' selected="selected"' : ''; ?>><?php _e('Overwrite the GIF with a PNG', WP_SMUSHIT_DOMAIN); ?></option> |
| 16 | <option value="0"<?php echo $wp_smushit_gif_to_png == 0 ? ' selected="selected"' : ''; ?>><?php _e('Leave the GIF alone', WP_SMUSHIT_DOMAIN); ?></option> |
| 17 | </select> |
| 18 | </td> |
| 19 | </tr> |
| 20 | </table> |
| 21 | <p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" /></p> |
| 22 | |
| 23 | <?php |
| 24 | //echo get_template_directory() .'/style.css'; |
| 25 | //$theme_data = get_theme_data( get_template_directory() .'/style.css'); |
| 26 | //var_dump($theme_data); |
| 27 | ?> |
| 28 | |
| 29 | <!--<p><a href="admin.php?action=wp_smushit_theme&theme=<?php echo urlencode(get_template_directory()); ?>">Smush current theme</a> (<code><?php echo get_current_theme(); ?></code>)</p>--> |
| 30 | |
| 31 | |
| 32 | </form> |
| 33 | </div> |