Permalink
Browse files

Added support for smartified garavatars including a JS fix.

  • Loading branch information...
1 parent 84922fb commit 646e093fac7dddd3e5b313692eba943b8bf87797 @yellowled committed Jan 20, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −0 comments.tpl
  2. +1 −1 info.txt
  3. +2 −0 js/2k11.js
  4. +1 −0 style.css
View
@@ -3,6 +3,7 @@
<h4>{if $comment.url}<a href="{$comment.url}">{/if}{$comment.author|@default:$CONST.ANONYMOUS}{if $comment.url}</a>{/if} {$CONST.ON} <time datetime="{$comment.timestamp|@serendipity_smarty_html5time}" pubdate>{$comment.timestamp|@formatTime:$template_option.date_format}</time>:</h4>
<div class="serendipity_commentBody clearfix content">
+ {if $comment.avatar}{$comment.avatar}{/if}
{if $comment.body == 'COMMENT_DELETED'}
{$CONST.COMMENT_IS_DELETED}
{else}
View
@@ -1,4 +1,4 @@
Name: 2k11
Author: Matthias Mees, Veit Lehmann
-Date: 2012-01-06
+Date: 2012-01-20
Require Serendipity: 1.6
View
@@ -21,6 +21,8 @@ jQuery(document).ready(function($) {
$('.serendipity_entrypaging_right .epicon').text('');
// Disable trackback + short url links
$('#trackback_url>a,.short-url').click(function(){var linkMsg=$(this).attr('title');alert(linkMsg);return false;});
+ // Fix non-smarty gravatar w/ float right
+ $(".comment_avatar").each(function(){test=$(this).css("float");if(test=="right"){$(this).css("margin","0 0 .625em .625em")}});
// Comment reply
$('.comment_reply').click(function(){var commentId=$(this).attr('id').replace(/serendipity_reply_/g,"");$('#serendipity_replyTo').val(commentId);});
// Confirm comment deletion
View
@@ -561,6 +561,7 @@ pre .geshi {
.comment_avatar {
border: 1px solid #aaa;
+ float: left;
margin: 0 .625em .625em 0;
padding: 0!important;
overflow: hidden;

0 comments on commit 646e093

Please sign in to comment.