24 lines
1.1 KiB
PHP
24 lines
1.1 KiB
PHP
<?php
|
|
ini_set('display_errors', 0 );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
09.12.2022
|
|
Получаем последние страницы
|
|
---------------------------------------------------------------------- */
|
|
if ( \core::getSettings('show_news_main_page') == 1 ) $smarty->assign('lastPages', DB::getAll('SELECT * FROM `list` WHERE `public` = ' . 1 . ' AND `post_type`="page" ORDER BY `id` DESC LIMIT ' . \core::getSettings('news_limit')));
|
|
|
|
/* ----------------------------------------------------------------------
|
|
09.12.2022
|
|
Получаем слайды
|
|
---------------------------------------------------------------------- */
|
|
|
|
if ( \core::getSettings('show_slider') == 1 ){ // Получаем слайдер
|
|
$smarty->assign('sliders', $mod -> get_slider());
|
|
$smarty->assign('first_slider', $mod -> id);
|
|
}
|
|
|
|
/* ----------------------------------------------------------------------
|
|
09.12.2022
|
|
Получаем карусельки
|
|
---------------------------------------------------------------------- */
|
|
?>
|