Skip to content

Commit

Permalink
fix 'flag inappropriate' button appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmj committed Jan 24, 2014
1 parent 69e4eb0 commit 0bda6e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/public/comment.php
@@ -1,5 +1,5 @@
<div class='comment-author'>
<?php
<?php
if(!empty($comment->author_name)) {
if(empty($comment->author_url)) {
$authorText = $comment->author_name;
Expand All @@ -8,10 +8,10 @@
}
} else {
$authorText = __("Anonymous");
}
}
?>
<p class='comment-author-name'><?php echo $authorText?></p>
<?php
<?php
$hash = md5(strtolower(trim($comment->author_email)));
$url = "http://www.gravatar.com/avatar/$hash";
echo "<img class='gravatar' src='$url' />";
Expand All @@ -20,6 +20,6 @@
<div class='comment-body <?php if($comment->flagged):?>comment-flagged<?php endif;?> '><?php echo $comment->body; ?></div>
<?php if(is_allowed('Commenting_Comment', 'unflag')): ?>
<p class='comment-flag' <?php if($comment->flagged): ?> style='display:none;'<?php endif;?> ><?php echo __("Flag inappropriate"); ?></p>
<p class='comment-unflag' <?php if(!$comment->flagged): ?>style='display:none;'<?php endif;?> ><?php __("Unflag inappropriate"); ?></p>
<p class='comment-unflag' <?php if(!$comment->flagged): ?>style='display:none;'<?php endif;?> ><?php echo __("Unflag inappropriate"); ?></p>
<?php endif; ?>
<p class='comment-reply'><?php echo __("Reply"); ?></p>

0 comments on commit 0bda6e1

Please sign in to comment.