app/template/default/Block/category_nav_pc.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% block stylesheet %}
  9.     <style>
  10. .ec-categoryNaviRole {
  11. background-color:#abcd03;
  12. max-width: 100%;
  13. }
  14. .ec-itemNav.pc-nav{
  15.    height: 47px; 
  16. }
  17. .ec-itemNav__nav li a {
  18. background-color:#abcd03;
  19.     color: #374700;
  20.        height: 47px; 
  21. }
  22. li.ec-globalNavi__link a:hover{
  23.   background-color:#C1E706;
  24.          height: 47px; 
  25. }
  26. .hd_dotline{
  27.     background-color:#abcd03;
  28.     border-top: dashed #fff 2px;
  29.     height:7px;
  30. }
  31.     </style>
  32. {% endblock %}
  33. {% set Categories = repository('Eccube\\Entity\\Category').getList() %}
  34. {% macro tree(Category) %}
  35.     {% from _self import tree %}
  36.     <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
  37.         {{ Category.name }}
  38.     </a>
  39.     {% if Category.children|length > 0 %}
  40.         <ul>
  41.             {% for ChildCategory in Category.children %}
  42.                 <li>
  43.                     {{ tree(ChildCategory) }}
  44.                 </li>
  45.             {% endfor %}
  46.         </ul>
  47.     {% endif %}
  48. {% endmacro %}
  49. {# @see https://github.com/bolt/bolt/pull/2388 #}
  50. {% from _self import tree %}
  51. <div class="ec-categoryNaviRole">
  52.     <div class="ec-itemNav pc-nav">
  53.         <ul class="ec-itemNav__nav">
  54.             
  55.             <li class="ec-globalNavi__link">
  56.                 <a href="{{ url('user_data', {'route': 'about_kofun'}) }}">{{ '古墳墓とは'|trans }}</a>
  57.             </li>
  58.             <li class="ec-globalNavi__link">
  59.                 <a href="{{ url('product_list') }}?category_id=1">{{ '販売中の古墳'|trans }}</a>
  60.             </li>
  61.             
  62.             <li class="ec-globalNavi__link">
  63.                 <a href="{{ url('user_data', {'route': 'planning'}) }}">{{ '計画中の古墳'|trans }}</a>
  64.             </li>
  65.             
  66.             <li class="ec-globalNavi__link">
  67.                 <a href="{{ url('faq') }}">{{ 'よくある質問'|trans }}</a>
  68.             </li>
  69.             
  70.         </ul>
  71.     </div>
  72.     
  73.     
  74. </div>
  75. <div class="hd_dotline">    </div>