Make WordPress Core


Ignore:
Timestamp:
02/07/2008 06:07:12 AM (17 years ago)
Author:
ryan
Message:

get_avatar(). see #5775

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-reading.php

    r6475 r6748  
    7676</table>
    7777</fieldset>
     78
     79<fieldset class="options">
     80<legend><?php _e('Avatars') ?></legend>
     81<table class="niceblue">
     82<tr valign="top">
     83<th width="33%" scope="row"><?php _e('Show Avatars?') ?></th>
     84<td>
     85<select name="show_avatars" id="show_avatars">
     86<?php
     87    $yesorno = array(0 => __("Don't show Avatars"), 1 => __('Show Avatars'));
     88    foreach ( $yesorno as $key => $value) {
     89        $selected = (get_option('show_avatars') == $key) ? 'selected="selected"' : '';
     90        echo "\n\t<option value='$key' $selected>$value</option>";
     91    }
     92?>
     93</select>
     94</td>
     95</tr>
     96<tr valign="top">
     97<th width="33%" scope="row"><?php _e('Show Avatars with Rating:') ?></th>
     98<td>
     99<select name="avatar_rating" id="avatar_rating">
     100<?php
     101$ratings = array( 'G' => _c('G|rating'), 'PG' => _c('PG|Rating'), 'R' => _c('R|Rating'), 'X' => _c('X|Rating'));
     102foreach ($ratings as $key => $rating) :
     103    $selected = (get_option('avatar_rating') == $key) ? 'selected="selected"' : '';
     104    echo "\n\t<option value='$key' $selected>$rating</option>";
     105endforeach;
     106?>
     107</select>
     108</td>
     109</tr>
     110</table>
     111</fieldset>
     112
    78113<table class="niceblue">
    79114<tr valign="top">
     
    89124<p class="submit">
    90125<input type="hidden" name="action" value="update" />
    91 <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" />
     126<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" />
    92127<input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
    93128</p>
Note: See TracChangeset for help on using the changeset viewer.