app/Plugin/CategoryExtensionB/Resource/template/default/category.twig line 1

Open in your IDE?
  1. {% if Category is not empty %}
  2. <script>
  3.     $(function () {
  4.         $('#category_extension_b_header_contents').prependTo( $('.ec-layoutRole__main').first() );
  5.         $('#category_extension_b_footer_contents').appendTo( $('.ec-layoutRole__main').first() );
  6.         $('#category_extension_b_template').remove();
  7.     });
  8. </script>
  9. <div id="category_extension_b_template" style="display: none;">
  10.     <div id="category_extension_b_header_contents">
  11.         <p style="">{{ Category.header_contents|raw|nl2br }}</p>
  12.     </div>
  13.     <div id="category_extension_b_footer_contents">
  14.         <p style="">{{ Category.footer_contents|raw|nl2br }}</p>
  15.     </div>
  16. </div>
  17. {% endif %}