clean up copy and pasted gravatar settings
This commit is contained in:
parent
968e46e637
commit
8dbb9d9a05
|
@ -119,9 +119,18 @@
|
|||
</tr>
|
||||
|
||||
<?php break;
|
||||
case "comicpress-enable_comic_post_author_gravatar": ?>
|
||||
case "comicpress-enable_comic_post_author_gravatar":
|
||||
case "comicpress-enable_post_author_gravatar":
|
||||
switch ($value['type']) {
|
||||
case "comicpress-enable_comic_post_author_gravatar":
|
||||
$label = __('Comic post author Gravatar?','comicpress');
|
||||
break;
|
||||
case "comicpress-enable_post_author_gravatar":
|
||||
$label = __('Blog post author Gravatar?','comicpress');
|
||||
break;
|
||||
} ?>
|
||||
<tr>
|
||||
<th scope="row"><strong><?php _e('Comic post author Gravatar?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this option will show a gravatar of the post author based on the author email address.','comicpress'); ?></th>
|
||||
<th scope="row"><strong><?php echo esc_html($label); ?></strong><br /><br /><?php _e('Enabling this option will show a gravatar of the post author based on the author email address.','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
|
||||
|
||||
|
@ -130,23 +139,8 @@
|
|||
<td valign="top">
|
||||
<?php _e('Gravatars are associated by your email address and you can create them at','comicpress'); ?> <a href="http://gravatar.com/">http://gravatar.com</a>. <?php _e('They are pictures of you, your cat of whatever you want to be your representation on your posts and comments.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php break;
|
||||
case "comicpress-enable_post_author_gravatar": ?>
|
||||
<tr>
|
||||
<th scope="row"><strong><?php _e('Blog post author Gravatar?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this option will show a gravatar of the post author based on the author email address.','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
|
||||
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<?php _e('Gravatars are associated by your email address and you can create them at','comicpress'); ?> <a href="http://gravatar.com/">http://gravatar.com</a>. <?php _e('They are pictures of you, your cat of whatever you want to be your representation on your posts and comments.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php break;
|
||||
</tr><?php
|
||||
break;
|
||||
case "comicpress-avatar_directory":
|
||||
$current_avatar_directory = get_option($value['id']);
|
||||
if (empty($current_avatar_directory)) $current_avatar_directory = 'default';
|
||||
|
|
Loading…
Reference in New Issue