File "landing.inc.php"
Full Path: /srv/www/www.cadoro.it/src/controllers/landing.inc.php
File size: 362 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
$landing = models\BlogArticle::get_by_slug($slug);
$category = $landing->get_category();
if (!$landing || $category['category_id'] != 4 || !_published($landing['published'], $landing['published_datetime'], $landing['published_datetime2'], true)) {
not_found();
}
$smarty->assign("landing", $landing);
$smarty->display("landing.tmpl");
?>