<?php
$val .= '<button class="sticky-toggle" type="button" title="';

$val .= _t('SilverStripe\Admin\LeftAndMain.MenuToggleStickyNav',"Sticky nav");
$val .= '">';

$val .= _t('SilverStripe\Admin\LeftAndMain.MenuToggleStickyNav',"Sticky nav");
$val .= '</button>
<span class="sticky-status-indicator">';

$val .= _t('SilverStripe\Admin\LeftAndMain.MenuToggleAuto',"Auto");
$val .= '</span>

<a class="toggle-expand flexbox-area-grow" href="' . (\SilverStripe\View\SSViewer::getRewriteHashLinksDefault()
    ? \SilverStripe\Core\Convert::raw2att( preg_replace("/^(\\/)+/", "/", $_SERVER['REQUEST_URI'] ) )
    : "") . '#" data-toggle="tooltip" title="';

$val .= _t('SilverStripe\Admin\LeftAndMain.ExpandPanel',"Expand Panel");
$val .= '"><span>&raquo;</span></a>
<a class="toggle-collapse flexbox-area-grow" href="' . (\SilverStripe\View\SSViewer::getRewriteHashLinksDefault()
    ? \SilverStripe\Core\Convert::raw2att( preg_replace("/^(\\/)+/", "/", $_SERVER['REQUEST_URI'] ) )
    : "") . '#" data-toggle="tooltip" title="';

$val .= _t('SilverStripe\Admin\LeftAndMain.CollapsePanel',"Collapse Panel");
$val .= '"><span>&laquo;</span></a>
';

