コード例 #1
0
ファイル: Flag.php プロジェクト: ngreimel/kovent
 public function getDashboardSitemapIconSRC($page)
 {
     $ids = Section::getIDList();
     if (in_array($page->getCollectionID(), $ids)) {
         return self::getSectionFlagIcon($page, true);
     }
 }
コード例 #2
0
ファイル: Flag.php プロジェクト: krsreenatha/concrete5-1
 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);
     }
 }