[pLog-svn] r5298 - plog/branches/lifetype-1.2/templates/summary

oscar at devel.lifetype.net oscar at devel.lifetype.net
Tue Apr 10 15:53:15 EDT 2007


Author: oscar
Date: 2007-04-10 15:53:15 -0400 (Tue, 10 Apr 2007)
New Revision: 5298

Modified:
   plog/branches/lifetype-1.2/templates/summary/blog.template
   plog/branches/lifetype-1.2/templates/summary/post.template
   plog/branches/lifetype-1.2/templates/summary/user.template
Log:
fixed issue http://bugs.lifetype.net/view.php?id=1270 -- inconsistent markup tags for the user picture in the summary templates


Modified: plog/branches/lifetype-1.2/templates/summary/blog.template
===================================================================
--- plog/branches/lifetype-1.2/templates/summary/blog.template	2007-04-10 19:02:12 UTC (rev 5297)
+++ plog/branches/lifetype-1.2/templates/summary/blog.template	2007-04-10 19:53:15 UTC (rev 5298)
@@ -6,10 +6,9 @@
    
                       {if $owner->hasPicture()}
 	{assign var=picture value=$owner->getPicture()}
-	<div style="border:solid #cccccc 1px;width:58px;height:58px;background:url({$picture->getPreviewLink()}) no-repeat center" class="postgrav">&nbsp;</div>
+	     <img src="{$picture->getPreviewLink()}"  width="60" height="60" class="postgrav" />
     {else}
-        <img src="templates/summary/nouser.gif" class="postgrav" width="60" height="60" alt="{$owner->getUsername()|strip_tags}" />
-	
+        <img src="templates/summary/nouser.gif" class="postgrav" width="60" height="60" alt="{$owner->getUsername()|strip_tags}" />	
     {/if} 
     <h3>
 	 <a href="{$request->blogLink()}">{$blog->getBlog()|strip_tags}</a>

Modified: plog/branches/lifetype-1.2/templates/summary/post.template
===================================================================
--- plog/branches/lifetype-1.2/templates/summary/post.template	2007-04-10 19:02:12 UTC (rev 5297)
+++ plog/branches/lifetype-1.2/templates/summary/post.template	2007-04-10 19:53:15 UTC (rev 5298)
@@ -7,10 +7,9 @@
 	
     {if $postOwner->hasPicture()}
 	{assign var=picture value=$postOwner->getPicture()}
-	<div style="border:solid #cccccc 1px;width:58px;height:58px;background:url({$request->resourcePreviewLink($picture)}) no-repeat center" class="postgrav">&nbsp;</div>
+	<img src="{$picture->getPreviewLink()}"  width="60" height="60" class="postgrav" />
     {else}
-        <img src="templates/summary/nouser.gif" class="postgrav" width="60" height="60" alt="{$postOwner->getUsername()|strip_tags}" />
-	
+    <img src="templates/summary/nouser.gif" class="postgrav" width="60" height="60" alt="{$postOwner->getUsername()|strip_tags}" />	
     {/if}    
     <h3>
     	<a href="{$request->postPermalink($post)}">{$post->getTopic()|strip_tags|truncate:60}</a>

Modified: plog/branches/lifetype-1.2/templates/summary/user.template
===================================================================
--- plog/branches/lifetype-1.2/templates/summary/user.template	2007-04-10 19:02:12 UTC (rev 5297)
+++ plog/branches/lifetype-1.2/templates/summary/user.template	2007-04-10 19:53:15 UTC (rev 5298)
@@ -1,9 +1,8 @@
        {if $user->hasPicture()}
 	{assign var=picture value=$user->getPicture()}
-	<div style="border:solid #cccccc 1px;width:58px;height:58px;background:url({$picture->getPreviewLink()}) no-repeat center" class="postgrav">&nbsp;</div>
+	     <img src="{$picture->getPreviewLink()}"  width="60" height="60" class="postgrav" />
     {else}
-        <img src="templates/summary/nouser.gif" class="postgrav" width="60" height="60" alt="{$user->getUsername()|strip_tags}" />
-	
+        <img src="templates/summary/nouser.gif" class="postgrav" width="60" height="60" alt="{$user->getUsername()|strip_tags}" />	
     {/if} 
 
         <h3><a href="?op=UserProfile&amp;userId={$user->getId()}">{$user->getUsername()}</a></h3>



More information about the pLog-svn mailing list