Viewing file: 76ee8e84a738c9b5df2a3422935b66ecd4b52311.file.user-row.tpl.php (6.08 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2013-04-25 14:00:10 compiled from "user/templates/blog/user-row.tpl" */ ?> <?php /*%%SmartyHeaderCode:181351330351790cbacfc8d5-47560248%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '76ee8e84a738c9b5df2a3422935b66ecd4b52311' => array ( 0 => 'user/templates/blog/user-row.tpl', 1 => 1366887432, ), ), 'nocache_hash' => '181351330351790cbacfc8d5-47560248', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="news">
<table style="width:100%">
<tr valign="middle">
<td>
<div class="counter">
<?php if (($_smarty_tpl->getVariable('search')->value)){?>
<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_blog']['NewsFound'];?> <?php echo $_smarty_tpl->getVariable('count')->value;?>
<?php echo AssumeNumber($_smarty_tpl->getVariable('count')->value,$_smarty_tpl->getVariable('ULANG')->value['AMCMS_blog']['news']);?> .
<?php }else{ ?>
<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_blog']['Total'];?> <?php echo $_smarty_tpl->getVariable('count')->value;?>
<?php echo AssumeNumber($_smarty_tpl->getVariable('count')->value,$_smarty_tpl->getVariable('ULANG')->value['AMCMS_blog']['news']);?> .
<?php }?>
</div>
</td>
<td align="right">
<?php echo $_smarty_tpl->getVariable('pnav')->value;?>
</td>
</tr>
</table>
<br />
<?php if (count($_smarty_tpl->getVariable('rows')->value)==0){?>
<div style="border-radius: 5px; border: 1px dashed #DDD; padding: 20px 7px; text-align: center; margin:10px 0;"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_blog']['NoNews'];?> </div>
<?php }?>
<?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('Blog',"news_id=".($_smarty_tpl->tpl_vars['row']->value['news_id'])), null, null);?>
<div class="news row" style="position: relative;">
<?php if (file_exists($_smarty_tpl->getVariable('news_main_photo')->value['photo_filename'])==1){?>
<?php if ($_smarty_tpl->tpl_vars['row']->value['news_show_read_more_link']=='Y'){?>
<a href="/blog/p<?php echo $_smarty_tpl->tpl_vars['row']->value['news_id'];?> ">
<div class="news-photo"><img src="/<?php echo $_smarty_tpl->getVariable('news_main_photo')->value['photo_filename'];?> " width="160" /></div>
</a>
<?php }?>
<?php }else{ ?>
<div class="news-photo"></div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['row']->value['news_show_date']=='Y'){?>
<div class="date"><?php echo SimpleDateEcho($_smarty_tpl->tpl_vars['row']->value['news_date']);?> </div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['row']->value['news_show_title']=='Y'){?>
<div class="title">
<?php if ($_smarty_tpl->tpl_vars['row']->value['news_show_read_more_link']=='Y'){?>
<a href="/blog/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>
<?php }else{ ?>
<?php echo $_smarty_tpl->tpl_vars['row']->value[$_smarty_tpl->getVariable('news_title')->value];?>
<?php }?>
</div>
<?php }?>
<div class="short-text" style="overflow: hidden;">
<?php if (strlen(strip_tags($_smarty_tpl->tpl_vars['row']->value["news_short_text_".($_smarty_tpl->getVariable('ulang')->value)]))>5){?>
<?php echo mb_substr(strip_tags($_smarty_tpl->tpl_vars['row']->value["news_short_text_".($_smarty_tpl->getVariable('ulang')->value)]),0,486);?> ...
<?php }else{ ?>
<?php echo mb_substr(strip_tags($_smarty_tpl->tpl_vars['row']->value["news_text_".($_smarty_tpl->getVariable('ulang')->value)]),0,486);?> ...
<?php }?>
</div>
<?php if ($_smarty_tpl->tpl_vars['row']->value['news_show_read_more_link']=='Y'){?>
<?php if (($_SESSION['user']['user_access']['admin']=='Y')||($_SESSION['user']['user_access']['news']=='Y')){?>
<div style="position: absolute; bottom: 0px; left: 0px; margin: 5px 0">
<a href="/blog/p<?php echo $_smarty_tpl->tpl_vars['row']->value['news_id'];?> /edit" class="admin edit" style="color:#00F;"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_blog']['Edit'];?> </a> | <a href="/blog/p<?php echo $_smarty_tpl->tpl_vars['row']->value['news_id'];?> /delete" style="color:#00F;" class="admin edit"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_blog']['Delete'];?> </a>
</div>
<?php }?>
<div class="readmore" style="clear: both;"><a href="/blog/p<?php echo $_smarty_tpl->tpl_vars['row']->value['news_id'];?> "><?php echo $_smarty_tpl->getVariable('ULANG')->value['CoreReadMore'];?> </a></div>
<?php }?>
<div class="delimiter"></div>
</div>
<?php }} ?>
<br />
<br />
<table style="width:100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right">
<div style="white-space: nowrap; padding-left:20px;">
<?php echo $_smarty_tpl->getVariable('pnav')->value;?>
</div>
<br />
<br />
<br />
<div style="white-space: nowrap;">
<?php $_template = new Smarty_Internal_Template('news-navigator.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>
</td>
<td align="right">
</td>
</tr>
</table>
</div>
|