app/Plugin/TabaCustomFields2/Resource/template/admin/snippet/nav_taba_app.twig line 1

Open in your IDE?
  1. {% set const = TabaCustomFields2Constants %}
  2. <script>
  3.     $(function() {
  4.         var baseNav = $('ul.c-mainNavArea__nav > li').eq(4);{# コンテンツ管理の下に差し込む #}
  5.         var parentNav = $('#{{ constant('PLUGIN_CATEGORY_ID',const) }}-snippet');
  6.         baseNav.after(parentNav.html());
  7.     });
  8. </script>
  9. <ul id="{{ constant('PLUGIN_CATEGORY_ID',const) }}-snippet" style="display:none;">
  10.     <li class="c-mainNavArea__navItem">
  11.         <a
  12.             class="c-mainNavArea__navItemTitle{{ active_menus(menus)[0] != constant('PLUGIN_CATEGORY_ID',const) ? ' collapsed' }}"
  13.             data-bs-toggle="collapse"
  14.             href="#nav-{{ constant('PLUGIN_CATEGORY_ID',const) }}"
  15.             aria-expanded="{{ active_menus(menus)[0] == constant('PLUGIN_CATEGORY_ID',const) ? 'true' : 'false' }}"
  16.             aria-controls="nav-{{ constant('PLUGIN_CATEGORY_ID',const) }}">
  17.         <svg version="1.1" class="cb" style="width:20px;height:20px;margin-right:.5em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" xml:space="preserve">';<polygon fill="#54687A" points="52.1,62.2 33.1,95.1 71.1,95.1"/><polygon fill="#54687A" points="41.2,62.1 25.1,62.1 44.1,29.2 71.1,76.1 87.7,76.1 44.4,1.1 1.1,76.1 33.1,76.1"/></svg>
  18.         <span>{{ constant('PLUGIN_CATEGORY_NAME',const)|raw }}</span>
  19.         </a>
  20.         <ul class="collapse {% if active_menus(menus)[0] == constant('PLUGIN_CATEGORY_ID',const) %} show{% endif %}" id="nav-{{ constant('PLUGIN_CATEGORY_ID',const) }}">
  21.         </ul>
  22.     </li>
  23. </ul>