ID; $cmsLink = "". _t('ContentController.CMS', 'CMS') .""; return $cmsLink; } } class SilverStripeNavigatorItem_StageLink extends SilverStripeNavigatorItem { static $priority = 20; function getHTML($controller) { if(Versioned::current_stage() == 'Stage') { return "". _t('ContentController.DRAFTSITE', 'Draft Site') .""; } else { $thisPage = $controller->Link(); return "". _t('ContentController.DRAFTSITE', 'Draft Site') .""; } } function getMessage($controller) { if(Versioned::current_stage() == 'Stage') { return "
". _t('ContentController.DRAFTSITE', 'Draft Site') ."
"; } } } class SilverStripeNavigatorItem_LiveLink extends SilverStripeNavigatorItem { static $priority = 30; function getHTML($controller) { if(Versioned::current_stage() == 'Live') { return "". _t('ContentController.PUBLISHEDSITE', 'Published Site') .""; } else { $thisPage = $controller->Link(); return "". _t('ContentController.PUBLISHEDSITE', 'Published Site') .""; } } function getMessage($controller) { if(Versioned::current_stage() == 'Live') { return "
". _t('ContentController.PUBLISHEDSITE', 'Published Site') ."
"; } } } class SilverStripeNavigatorItem_ArchiveLink extends SilverStripeNavigatorItem { static $priority = 40; function getHTML($controller) { if(Versioned::current_archived_date()) { return "". _t('ContentController.ARCHIVEDSITE', 'Archived Site') .""; } } function getMessage($controller) { if($date = Versioned::current_archived_date()) { $dateObj = Object::create('Datetime', $date, null); return "
". _t('ContentController.ARCHIVEDSITEFROM', 'Archived site from') ."
" . $dateObj->Nice() . "
"; } } } ?>