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

Open in your IDE?
  1. {#
  2. Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
  3. For the full copyright and license information, please view the LICENSE
  4. file that was distributed with this source code.
  5. #}
  6. {% set const = TabaCMS2Constants %}
  7. <script>
  8.     $(function() {
  9.         var baseNav = $('ul.c-mainNavArea__nav > li').eq(4);{# コンテンツ管理の下に差し込む #}
  10.         var parentNav = $('#{{ constant('PLUGIN_CATEGORY_ID',const) }}-snippet');
  11.         baseNav.after(parentNav.html());
  12.     });
  13. </script>
  14. <ul id="{{ constant('PLUGIN_CATEGORY_ID',const) }}-snippet" style="display:none;">
  15.     <li class="c-mainNavArea__navItem">
  16.         <a
  17.             class="c-mainNavArea__navItemTitle{{ active_menus(menus)[0] != constant('PLUGIN_CATEGORY_ID',const) ? ' collapsed' }}"
  18.             data-bs-toggle="collapse"
  19.             href="#nav-{{ constant('PLUGIN_CATEGORY_ID',const) }}"
  20.             aria-expanded="{{ active_menus(menus)[0] == constant('PLUGIN_CATEGORY_ID',const) ? 'true' : 'false' }}"
  21.             aria-controls="nav-{{ constant('PLUGIN_CATEGORY_ID',const) }}">
  22.         <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>
  23.         <span>{{ constant('PLUGIN_CATEGORY_NAME',const)|raw }}</span>
  24.         </a>
  25.         <ul class="collapse {% if active_menus(menus)[0] == constant('PLUGIN_CATEGORY_ID',const) %} show{% endif %}" id="nav-{{ constant('PLUGIN_CATEGORY_ID',const) }}">
  26.         </ul>
  27.     </li>
  28. </ul>