[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 {*<!-- 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 -->*} 12 {strip} 13 <div class="commentDiv"> 14 <div class="singleComment"> 15 <div class="commentInfoHeader row-fluid" data-commentid="{$COMMENT->getId()}" data-parentcommentid="{$COMMENT->get('parent_comments')}"> 16 <div class="commentTitle" id="{$COMMENT->getId()}"> 17 {assign var=PARENT_COMMENT_MODEL value=$COMMENT->getParentCommentModel()} 18 {assign var=CHILD_COMMENTS_MODEL value=$COMMENT->getChildComments()} 19 <div class="row-fluid"> 20 <div class="span1"> 21 {assign var=IMAGE_PATH value=$COMMENT->getImagePath()} 22 <img class="alignMiddle pull-left" src="{if !empty($IMAGE_PATH)}{$IMAGE_PATH}{else}{vimage_path('DefaultUserIcon.png')}{/if}"> 23 </div> 24 <div class="span11 commentorInfo"> 25 {assign var=COMMENTOR value=$COMMENT->getCommentedByModel()} 26 <div class="inner"> 27 <span class="commentorName pull-left"><strong>{$COMMENTOR->getName()}</strong></span> 28 <span class="pull-right"> 29 <p class="muted"><small title="{Vtiger_Util_Helper::formatDateTimeIntoDayString($COMMENT->getCommentedTime())}">{Vtiger_Util_Helper::formatDateDiffInStrings($COMMENT->getCommentedTime())}</small></p> 30 </span> 31 <div class="clearfix"></div> 32 </div> 33 <div class="commentInfoContent"> 34 {nl2br($COMMENT->get('commentcontent'))} 35 </div> 36 </div> 37 </div> 38 </div> 39 </div> 40 <div class="row-fluid commentActionsContainer"> 41 42 {assign var="REASON_TO_EDIT" value=$COMMENT->get('reasontoedit')} 43 <div class="row-fluid editedStatus" name="editStatus"> 44 <div class="row-fluid"> 45 <span class="{if empty($REASON_TO_EDIT)}hide{/if} span6 editReason"> 46 <p><small>[ {vtranslate('LBL_EDIT_REASON',$MODULE_NAME)} ] : <span name="editReason" class="textOverflowEllipsis">{nl2br($REASON_TO_EDIT)}</span></small></p> 47 </span> 48 {if $COMMENT->getCommentedTime() neq $COMMENT->getModifiedTime()} 49 <span class="{if empty($REASON_TO_EDIT)}row-fluid{else} span6{/if}"> 50 <span class="pull-right"> 51 <p class="muted"><small><em>{vtranslate('LBL_MODIFIED',$MODULE_NAME)}</em></small> <small title="{Vtiger_Util_Helper::formatDateTimeIntoDayString($COMMENT->getModifiedTime())}" class="commentModifiedTime">{Vtiger_Util_Helper::formatDateDiffInStrings($COMMENT->getModifiedTime())}</small></p> 52 </span> 53 </span> 54 {/if} 55 </div> 56 </div> 57 <div class="row-fluid commentActionsDiv"> 58 {assign var=COMMENTS_MODULE_MODEL value = Vtiger_Module_Model::getInstance('ModComments')} 59 <div class="pull-right commentActions"> 60 {if $CHILDS_ROOT_PARENT_MODEL} 61 {assign var=CHILDS_ROOT_PARENT_ID value=$CHILDS_ROOT_PARENT_MODEL->getId()} 62 {/if} 63 {if $COMMENTS_MODULE_MODEL->isPermitted('EditView')} 64 <span> 65 <a class="cursorPointer replyComment"><i class="icon-share-alt"></i>{vtranslate('LBL_REPLY',$MODULE_NAME)}</a> 66 {if $CURRENTUSER->getId() eq $COMMENT->get('userid')} 67 <span style="color:black">|</span> 68 <a class="cursorPointer editComment feedback"> 69 {vtranslate('LBL_EDIT',$MODULE_NAME)} 70 </a> 71 {/if} 72 </span> 73 {/if} 74 {assign var=CHILD_COMMENTS_COUNT value=$COMMENT->getChildCommentsCount()} 75 {if $CHILD_COMMENTS_MODEL neq null and ($CHILDS_ROOT_PARENT_ID neq $PARENT_COMMENT_ID)} 76 {if $COMMENTS_MODULE_MODEL->isPermitted('EditView')} <span style="color:black">|</span> {/if} 77 <span class="viewThreadBlock" data-child-comments-count="{$CHILD_COMMENTS_COUNT}"> 78 <a class="cursorPointer viewThread"> 79 <span class="childCommentsCount">{$CHILD_COMMENTS_COUNT}</span> {if $CHILD_COMMENTS_COUNT eq 1}{vtranslate('LBL_REPLY',$MODULE_NAME)}{else}{vtranslate('LBL_REPLIES',$MODULE_NAME)}{/if} 80 <img class="alignMiddle" src="{vimage_path('rightArrowSmall.png')}" /> 81 </a> 82 </span> 83 <span class="hide hideThreadBlock" data-child-comments-count="{$CHILD_COMMENTS_COUNT}"> 84 <a class="cursorPointer hideThread"> 85 <span class="childCommentsCount">{$CHILD_COMMENTS_COUNT}</span> {if $CHILD_COMMENTS_COUNT eq 1}{vtranslate('LBL_REPLY',$MODULE_NAME)}{else}{vtranslate('LBL_REPLIES',$MODULE_NAME)}{/if} 86 <img class="alignMiddle" src="{vimage_path('downArrowSmall.png')}" /> 87 </a> 88 </span> 89 90 {elseif $CHILD_COMMENTS_MODEL neq null and ($CHILDS_ROOT_PARENT_ID eq $PARENT_COMMENT_ID)} 91 {if $COMMENTS_MODULE_MODEL->isPermitted('EditView')} <span style="color:black">|</span> {/if} 92 <span class="hide viewThreadBlock" data-child-comments-count="{$CHILD_COMMENTS_COUNT}"> 93 <a class="cursorPointer viewThread"> 94 <span class="childCommentsCount">{$CHILD_COMMENTS_COUNT}</span> {if $CHILD_COMMENTS_COUNT eq 1}{vtranslate('LBL_REPLY',$MODULE_NAME)}{else}{vtranslate('LBL_REPLIES',$MODULE_NAME)}{/if} 95 <img class="alignMiddle" src="{vimage_path('rightArrowSmall.png')}" /> 96 </a> 97 </span> 98 <span class="hideThreadBlock" data-child-comments-count="{$CHILD_COMMENTS_COUNT}"> 99 <a class="cursorPointer hideThread"> 100 <span class="childCommentsCount">{$CHILD_COMMENTS_COUNT}</span> {if $CHILD_COMMENTS_COUNT eq 1}{vtranslate('LBL_REPLY',$MODULE_NAME)}{else}{vtranslate('LBL_REPLIES',$MODULE_NAME)}{/if} 101 <img class="alignMiddle" src="{vimage_path('downArrowSmall.png')}" /> 102 </a> 103 </span> 104 {/if} 105 </small></p> 106 </div> 107 </div> 108 </div> 109 </div> 110 <div> 111 {/strip} 112
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |