File "a2c9cf175615df6fea776c8d1b52e3c138e31984_0.file.news-dettaglio.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/a2c9cf175615df6fea776c8d1b52e3c138e31984_0.file.news-dettaglio.tmpl.php
File size: 7.49 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-02-21 17:47:03
from "/srv/www/www.cadoro.it/src/templates/news-dettaglio.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_65d62907503e90_06967581',
'file_dependency' =>
array (
'a2c9cf175615df6fea776c8d1b52e3c138e31984' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/news-dettaglio.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:layout-news.tmpl' => 1,
'file:cms-content-fluid.tmpl' => 1,
),
),false)) {
function content_65d62907503e90_06967581 ($_smarty_tpl) {
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>
<html>
<head>
<title><?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, 'title', array (
0 => 'block_51634390365d629074e1570_59673618',
1 => false,
3 => 0,
2 => 0,
));
?>
</title>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "head", array (
0 => 'block_36022408665d629074e55a6_03760891',
1 => false,
3 => 0,
2 => 0,
));
?>
</head>
<body>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content-right", array (
0 => 'block_153093407965d629074ef1e6_00293541',
1 => false,
3 => 0,
2 => 0,
));
?>
</body>
</html>
<?php $_smarty_tpl->ext->_inheritance->endChild($_smarty_tpl);
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:layout-news.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'title'} file:news-dettaglio.tmpl */
function block_51634390365d629074e1570_59673618($_smarty_tpl, $_blockParentStack) {
echo (($tmp = @$_smarty_tpl->tpl_vars['article']->value['seo_title'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['article']->value['title'] : $tmp);
}
/* {/block 'title'} */
/* {block 'head'} file:news-dettaglio.tmpl */
function block_36022408665d629074e55a6_03760891($_smarty_tpl, $_blockParentStack) {
?>
<meta name="og:title" content="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['article']->value['seo_title'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['article']->value['title'] : $tmp);?>
">
<meta name="og:image" content="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_cover'];?>
">
<meta name="og:description" content="<?php echo $_smarty_tpl->tpl_vars['article']->value['seo_description'];?>
">
<meta name="og:url" content="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news/<?php echo _a($_smarty_tpl->tpl_vars['article']->value->get_category(),'slug');?>
/<?php echo $_smarty_tpl->tpl_vars['article']->value['slug'];?>
-<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?>
">
<meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['article']->value['seo_description'];?>
">
<meta name="keywords" content="<?php echo $_smarty_tpl->tpl_vars['article']->value['seo_keywords'];?>
">
<?php
}
/* {/block 'head'} */
/* {block 'content-right'} file:news-dettaglio.tmpl */
function block_153093407965d629074ef1e6_00293541($_smarty_tpl, $_blockParentStack) {
?>
<div class="row">
<div class="col-sm-9 mb20">
<div class="news-article">
<?php if ($_smarty_tpl->tpl_vars['article']->value['image_cover']) {?>
<div class="news-article-cover">
<a href="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_cover'];?>
" rel="gallery">
<img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_cover'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
" class="img-responsive" style="min-width: 100%;">
</a>
</div>
<?php }?>
<?php if (_get('favourite')) {?>
<?php if ($_smarty_tpl->tpl_vars['principal']->value) {?>
<div class="alert alert-success">
Questo contenuto รจ stato aggiunto alla tua <strong>lista dei preferiti</strong>!
</div>
<?php } else { ?>
<div class="alert alert-danger">
Per aggiungere un contenuto alla tua <strong>lista dei preferiti</strong> devi prima accedere con il tuo utente!
</div>
<?php }?>
<?php }?>
<?php $_smarty_tpl->tpl_vars["page"] = new Smarty_Variable($_smarty_tpl->tpl_vars['article']->value, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "page", 0);?>
<?php if ($_smarty_tpl->tpl_vars['article']->value['date']) {?>
<div class="mt20">
<strong><?php echo mb_strtoupper(_ddf($_smarty_tpl->tpl_vars['article']->value['date']));?>
</strong>
</div>
<?php }?>
<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:cms-content-fluid.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<hr>
<div class="news-article-share mt20">
<div class="row">
<div class="col-xs-6">
<span class="title pull-left">
<strong>CONDIVIDI</strong>
</span>
<?php echo '<script'; ?>
type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-57d532178271be23"><?php echo '</script'; ?>
>
<div class="addthis_inline_share_toolbox" style="display: inline-block; margin-left: 15px; margin-top: -5px;"></div>
</div>
</div>
</div>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['related']->value) {?>
<div class="col-sm-3">
<div class="news-article-related">
<div class="h4">
ULTIME NEWS
</div>
<?php
$_from = $_smarty_tpl->tpl_vars['related']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_r_0_saved_item = isset($_smarty_tpl->tpl_vars['r']) ? $_smarty_tpl->tpl_vars['r'] : false;
$_smarty_tpl->tpl_vars['r'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['r']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['r']->value) {
$_smarty_tpl->tpl_vars['r']->_loop = true;
$__foreach_r_0_saved_local_item = $_smarty_tpl->tpl_vars['r'];
?>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news/<?php echo _a($_smarty_tpl->tpl_vars['r']->value->get_category(),'slug');?>
/<?php echo $_smarty_tpl->tpl_vars['r']->value['slug'];?>
-<?php echo $_smarty_tpl->tpl_vars['r']->value['id'];?>
" class="news-related mb10">
<div class="row">
<div class="col-xs-4">
<div class="news-related__cover" style="background-image: url(<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['r']->value['image_list'];?>
);"></div>
</div>
<div class="col-xs-8">
<span class="news-related__title"><?php echo $_smarty_tpl->tpl_vars['r']->value['title'];?>
</span>
</div>
</div>
</a>
<?php
$_smarty_tpl->tpl_vars['r'] = $__foreach_r_0_saved_local_item;
}
if ($__foreach_r_0_saved_item) {
$_smarty_tpl->tpl_vars['r'] = $__foreach_r_0_saved_item;
}
?>
</div>
</div>
<?php }?>
</div>
<?php
}
/* {/block 'content-right'} */
}