[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/Vtiger/ -> CommentsList.tpl (source)

   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  {if !empty($PARENT_COMMENTS)}
  14      <ul class="liStyleNone">
  15          {if $CURRENT_COMMENT}
  16              {assign var=CHILDS_ROOT_PARENT_MODEL value=$CURRENT_COMMENT}
  17              {assign var=CURRENT_COMMENT_PARENT_MODEL value=$CURRENT_COMMENT->getParentCommentModel()}
  18              {while $CURRENT_COMMENT_PARENT_MODEL neq false}
  19                  {assign var=TEMP_COMMENT value=$CURRENT_COMMENT_PARENT_MODEL}
  20                  {assign var=CURRENT_COMMENT_PARENT_MODEL value=$CURRENT_COMMENT_PARENT_MODEL->getParentCommentModel()}
  21                  {if $CURRENT_COMMENT_PARENT_MODEL eq false}
  22                      {assign var=CHILDS_ROOT_PARENT_MODEL value=$TEMP_COMMENT}
  23                  {/if}    
  24              {/while}
  25          {/if}
  26  
  27          {if is_array($PARENT_COMMENTS)}
  28              {foreach key=Index item=COMMENT from=$PARENT_COMMENTS}
  29                  {assign var=PARENT_COMMENT_ID value=$COMMENT->getId()}
  30                  <li class="commentDetails">
  31                  {include file='Comment.tpl'|@vtemplate_path COMMENT=$COMMENT COMMENT_MODULE_MODEL=$COMMENTS_MODULE_MODEL}
  32                  
  33                  {if $CHILDS_ROOT_PARENT_MODEL}
  34                      {if $CHILDS_ROOT_PARENT_MODEL->getId() eq $PARENT_COMMENT_ID}        
  35                          {assign var=CHILD_COMMENTS_MODEL value=$CHILDS_ROOT_PARENT_MODEL->getChildComments()}
  36                          {include file='CommentsListIteration.tpl'|@vtemplate_path CHILD_COMMENTS_MODEL=$CHILD_COMMENTS_MODEL}
  37                      {/if}
  38                  {/if}
  39                  </li><br>    
  40              {/foreach}
  41          {else}
  42              {include file='Comment.tpl'|@vtemplate_path COMMENT=$PARENT_COMMENTS}
  43          {/if}
  44      </ul>
  45  {else}
  46      {include file="NoComments.tpl"|@vtemplate_path}
  47  {/if}
  48  {/strip}


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1