<?php
$this->registerJsFile("@web/js/panelMenu.js");
?>
<ul class="nav nav-pills preferences">
    <li class="dropdown ">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-angle-down"></i></a>
        <ul class="dropdown-menu pull-right">
            <li><a href="javascript:togglePanelUp('<?php echo $id; ?>');" class="panel-collapse"><i
                        class="fa fa-minus-square"></i> <?php echo Yii::t('base', 'Collapse'); ?></a></li>
            <li><a href="javascript:togglePanelDown('<?php echo $id; ?>');" class="panel-expand" style="display:none;"><i
                        class="fa fa-plus-square"></i> <?php echo Yii::t('base', 'Expand'); ?></a></li>

            <?php
            echo $this->context->extraMenus;
            ?>
        </ul>
    </li>
</ul>

<script type = "text/javascript">

    $(document).ready(function () {

        // check and set panel state from cookie
        checkPanelMenuCookie('<?php echo $this->context->id; ?>');
    });


</script>