Viewing file: e3aaccd2c6b0c223dd162f9b49546ebc08711552.file.user-panel.tpl.php (5.18 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-02-26 11:53:04 compiled from "user/templates/news/user-panel.tpl" */ ?> <?php /*%%SmartyHeaderCode:21285178394f4a0100c34f83-21296122%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'e3aaccd2c6b0c223dd162f9b49546ebc08711552' => array ( 0 => 'user/templates/news/user-panel.tpl', 1 => 1330249984, ), ), 'nocache_hash' => '21285178394f4a0100c34f83-21296122', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="news">
<?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_news']['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 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 row" style="position: relative;">
<?php if ($_smarty_tpl->tpl_vars['row']->value['news_show_date']=='Y'){?>
<div class="date" style="display:inline;"><?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" style="display:inline">
<?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["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 (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["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 }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 echo $_smarty_tpl->tpl_vars['row']->value["news_short_text_".($_smarty_tpl->getVariable('ulang')->value)];?>
</div>
<?php if ($_smarty_tpl->tpl_vars['row']->value['news_show_read_more_link']=='Y'){?>
<div> </div>
<?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="/news/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_news']['Edit'];?> </a> | <a href="/news/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_news']['Delete'];?> </a>
</div>
<?php }?>
<div class="readmore" style="position: absolute; bottom: 0px; right: 0px;"><a href="/news/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 }} ?>
<table style="width:100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left">
<div style="white-space: nowrap;"></div>
</td>
<td align="right">
<div style="white-space: nowrap; padding-left:20px;">
<?php echo $_smarty_tpl->getVariable('pnav')->value;?>
</div>
</td>
</tr>
</table>
</div>
<div style="position: absolute; right: 7px; bottom: 7px;"><a href="/news">Дивитися усі новини</a></div>
<div style="clear:both;"></div>
|