mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #114 from ohararyan/silverstripe-cms
--- http://open.silverstripe.org/ticket/7214 Added watermark to show current state of preview.
This commit is contained in:
commit
1fa54abf6c
@ -119,6 +119,12 @@ class SilverStripeNavigatorItem extends ViewableData {
|
||||
* For example, a "future state" item might show a date selector.
|
||||
*/
|
||||
function getHTML() {}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
* Text displayed in watermark
|
||||
*/
|
||||
function getWatermark() {}
|
||||
|
||||
/**
|
||||
* Optional link to a specific view of this record.
|
||||
@ -214,6 +220,10 @@ class SilverStripeNavigatorItem_StageLink extends SilverStripeNavigatorItem {
|
||||
return "<a href=\"$this->recordLink\">". _t('ContentController.DRAFTSITE', 'Draft Site') ."</a>";
|
||||
}
|
||||
}
|
||||
|
||||
function getWatermark() {
|
||||
return _t('ContentController.DRAFTSITE');
|
||||
}
|
||||
|
||||
function getMessage() {
|
||||
return "<div id=\"SilverStripeNavigatorMessage\" title=\"". _t('ContentControl.NOTEWONTBESHOWN', 'Note: this message will not be shown to your visitors') ."\">". _t('ContentController.DRAFTSITE', 'Draft Site') ."</div>";
|
||||
@ -258,6 +268,10 @@ class SilverStripeNavigatorItem_LiveLink extends SilverStripeNavigatorItem {
|
||||
return "<a href=\"$this->recordLink\">". _t('ContentController.PUBLISHEDSITE', 'Published Site') ."</a>";
|
||||
}
|
||||
}
|
||||
|
||||
function getWatermark() {
|
||||
return _t('ContentController.PUBLISHEDSITE');
|
||||
}
|
||||
|
||||
function getMessage() {
|
||||
return "<div id=\"SilverStripeNavigatorMessage\" title=\"". _t('ContentControl.NOTEWONTBESHOWN', 'Note: this message will not be shown to your visitors') ."\">". _t('ContentController.PUBLISHEDSITE', 'Published Site') ."</div>";
|
||||
|
Loading…
Reference in New Issue
Block a user