Viewing file: 4aab53c384dbf26383239d892ae002e6eef0162b.file.user-row.tpl.php (3.57 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2020-11-24 19:39:50 compiled from "user/templates/news/user-row.tpl" */ ?> <?php /*%%SmartyHeaderCode:13991330385fbd4566067fc6-96896351%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '4aab53c384dbf26383239d892ae002e6eef0162b' => array ( 0 => 'user/templates/news/user-row.tpl', 1 => 1606239409, ), ), 'nocache_hash' => '13991330385fbd4566067fc6-96896351', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <?php $_smarty_tpl->tpl_vars["photo_title"] = new Smarty_variable("photo_title_".($_smarty_tpl->getVariable('ulang')->value), null, null);?>
<?php $_smarty_tpl->tpl_vars["news_title"] = new Smarty_variable("news_title_".($_smarty_tpl->getVariable('ulang')->value), null, null);?>
<?php $_smarty_tpl->tpl_vars["news_short_text"] = new Smarty_variable("news_short_text_".($_smarty_tpl->getVariable('ulang')->value), null, null);?>
<?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 ob_start();?><?php echo $_smarty_tpl->getVariable('mod')->value;?> <?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["news_main_photo"] = new Smarty_variable($_smarty_tpl->getVariable('Photomanager')->value->GetMainPhoto($_tmp1,"news_id=".($_smarty_tpl->tpl_vars['row']->value['news_id'])), null, null);?>
<div class="news-rec">
<?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="/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[$_smarty_tpl->getVariable('photo_title')->value];?> " title="<?php echo $_smarty_tpl->getVariable('news_main_photo')->value[$_smarty_tpl->getVariable('photo_title')->value];?> " />
</a>
<?php }else{ ?>
<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[$_smarty_tpl->getVariable('photo_title')->value];?> " title="<?php echo $_smarty_tpl->getVariable('news_main_photo')->value[$_smarty_tpl->getVariable('photo_title')->value];?> " />
<?php }?>
<?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="/news/p<?php echo $_smarty_tpl->tpl_vars['row']->value['news_id'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value[$_smarty_tpl->getVariable('news_title')->value];?> </a>
<?php }else{ ?>
<?php echo $_smarty_tpl->tpl_vars['row']->value[$_smarty_tpl->getVariable('news_title')->value];?>
<?php }?>
</div>
<?php }?>
<div class="small-text">
<?php echo $_smarty_tpl->tpl_vars['row']->value['news_short_text_ukr'];?>
</div>
</div>
<?php }} ?>
<!-- <div class="allnews"><a href="/news/">Усі новини >>></a></div>-->
|