FEATURE: Make navigator items more overloadable (from r97376) (from r99047)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102824 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-14 03:52:28 +00:00
parent 8a781341c9
commit 9284d63827
3 changed files with 5 additions and 5 deletions

View File

@ -302,7 +302,7 @@ class ContentController extends Controller {
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery/jquery.js');
Requirements::customScript(<<<JS
(function($) {
$('#switchView a').click(function() {
$('#switchView a.newWindow').click(function() {
var w = window.open(this.href,windowName(this.target));
w.focus();
return false;
@ -340,7 +340,8 @@ JS
$text = $obj->getHTML($this->dataRecord);
if($text) $items .= $text;
if(!$message) $message = $obj->getMessage($this);
$newMessage = $obj->getMessage($this);
if($newMessage) $message = $newMessage;
}
}

View File

@ -25,7 +25,7 @@ class SilverStripeNavigatorItem_StageLink extends SilverStripeNavigatorItem {
static $priority = 20;
function getHTML($controller) {
if(Versioned::current_stage() == 'Stage') {
if(Versioned::current_stage() == 'Stage' && !(ClassInfo::exists('SiteTreeFutureState') && SiteTreeFutureState::get_future_datetime())) {
return "<a class=\"current\">". _t('ContentController.DRAFTSITE', 'Draft Site') ."</a>";
} else {
$thisPage = $controller->Link();

View File

@ -7,7 +7,6 @@
border-top: 2px solid #d4d0c8;
background-color:#81858d;
height: 22px;
overflow:hidden;
background: #4d4e5a url(../../cms/images/textures/footerBg.gif) repeat-x left top;
}
@ -81,4 +80,4 @@
background:transparent url(../../cms/images/logout.gif) no-repeat scroll right top !important;
padding-bottom:4px;
padding-right:20px;
}
}