mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge remote-tracking branch 'origin/4.0' into 4.1
# Conflicts: # code/Controllers/ContentController.php
This commit is contained in:
commit
c6af8856c8
@ -356,7 +356,7 @@ class ContentController extends Controller
|
|||||||
}
|
}
|
||||||
$viewPageIn = _t(__CLASS__ . '.VIEWPAGEIN', 'View Page in:');
|
$viewPageIn = _t(__CLASS__ . '.VIEWPAGEIN', 'View Page in:');
|
||||||
|
|
||||||
return <<<HTML
|
$navigator = <<<HTML
|
||||||
<div id="SilverStripeNavigator">
|
<div id="SilverStripeNavigator">
|
||||||
<div class="holder">
|
<div class="holder">
|
||||||
<div id="logInStatus">
|
<div id="logInStatus">
|
||||||
@ -371,6 +371,7 @@ class ContentController extends Controller
|
|||||||
</div>
|
</div>
|
||||||
$message
|
$message
|
||||||
HTML;
|
HTML;
|
||||||
|
return DBField::create_field('HTMLFragment', $navigator);
|
||||||
|
|
||||||
// On live sites we should still see the archived message
|
// On live sites we should still see the archived message
|
||||||
} else {
|
} else {
|
||||||
@ -379,9 +380,9 @@ HTML;
|
|||||||
/** @var DBDatetime $dateObj */
|
/** @var DBDatetime $dateObj */
|
||||||
$dateObj = DBField::create_field('Datetime', $date);
|
$dateObj = DBField::create_field('Datetime', $date);
|
||||||
// $dateObj->setVal($date);
|
// $dateObj->setVal($date);
|
||||||
return "<div id=\"SilverStripeNavigatorMessage\">" .
|
return DBField::create_field('HTMLFragment', "<div id=\"SilverStripeNavigatorMessage\">" .
|
||||||
_t(__CLASS__ . '.ARCHIVEDSITEFROM', 'Archived site from') .
|
_t(__CLASS__ . '.ARCHIVEDSITEFROM', 'Archived site from') .
|
||||||
"<br>" . $dateObj->Nice() . "</div>";
|
"<br>" . $dateObj->Nice() . "</div>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user