Viewing file: 733df3a29a215cf60a658f80943e8ff82967091f.file.comments.tpl.php (8.27 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-03-29 23:05:45 compiled from "user/templates/comments/comments.tpl" */ ?> <?php /*%%SmartyHeaderCode:11534240974f74c0999e11b7-66487920%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '733df3a29a215cf60a658f80943e8ff82967091f' => array ( 0 => 'user/templates/comments/comments.tpl', 1 => 1333008113, ), ), 'nocache_hash' => '11534240974f74c0999e11b7-66487920', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="template-page comments-list"> <div class="comments-update-block" mod="<?php echo $_smarty_tpl->getVariable('mod')->value;?> " module="<?php echo $_smarty_tpl->getVariable('module')->value;?> " chapter="<?php echo $_smarty_tpl->getVariable('chapter')->value;?> " page="<?php echo $_smarty_tpl->getVariable('page')->value;?> "> <?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){ ?> <?php if ($_smarty_tpl->tpl_vars['row']->value['comment_status']>0){?> <a name="comment<?php echo $_smarty_tpl->tpl_vars['row']->value['comment_id'];?> "></a> <div class="comment" num="<?php echo $_smarty_tpl->tpl_vars['row']->value['comment_id'];?> " relnum="<?php echo $_smarty_tpl->tpl_vars['row']->value['number'];?> "> <div class="ava-middle"> <a href="/id<?php echo $_smarty_tpl->tpl_vars['row']->value['comment_user_id'];?> "> <?php if (file_exists("data/users/photos/y_".($_smarty_tpl->tpl_vars['row']->value['user_photo']))){?> <img src="/data/users/photos/y_<?php echo $_smarty_tpl->tpl_vars['row']->value['user_photo'];?> " width="50" /><br /> <?php }else{ ?> <img src="/data/users/photos/y_question.jpg" width="50" /> <?php }?> </a> </div> <div class="head-info"> <div><a href="/id<?php echo $_smarty_tpl->tpl_vars['row']->value['comment_user_id'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value['user_name'];?> <?php echo $_smarty_tpl->tpl_vars['row']->value['user_surname'];?> </a></div> <div><?php echo SimpleDateEcho($_smarty_tpl->tpl_vars['row']->value['comment_date']);?> <?php if (($_SESSION['user']['user_access']['admin']=='Y')||($_SESSION['user']['user_id']=='604')){?> / <span style="font-weight:bold;"><?php echo $_smarty_tpl->tpl_vars['row']->value['user_ip'];?> / <?php echo $_smarty_tpl->tpl_vars['row']->value['user_uid'];?> </span><?php }?></div> <div>#<?php echo $_smarty_tpl->tpl_vars['row']->value['number'];?> </div> <?php if ($_smarty_tpl->tpl_vars['row']->value['online']){?> <div class="online"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['online'];?> </div> <?php }?> </div> <div class="rating"> <div class="cnt" title="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['NumberOfVoters'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value['count'];?> </div> <div class="points" title="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['Average'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value['sum'];?> </div> <div class="inc <?php echo $_smarty_tpl->tpl_vars['row']->value['disabled']['inc'];?> <?php if (!isset($_SESSION['user'])){?>unregistered<?php }?>" title="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['Agree'];?> ">+1</div> <div class="dec <?php echo $_smarty_tpl->tpl_vars['row']->value['disabled']['dec'];?> <?php if (!isset($_SESSION['user'])){?>unregistered<?php }?>" title="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['Disagree'];?> ">-1</div> </div> <div class="controls"> <ul> <?php if (($_smarty_tpl->tpl_vars['row']->value['comment_user_id']==$_SESSION['user']['user_id'])){?> <?php if (($_SESSION['user']['user_access']['admin']!='Y')&&($_SESSION['user']['user_access']['comments']!='Y')){?> <?php if ($_smarty_tpl->tpl_vars['row']->value['comment_status']==2||$_smarty_tpl->tpl_vars['row']->value['comment_status']==3){?> <li><a href="#" class="user delete-by-user undelete"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['restore'];?> </a></li> <?php }else{ ?> <li><a href="#" class="user edit"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['edit'];?> </a></li> <li><a href="#" class="user delete-by-user"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['remove'];?> </a></li> <?php }?> <?php }?> <?php }else{ ?> <li><a href="#newcomment" class="user reply <?php if (!isset($_SESSION['user'])){?>unregistered<?php }?>"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['replyToComment'];?> </a></li> <?php }?> <?php if (($_SESSION['user']['user_access']['admin']=='Y')||($_SESSION['user']['user_access']['comments']=='Y')){?> <li><a href="#" class="admin edit"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['edit'];?> </a></li> <?php if ($_smarty_tpl->tpl_vars['row']->value['comment_status']==2||$_smarty_tpl->tpl_vars['row']->value['comment_status']==3){?> <li><a href="#" class="admin delete-by-admin undelete"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['restore'];?> </a></li> <?php }else{ ?> <li><a href="#" class="admin delete-by-admin"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['remove'];?> </a></li> <?php }?> <li><a href="#" class="admin delete-complete"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['removeFully'];?> </a></li> <?php if ($_smarty_tpl->tpl_vars['row']->value['comment_spam']=='N'){?> <li><a href="#" class="admin spam"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['itsSpam'];?> </a></li> <?php }else{ ?> <li><a href="#" class="admin spam nospam"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['notSpam'];?> </a></li> <?php }?> <?php }?> </ul> </div> <div class="delimiter"></div> <div class="comment-text"><div class="comment-text-wrap"><?php if ($_smarty_tpl->tpl_vars['row']->value['comment_status']==1){?><?php if ($_smarty_tpl->tpl_vars['row']->value['comment_parent_id']>0){?><em><?php if ($_smarty_tpl->getVariable('numbers')->value[$_smarty_tpl->tpl_vars['row']->value['p_comment_id']]>0){?>#<?php echo $_smarty_tpl->getVariable('numbers')->value[$_smarty_tpl->tpl_vars['row']->value['p_comment_id']];?> . <?php }?><?php echo $_smarty_tpl->tpl_vars['row']->value['p_user_name'];?> <?php echo $_smarty_tpl->tpl_vars['row']->value['p_user_surname'];?> (<?php echo SimpleDateEcho($_smarty_tpl->tpl_vars['row']->value['p_comment_date']);?> ) </em><br /> <?php }?> <div class="text"><?php echo nl2br($_smarty_tpl->tpl_vars['row']->value['comment_text']);?> </div> <?php }?> <?php if ($_smarty_tpl->tpl_vars['row']->value['comment_status']==2){?> <em class="comment-text-display"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['CommentRemovedByTheAuthor'];?> </em> <?php }?> <?php if ($_smarty_tpl->tpl_vars['row']->value['comment_status']==3){?> <em class="comment-text-display"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['CommentRemovedByAnAdministrator'];?> </em> <?php }?> <?php if (($_smarty_tpl->tpl_vars['row']->value['comment_status']==2||$_smarty_tpl->tpl_vars['row']->value['comment_status']==3)&&(($_SESSION['user']['user_access']['admin']=='Y')||($_SESSION['user']['user_access']['comments']=='Y'))){?> <div class="comment-text-hidden"><?php echo nl2br($_smarty_tpl->tpl_vars['row']->value['comment_text']);?> </div> <?php }?> </div> </div> </div> <?php }?> <?php }} ?> </div> </div>
|