Changeset 7498 for trunk/wp-admin/options-reading.php
- Timestamp:
- 03/24/2008 08:28:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-reading.php
r7343 r7498 58 58 </td> 59 59 </tr> 60 <tr valign="top"> 61 <th scope="row"><?php _e('Avatar display') ?></th> 62 <td> 63 <select name="show_avatars" id="show_avatars"> 64 <?php 65 $yesorno = array(0 => __("Don't show Avatars"), 1 => __('Show Avatars')); 66 foreach ( $yesorno as $key => $value) { 67 $selected = (get_option('show_avatars') == $key) ? 'selected="selected"' : ''; 68 echo "\n\t<option value='$key' $selected>$value</option>"; 69 } 70 ?> 71 </select> 72 </td> 73 </tr> 74 <tr valign="top"> 75 <th scope="row"><?php _e('Show Avatars with Rating') ?></th> 76 <td> 77 <select name="avatar_rating" id="avatar_rating"> 78 <?php 79 $ratings = array( 'G' => _c('G|rating'), 'PG' => _c('PG|Rating'), 'R' => _c('R|Rating'), 'X' => _c('X|Rating')); 80 foreach ($ratings as $key => $rating) : 81 $selected = (get_option('avatar_rating') == $key) ? 'selected="selected"' : ''; 82 echo "\n\t<option value='$key' $selected>$rating</option>"; 83 endforeach; 84 ?> 85 </select> 86 </td> 87 </tr> 60 88 61 <tr valign="top"> 89 62 <th scope="row"><?php _e('Encoding for pages and feeds') ?></th> … … 94 67 <p class="submit"> 95 68 <input type="hidden" name="action" value="update" /> 96 <input type="hidden" name="page_options" value="posts_per_page,posts_per_rss,rss_use_excerpt,blog_charset,gzipcompression,show_on_front,page_on_front,page_for_posts ,show_avatars,avatar_rating" />69 <input type="hidden" name="page_options" value="posts_per_page,posts_per_rss,rss_use_excerpt,blog_charset,gzipcompression,show_on_front,page_on_front,page_for_posts" /> 97 70 <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" /> 98 71 </p>
Note: See TracChangeset
for help on using the changeset viewer.