show_newsticker == 1 && countItems($breakingNews) > 0): ?>
show_at_homepage == 1 && $category->lang_id == $activeLang->id):
if ($category->block_type == "block-1") {
echo loadView('partials/_category_block_type_1', ['category' => $category]);
}
if ($category->block_type == "block-2") {
echo loadView('partials/_category_block_type_2', ['category' => $category]);
}
if ($category->block_type == "block-3") {
echo loadView('partials/_category_block_type_3', ['category' => $category]);
}
if ($category->block_type == "block-4") {
echo loadView('partials/_category_block_type_4', ['category' => $category]);
}
if ($category->block_type == "block-5") {
echo loadView('partials/_category_block_type_5', ['category' => $category]);
}
if ($x == 0) {
echo loadView('partials/_ad_spaces', ['adSpace' => 'index_top', 'class' => 'bn-p-b']);
}
$x++;
endif;
endforeach;
endif;
echo loadView('partials/_ad_spaces', ['adSpace' => 'index_bottom', 'class' => 'bn-p-b']);
if ($generalSettings->show_latest_posts == 1):
if (!empty($latestPosts) && countItems($latestPosts) > 0): ?>
= loadView('post/_index_latest_posts', ['limitLoadMorePosts' => $limitLoadMorePosts]); ?>
$limitLoadMorePosts): ?>