8, 'exclude_notinmain'=>true)); $main_headline = $top_articles[0]; $sub_headlines = array_slice($top_articles, 1, 2); $more_headlines = array_slice($top_articles, 3, 5); // Collect the IDs of the 3 articles actually shown in the top section $excluded_ids = array(); if (isset($main_headline['id'])) $excluded_ids[] = $main_headline['id']; foreach ($sub_headlines as $sub) { if (isset($sub['id'])) $excluded_ids[] = $sub['id']; } // Latest section with pagination // We no longer blindly skip 3 items. Instead, we explicitly exclude the IDs // shown in the top section so we don't duplicate them, and we get exactly 10 items per page. $pages = get_latest_union_articles(array('limit'=>10, 'pageshow'=>'Y', 'exclude_ids'=>$excluded_ids)); $latest_articles = $pages['info']; $_aboutolivet = get_homepage_vars('about_news|about_content|about_table',false); $queryString = parse_url($_SERVER["REQUEST_URI"])['query']; $_url = '/news/page/'; $aboutolivet_dir = 'public/images/banners/aboutolivet/'; $banners = directory_map(BASE_PATH.$aboutolivet_dir); ?>
=$main_headline['summary']?>