inPerspective() public static method

public static inPerspective ( $runtimeConfig, $key )
Example #1
0
        <?php 
if (\Pimcore\Config::inPerspective($runtimePerspective, "settings")) {
    ?>
            <li id="pimcore_menu_settings" data-menu-tooltip="<?php 
    echo $this->translate("settings");
    ?>
" class="pimcore_menu_item pimcore_menu_needs_children"></li>
        <?php 
}
?>
        <li id="pimcore_menu_maintenance" data-menu-tooltip="<?php 
echo $this->translate("deactivate_maintenance");
?>
" class="pimcore_menu_item " style="display:none;"></li>
        <?php 
if (\Pimcore\Config::inPerspective($runtimePerspective, "search")) {
    ?>
            <li id="pimcore_menu_search" data-menu-tooltip="<?php 
    echo $this->translate("search");
    ?>
" class="pimcore_menu_item pimcore_menu_needs_children"></li>
        <?php 
}
?>
    </ul>
</div>

<div id="pimcore_status">
    <div id="pimcore_status_dev" data-menu-tooltip="DEV MODE" style="display: none;"></div>
    <div id="pimcore_status_debug" data-menu-tooltip="<?php 
echo $this->translate("debug_mode_on");