2022-12-11 13:55:49 +05:00
< ? php
2022-12-17 18:15:09 +05:00
ini_set ( 'display_errors' , 0 );
2022-12-11 13:55:49 +05:00
2023-01-02 21:33:36 +05:00
2023-02-25 22:58:56 +05:00
$smarty -> caching = false ;
2023-01-02 21:33:36 +05:00
$smarty -> cache_lifetime = 86400 ;
2022-12-11 13:55:49 +05:00
/* ----------------------------------------------------------------------
09.12 . 2022
Получаем последние страницы
---------------------------------------------------------------------- */
2023-01-02 21:33:36 +05:00
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' )));
2022-12-11 13:55:49 +05:00
/* ----------------------------------------------------------------------
09.12 . 2022
Получаем слайды
---------------------------------------------------------------------- */
if ( \core :: getSettings ( 'show_slider' ) == 1 ){ // Получаем слайдер
$smarty -> assign ( 'sliders' , $mod -> get_slider ());
$smarty -> assign ( 'first_slider' , $mod -> id );
}
/* ----------------------------------------------------------------------
09.12 . 2022
Получаем карусельки
---------------------------------------------------------------------- */
2023-01-02 21:33:36 +05:00
/* ----------------------------------------------------------------------
28.12 . 2022
Получаем теги
---------------------------------------------------------------------- */
$meta = \core :: getMeta ( 'main' , 1 );
$smarty -> assign ( 'keywords' , $meta [ 'keywords' ] );
$smarty -> assign ( 'description' , $meta [ 'description' ] );
//25093 количество товара без картинок
2022-12-11 13:55:49 +05:00
?>