Viewing file: 019f9af888758ee146d10184d14bae785a434cd3.file.user-page.tpl.php (6.44 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-04-26 10:49:30 compiled from "user/templates/news/user-page.tpl" */ ?> <?php /*%%SmartyHeaderCode:5654763334f98fe0ad41940-75898755%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '019f9af888758ee146d10184d14bae785a434cd3' => array ( 0 => 'user/templates/news/user-page.tpl', 1 => 1335426570, ), ), 'nocache_hash' => '5654763334f98fe0ad41940-75898755', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="thumbs">
<div style="padding-top:10px;"></div>
<?php $_smarty_tpl->tpl_vars["news_text"] = new Smarty_variable("news_text_".($_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 ob_start();?><?php echo $_smarty_tpl->getVariable('mod')->value;?> <?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["photos"] = new Smarty_variable($_smarty_tpl->getVariable('Photomanager')->value->GetPhotos($_tmp1,"news_id=".($_smarty_tpl->getVariable('row')->value['news_id'])), null, null);?>
<div class="page" style="position: relative;">
<?php if ($_smarty_tpl->getVariable('row')->value['news_show_date']=='Y'){?>
<div class="date"><?php echo SimpleDateEcho($_smarty_tpl->getVariable('row')->value['news_date']);?> </div>
<?php }?>
<?php if (($_SESSION['user']['user_access']['admin']=='Y')||($_SESSION['user']['user_access']['news']=='Y')){?>
<div style="position: absolute; left: 0px; top: 0px; margin: 0px 0">
<a href="/news/p<?php echo $_smarty_tpl->getVariable('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->getVariable('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="text">
<div style="float:left; width:200px; padding-right:10px;">
<?php if ($_smarty_tpl->getVariable('row')->value['news_id']<201&&file_exists("data/news-old/".($_smarty_tpl->getVariable('row')->value['news_id'])."_t1.jpg")==1){?>
<div class="photo" style="float:left;">
<a href="/data/news-old/<?php echo $_smarty_tpl->getVariable('row')->value['news_id'];?> _t1_big.jpg" class="fancybox" rel="s">
<img src="/data/news-old/<?php echo $_smarty_tpl->getVariable('row')->value['news_id'];?> _t1.jpg" />
</a>
</div>
<?php }?>
<?php if (file_exists("data/news-old/".($_smarty_tpl->getVariable('row')->value['news_id'])."_t2.jpg")==1){?>
<div class="photo" >
<a href="/data/news-old/<?php echo $_smarty_tpl->getVariable('row')->value['news_id'];?> _t2_big.jpg" class="fancybox" rel="s">
<img src="/data/news-old/<?php echo $_smarty_tpl->getVariable('row')->value['news_id'];?> _t2.jpg" />
</a>
</div>
<?php }?>
<?php if (file_exists("data/news/foto_small_".($_smarty_tpl->getVariable('row')->value['news_id'])."_1.jpg")==1){?>
<div class="photo">
<a href="/data/news/foto_big_<?php echo $_smarty_tpl->getVariable('row')->value['news_id'];?> _1.jpg" class="fancybox">
<img src="/data/news/foto_small_<?php echo $_smarty_tpl->getVariable('row')->value['news_id'];?> _1.jpg" />
</a>
</div>
<?php }?>
<?php if (file_exists("data/news/foto_small_".($_smarty_tpl->getVariable('row')->value['news_id'])."_2.jpg")==1){?>
<div class="photo">
<a href="/data/news/foto_big_<?php echo $_smarty_tpl->getVariable('row')->value['news_id'];?> _2.jpg" class="fancybox">
<img src="/data/news/foto_small_<?php echo $_smarty_tpl->getVariable('row')->value['news_id'];?> _2.jpg" />
</a>
</div>
<?php }?>
</div>
<?php if ($_smarty_tpl->getVariable('photos')->value[0]['photo_align']=='t'){?> <div class="PhotoLineTop"><?php $_template = new Smarty_Internal_Template('user-photos.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null); $_template->assign('photos',$_smarty_tpl->getVariable('photos')->value); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?></div> <?php }?>
<?php if ($_smarty_tpl->getVariable('photos')->value[0]['photo_align']=='l'){?> <div class="PhotoLineLeft"><?php $_template = new Smarty_Internal_Template('user-photos.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null); $_template->assign('photos',$_smarty_tpl->getVariable('photos')->value); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?></div> <?php }?>
<?php if ($_smarty_tpl->getVariable('photos')->value[0]['photo_align']=='r'){?> <div class="PhotoLineRight"><?php $_template = new Smarty_Internal_Template('user-photos.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null); $_template->assign('photos',$_smarty_tpl->getVariable('photos')->value); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?></div> <?php }?>
<div style="font-weight: bold;"><?php echo $_smarty_tpl->getVariable('row')->value[$_smarty_tpl->getVariable('news_short_text')->value];?> </div>
<?php echo $_smarty_tpl->getVariable('row')->value[$_smarty_tpl->getVariable('news_text')->value];?>
<?php if ($_smarty_tpl->getVariable('photos')->value[0]['photo_align']=='b'){?> <div class="PhotoLineBottom"><?php $_template = new Smarty_Internal_Template('user-photos.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null); $_template->assign('photos',$_smarty_tpl->getVariable('photos')->value); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?></div> <?php }?>
</div>
</div><br />
<?php $_template = new Smarty_Internal_Template('../social.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>
|