templates/Omelo/Templates/single.html.twig line 1

Open in your IDE?
  1. {% extends 'Omelo/Templates/base.html.twig' %}
  2. {% block template %}
  3.     {% if hideEdit is not defined %}
  4.         <input type="hidden" id="_enableEditTemplate" value="true">
  5.         <input type="hidden" id="_templateId" value="{{page.id}}">
  6.     {% endif %}
  7.     <!--Category section-->
  8.     <div class="category row mb-rem templateDiv" style="width: 60%; margin-left: auto!important; margin-right: auto!important;">
  9.         <div id="template-custom" class="fullwidth">
  10.         {% if data.custom is defined and data.custom |trim  is not empty %}
  11.             {% if data.custom is defined %}{{data.custom|raw}}{%endif%}
  12.         {% else %}
  13.             <div data-editable data-name=mainContent>
  14.                     <!-- editable mainContent -->
  15.                     {% if data.mainContent is defined %}
  16.                         {{data.mainContent | raw }}
  17.                     {% else %}
  18.                             <p>Votre texte</p>
  19.                     {% endif %}
  20.             </div>
  21.         {% endif %}
  22.     </div>
  23.     </div>
  24. {% endblock %}