Файл: content/themes/default/templates/ajax.comments.qcomment.tpl
Строк: 185
{if $method == "get"}
    
    <li>
        <div
class="qCommentContainer"
id="{$comment.ID}-{$post.PostType}-{$post.PostID}-{$comment.UserID}">
           
            <!-- Avatar -->
            <div
class="dataSideWrapper medium">
                <a
href="{$SITE_URL}/{$comment.UserName}"><img
src="{$SITE_URL}/{$comment.UserAvatarPath}" /></a>
    
       </div>
            <!-- Avatar -->
           
<div class="qCommentContentWrapper ml5">
               
                <!-- Buttons & UserName & Comment -->
    
           <div class="dataContent mb5">
                 
  
                    {if $userExist}
                        
        
               <!-- Buttons -->
                        <div
class="dataButtons hidden">
                           
<div class="right">
                                
    
                           {if $comment.UserID == $userArray.UserID}
     
                              <div title="Remove"
class="button-close doRemoveComment"></div>
           
                    {else}
                                    <div
title="Remove" class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
     
                              <div class="subMenu closeMenu"
id="{$comment.ID}-{$post.PostType}-{$post.PostID}-{$comment.UserID}">
                                       <ul>
                        
                   <li><span class="menuItem
doSpamComment">Mark as Spam</span></li>
              
                             <li><span class="menuItem
doReportComment">Report as Abuse</span></li>
         
                                  {if $userArray.UserGroup < 3}
       
                                        <li
class="moderator"></li>
                               
                <li><span class="menuItem
doRemoveComment">Delete this comment</span></li>
     
                                      {/if}
                              
         </ul>
                                    </div>
   
                            {/if}
                                
      
                     </div>
                        </div>
  
                     <!-- Buttons -->
                        
    
               {/if}
                    
                    <!--
User Name -->
                    <span class="relative
showHoverCard" id="{$comment.UserID}">
                 
      <strong><a
href="{$SITE_URL}/{$comment.UserName}">{$comment.UserFirstName}
{$comment.UserLastName}</a></strong>
                       
<!-- Hover Card -->
                        <div
class="hoverCardWrapper hidden"></div>
                
       <!-- Hover Card -->
                    </span>
      
             <!-- User Name -->
                    
              
     <!-- Comment -->
                   
<span>{$comment.Text}</span>
                    <!--
Comment -->
                    
                </div>
       
        <!-- Buttons & UserName & Comment -->
              
 
                <div class="dataContent gray">
        
           <span class="timeago"
data-time="{$comment.Time}"
title="{$comment.Time|date_format:"%A, %B %e, %Y at %I:%M
%p"}"></span>
                    {if $comment.Likes
> 0}
                        <span title="See people who like
this comment" class="uiInfoBox whoLikeComment"
id="{$comment.ID}" hits="{$comment.Likes}"><span
class="icon like"></span><span
class="text">{$comment.Likes}</span></span>
     
              {/if}
                    {if $comment.Dislikes > 0}
   
                    <span title="See people who dislike this
comment" class="uiInfoBox whoDislikeComment"
id="{$comment.ID}"
hits="{$comment.Dislikes}"><span class="icon
dislike"></span><span
class="text">{$comment.Dislikes}</span></span>
  
                 {/if}
                     · 
                    {if
$comment.liked == "Y"}
                        <span
title="Unike this comment" class="uiButtonText
doLikeComment" action="unlike">Unlike </span>
    
                   <span title="Dislike this comment"
class="uiButtonText doDislikeComment hidden"
action="dislike">· Dislike</span>
                   
{elseif $comment.liked == "N"}
                        <span
title="Like this comment" class="uiButtonText doLikeComment
hidden" action="like">Like </span>
               
        <span title="Undislike this comment"
class="uiButtonText doDislikeComment"
action="undislike">Undislike</span>
                   
{else}
                        <span title="Like this
comment" class="uiButtonText doLikeComment"
action="like">Like </span><span title="Dislike
this comment" class="uiButtonText doDislikeComment"
action="dislike">· Dislike</span>
                   
{/if}
                </div>
                
           
</div>
            
        </div>
    </li>
   
{elseif $method == "post"}
    
    <li>
       
<div class="qCommentContainer"
id="{$comment.ID}-{$post.PostType}-{$post.PostID}-{$userArray.UserID}">
           
            <!-- Avatar -->
            <div
class="dataSideWrapper medium">
                <a
href="{$SITE_URL}/{$userArray.UserName}"><img
src="{$SITE_URL}/{$userArray.UserAvatarPathSmall}"
/></a>
            </div>
            <!-- Avatar
-->
            
            <div
class="qCommentContentWrapper ml5">
                
       
        <!-- UserName & Buttons & Comment -->
              
 <div class="dataContent mb5">
                    
     
              <!-- Buttons -->
                    <div
class="dataButtons hidden">
                        <div
class="right">
                            <div
title="Remove" class="button-close
doRemoveComment"></div>
                       
</div>
                    </div>
                    <!--
Buttons -->
                    
                    <!-- User Name
-->
                    <span class="relative
showHoverCard" id="{$userArray.UserID}">
               
        <strong><a
href="{$SITE_URL}/{$userArray.UserName}">{$userArray.UserFirstName}
{$userArray.UserLastName}</a></strong>
                       
<!-- Hover Card -->
                        <div
class="hoverCardWrapper hidden"></div>
                
       <!-- Hover Card -->
                    </span>
      
             <!-- User Name -->
                    
              
     <!-- Comment -->
                   
<span>{$comment.Text}</span>
                    <!--
Comment -->
                    
                </div>
       
        <!-- UserName & Buttons & Comment -->
              
 
                <div class="dataContent gray">
        
           <span class="timeago"
data-time="{$comment.Time}"
title="{$comment.Time|date_format:"%A, %B %e, %Y at %I:%M
%p"}">{$comment.Time}</span> · <span
title="Like this comment" class="uiButtonText
doLikeComment" action="like">Like</span> ·
<span title="Dislike this comment" class="uiButtonText
doDislikeComment" action="dislike">Dislike</span>
               </div>
                
            </div>
  
         
        </div>
    </li>
    
{/if}