Viewing file: 3fbd1640b962a72baa11cd87c265b819f4f5718a.file.news-comments.tpl.php (4.57 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-03-29 23:07:44 compiled from "user/templates/news/news-comments.tpl" */ ?> <?php /*%%SmartyHeaderCode:17968337074f74c110385cc9-79245458%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '3fbd1640b962a72baa11cd87c265b819f4f5718a' => array ( 0 => 'user/templates/news/news-comments.tpl', 1 => 1333008114, ), ), 'nocache_hash' => '17968337074f74c110385cc9-79245458', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="comments"> <table width="100%" style="border:0; border-spacing:0;"> <tr> <td><div class="counter"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_comments']['TotalComments'];?> : <?php echo $_smarty_tpl->getVariable('count')->value;?> .</div></td> <td align="right"><?php echo $_smarty_tpl->getVariable('pnav')->value;?> </td> </tr> </table> <hr class="dashed"/> <ul style="list-style-type:none; margin:0;padding:0;"> <?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 $_smarty_tpl->tpl_vars["news_main_photo"] = new Smarty_variable($_smarty_tpl->getVariable('Photomanager')->value->GetMainPhoto("News","news_id=".($_smarty_tpl->tpl_vars['row']->value['news_id'])), null, null);?> <li> <div class="news row" style="position: relative;"> <div class="date"><?php echo SimpleDateEcho($_smarty_tpl->tpl_vars['row']->value['news_date']);?> </div> <div class="title"> <a href="/news/p<?php echo $_smarty_tpl->tpl_vars['row']->value['news_id'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value["news_title_".($_smarty_tpl->getVariable('ulang')->value)];?> </a> </div> </div> <table style="margin:0 auto; width:100%;" cellspacing="0"><tr> <td width="50" align="center" valign="top" style="padding:2px 4px 0 0;"> <?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 }?> </td> <td valign="top"> <div><a href="/id<?php echo $_smarty_tpl->tpl_vars['row']->value['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 style="color: #AAA; font-size: 12px; padding: 3px 0;"><?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; color: black;"><?php echo $_smarty_tpl->tpl_vars['row']->value['user_ip'];?> / <?php echo $_smarty_tpl->tpl_vars['row']->value['user_uid'];?> </span><?php }?></div> <div style="text-align: justify;"><?php echo nl2br($_smarty_tpl->tpl_vars['row']->value['comment_text']);?> </div> </td> <td align="right" valign="top" style="padding-left:3px;"> <?php if (file_exists($_smarty_tpl->getVariable('news_main_photo')->value['photo_filename'])==1){?> <a href="/news/p<?php echo $_smarty_tpl->tpl_vars['row']->value['news_id'];?> "> <img src="/<?php echo $_smarty_tpl->getVariable('news_main_photo')->value['photo_filename'];?> " class="photo" alt="<?php echo $_smarty_tpl->getVariable('news_main_photo')->value["photo_title_".($_smarty_tpl->getVariable('ulang')->value)];?> " title="<?php echo $_smarty_tpl->getVariable('news_main_photo')->value[$_smarty_tpl->getVariable('photo_title')->value];?> " /> </a> <?php }?> </td> </tr></table> <hr class="dashed" /> </li> <?php }} ?> </ul> <div style="text-align:right"><?php echo $_smarty_tpl->getVariable('pnav')->value;?> </div> <?php $_template = new Smarty_Internal_Template('amviewer.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?> </div>
|