public function getDashboardSitemapIconSRC($page) { $ids = Section::getIDList(); if (in_array($page->getCollectionID(), $ids)) { return self::getSectionFlagIcon($page, true); } }
public static function getDashboardSitemapIconSRC($page) { if ($page->getPageTypeHandle() == STACK_CATEGORY_PAGE_TYPE) { $section = Section::getByLocale($page->getCollectionName()); if (is_object($section)) { return self::getSectionFlagIcon($section, true); } } $ids = Section::getIDList(); if (in_array($page->getCollectionID(), $ids)) { return self::getSectionFlagIcon($page, true); } }