mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
get_avatar(). see #5775
git-svn-id: https://develop.svn.wordpress.org/trunk@6748 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -235,6 +235,10 @@ function populate_options() {
|
||||
// 2.2
|
||||
add_option('tag_base');
|
||||
|
||||
// 2.5
|
||||
add_option('show_avatars', '1');
|
||||
add_option('avatar_rating', 'G');
|
||||
|
||||
// Delete unused options
|
||||
$unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'new_users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing');
|
||||
foreach ($unusedoptions as $option) :
|
||||
|
||||
@@ -75,6 +75,41 @@ include('admin-header.php');
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="options">
|
||||
<legend><?php _e('Avatars') ?></legend>
|
||||
<table class="niceblue">
|
||||
<tr valign="top">
|
||||
<th width="33%" scope="row"><?php _e('Show Avatars?') ?></th>
|
||||
<td>
|
||||
<select name="show_avatars" id="show_avatars">
|
||||
<?php
|
||||
$yesorno = array(0 => __("Don't show Avatars"), 1 => __('Show Avatars'));
|
||||
foreach ( $yesorno as $key => $value) {
|
||||
$selected = (get_option('show_avatars') == $key) ? 'selected="selected"' : '';
|
||||
echo "\n\t<option value='$key' $selected>$value</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<th width="33%" scope="row"><?php _e('Show Avatars with Rating:') ?></th>
|
||||
<td>
|
||||
<select name="avatar_rating" id="avatar_rating">
|
||||
<?php
|
||||
$ratings = array( 'G' => _c('G|rating'), 'PG' => _c('PG|Rating'), 'R' => _c('R|Rating'), 'X' => _c('X|Rating'));
|
||||
foreach ($ratings as $key => $rating) :
|
||||
$selected = (get_option('avatar_rating') == $key) ? 'selected="selected"' : '';
|
||||
echo "\n\t<option value='$key' $selected>$rating</option>";
|
||||
endforeach;
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<table class="niceblue">
|
||||
<tr valign="top">
|
||||
<th width="33%" scope="row"><?php _e('Encoding for pages and feeds:') ?></th>
|
||||
@@ -88,7 +123,7 @@ include('admin-header.php');
|
||||
</p>
|
||||
<p class="submit">
|
||||
<input type="hidden" name="action" value="update" />
|
||||
<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" />
|
||||
<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" />
|
||||
<input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user