Files
aktualia.com.pl/_rejestracja/temp/compile/c479bd7ec66dfd94bd5f0b26896e43d3f28a0bc4_0.file.News.tpl.php
2026-04-24 15:32:21 +02:00

65 lines
3.0 KiB
PHP

<?php
/* Smarty version 3.1.30, created on 2026-04-24 12:54:52
from "/home/www/_rejestracja/template/partial/Shared/News.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_69eb4bfc3f17b2_03304345',
'has_nocache_code' => false,
'file_dependency' =>
array (
'c479bd7ec66dfd94bd5f0b26896e43d3f28a0bc4' =>
array (
0 => '/home/www/_rejestracja/template/partial/Shared/News.tpl',
1 => 1475774654,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_69eb4bfc3f17b2_03304345 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_translate')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.translate.php';
if (!is_callable('smarty_modifier_replace')) require_once '/home/www/_rejestracja/core/lib/Smarty3/plugins/modifier.replace.php';
if (!is_callable('smarty_modifier_text2url')) require_once '/home/www/_rejestracja/core/plugins/Smarty/modifier.text2url.php';
if (!is_callable('smarty_function_url')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.url.php';
if (!is_callable('smarty_modifier_truncate')) require_once '/home/www/_rejestracja/core/lib/Smarty3/plugins/modifier.truncate.php';
?>
<h1 class="newsBoxTitle"><?php echo smarty_function_translate(array('word'=>'NEWS'),$_smarty_tpl);?>
</h1>
<?php $_smarty_tpl->_assignInScope('labelNews', '');
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObjNewsIndex']->value, 'objNewsIndex', false, NULL, 'news', array (
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['objNewsIndex']->value) {
?>
<?php $_smarty_tpl->_assignInScope('idNewsIndex', $_smarty_tpl->tpl_vars['objNewsIndex']->value->GetId());
?>
<?php $_smarty_tpl->_assignInScope('objStructure', $_smarty_tpl->tpl_vars['objNewsIndex']->value->GetStructure());
?>
<?php $_smarty_tpl->_assignInScope('labelNews', $_smarty_tpl->tpl_vars['objStructure']->value->GetUrlLabel());
?>
<?php $_smarty_tpl->_assignInScope('Detail', 'Detail');
?>
<?php $_smarty_tpl->_assignInScope('labelNewsDetail', $_smarty_tpl->tpl_vars['labelNews']->value);
?>
<?php $_smarty_tpl->_assignInScope('truncateCount', 100);
?>
<div class="newsBoxItem">
<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['objNewsIndex']->value->GetDatePublicationWithoutTime(),"-",".");?>
<br/>
<a href="<?php echo smarty_function_url(array('label'=>$_smarty_tpl->tpl_vars['labelNewsDetail']->value,'title'=>smarty_modifier_text2url($_smarty_tpl->tpl_vars['objNewsIndex']->value->GetTitle()),'id'=>$_smarty_tpl->tpl_vars['idNewsIndex']->value),$_smarty_tpl);?>
"><?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['objNewsIndex']->value->GetShortnote()),$_smarty_tpl->tpl_vars['truncateCount']->value," ".((string)$_smarty_tpl->tpl_vars['moreNews']->value));?>
</a>
</div>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
<?php }
}