apostrophe
Version:
Apostrophe is a user-friendly content management system. You'll need more than this core module. See apostrophenow.org to get started.
23 lines (21 loc) • 1.05 kB
HTML
{# Raw HTML widget. This is carefully constructed and should not be altered without #}
{# consultation. Check out the hack in decoratePageContent in the pages module that #}
{# pays close attention to all of these comments. -Tom #}
{# Do not remove this div, needed for parsing #}
<div data-raw-html>
{# Do not remove these contents, used by the pages module to spot and decode the #}
{# content if and only if we are rendering a full page so document.write does not #}
{# blow up the world #}
<!-- APOS-RAW-HTML-BEFORE -->
<p class="apos-html-help">{{ __('To see your raw HTML code in action you must save your work and refresh the page. If the page becomes unreadable, add ?safe_mode to the end of the URL and load the page again.') }}</p>
{% if (not options.editView) %}
{# Hides its content #}
<div class="apos-raw-html-source">
<!-- APOS-RAW-HTML-START -->
{# Do not remove the escaping, see above #}
{{ item.code | e }}
<!-- APOS-RAW-HTML-END -->
</div>
{% endif %}
<!-- APOS-RAW-HTML-AFTER -->
</div>