ui/twig/modules/gallery/includes/sidebar.html.twig line 1

Open in your IDE?
  1. {% embed '@ui/common/dashboard/sidebar/editor/nav.html.twig' with {
  2.     text: 'Editor',
  3.     icon: 'pencil-square-o',
  4.     htmlId: 'menu_editMode'
  5. } %}{% endembed %}
  6. {% inline_script %}
  7.     <script>
  8.         $(function() {
  9.             $('#menu_editMode').click(function(e) {
  10.                 $('#cs-console-main').addClass('hide');
  11.                 $('#gallery_data_entries__csge').csge('show');
  12.                 e.preventDefault();
  13.             });
  14.         });
  15.     </script>
  16. {% endinline %}
  17. {% embed '@ui/common/dashboard/sidebar/editor/nav.html.twig' with {
  18.     text: 'Settings',
  19.     icon: 'gear',
  20.     htmlId: 'menu_settings'
  21. } %}{% endembed %}
  22. {% inline_script %}
  23.     <script>
  24.         $(function() {
  25.             $('#menu_settings').click(function(e) {
  26.                 $('#gallery_data_entries__csge').csge('hide');
  27.                 $('#cs-console-main').removeClass('hide');
  28.                 e.preventDefault();
  29.             });
  30.         });
  31.     </script>
  32. {% endinline %}
  33. {% inline_script %}
  34.     <script>
  35.         $(function() {
  36.             {% if autoShow is defined and autoShow is same as(true) %}
  37.                 $('#menu_editMode').click();
  38.             {% else %}
  39.                 $('#menu_settings').click();
  40.             {% endif %}
  41.         });
  42.     </script>
  43. {% endinline %}