Viewing file: ef114d85b5cf8526ce74c3e36b95cc2618bbad37.file.user-panel.tpl.php (4.83 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-05-13 11:42:07 compiled from "user/templates/blog/user-panel.tpl" */ ?> <?php /*%%SmartyHeaderCode:11919320094faf73df961212-70944742%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'ef114d85b5cf8526ce74c3e36b95cc2618bbad37' => array ( 0 => 'user/templates/blog/user-panel.tpl', 1 => 1336898520, ), ), 'nocache_hash' => '11919320094faf73df961212-70944742', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div style="overflow: hidden;">
<?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 (file_exists($_smarty_tpl->getVariable('news_main_photo')->value['photo_filename'])==1||file_exists("data/news-old/".($_smarty_tpl->tpl_vars['row']->value['news_id'])."_f.jpg")==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'];?> ">
<?php if ($_smarty_tpl->tpl_vars['row']->value['news_id']>202){?>
<div class="news-photo"><img src="/<?php echo $_smarty_tpl->getVariable('news_main_photo')->value['photo_filename'];?> " width="160" /></div>
<?php }else{ ?>
<div class="news-photo"><img src="/data/news-old/<?php echo $_smarty_tpl->tpl_vars['row']->value['news_id'];?> _f.jpg" /></div>
<?php }?>
</a>
<?php }?>
<?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="/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 (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,186);?> ...
<?php }else{ ?>
<?php echo mb_substr(strip_tags($_smarty_tpl->tpl_vars['row']->value["news_text_".($_smarty_tpl->getVariable('ulang')->value)]),0,186);?> ...
<?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="/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="clear: both;"><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 }} ?>
</div><br />
<div style="text-align: right;"><a href="/news"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_news']['AllNews'];?> </a></div>
|