mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX Correct SilverStripeNavigator correctly in templates
This commit is contained in:
parent
00fea26be9
commit
cf5a0984ad
@ -351,7 +351,7 @@ class ContentController extends Controller
|
||||
}
|
||||
$viewPageIn = _t('SilverStripe\\CMS\\Controllers\\ContentController.VIEWPAGEIN', 'View Page in:');
|
||||
|
||||
return <<<HTML
|
||||
$navigator = <<<HTML
|
||||
<div id="SilverStripeNavigator">
|
||||
<div class="holder">
|
||||
<div id="logInStatus">
|
||||
@ -366,6 +366,7 @@ class ContentController extends Controller
|
||||
</div>
|
||||
$message
|
||||
HTML;
|
||||
return DBField::create_field('HTMLFragment', $navigator);
|
||||
|
||||
// On live sites we should still see the archived message
|
||||
} else {
|
||||
@ -374,9 +375,9 @@ HTML;
|
||||
/** @var DBDatetime $dateObj */
|
||||
$dateObj = DBField::create_field('Datetime', $date);
|
||||
// $dateObj->setVal($date);
|
||||
return "<div id=\"SilverStripeNavigatorMessage\">" .
|
||||
return DBField::create_field('HTMLFragment', "<div id=\"SilverStripeNavigatorMessage\">" .
|
||||
_t('SilverStripe\\CMS\\Controllers\\ContentController.ARCHIVEDSITEFROM', 'Archived site from') .
|
||||
"<br>" . $dateObj->Nice() . "</div>";
|
||||
"<br>" . $dateObj->Nice() . "</div>");
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user