{% embed '@ui/common/dashboard/sidebar/editor/nav.html.twig' with {
text: 'Editor',
icon: 'pencil-square-o',
htmlId: 'menu_editMode'
} %}{% endembed %}
{% inline_script %}
<script>
$(function() {
$('#menu_editMode').click(function(e) {
$('#cs-console-main').addClass('hide');
$('#gallery_data_entries__csge').csge('show');
e.preventDefault();
});
});
</script>
{% endinline %}
{% embed '@ui/common/dashboard/sidebar/editor/nav.html.twig' with {
text: 'Settings',
icon: 'gear',
htmlId: 'menu_settings'
} %}{% endembed %}
{% inline_script %}
<script>
$(function() {
$('#menu_settings').click(function(e) {
$('#gallery_data_entries__csge').csge('hide');
$('#cs-console-main').removeClass('hide');
e.preventDefault();
});
});
</script>
{% endinline %}
{% inline_script %}
<script>
$(function() {
{% if autoShow is defined and autoShow is same as(true) %}
$('#menu_editMode').click();
{% else %}
$('#menu_settings').click();
{% endif %}
});
</script>
{% endinline %}