{% extends "omCmsMain/theme/"|add:siteInfoData.siteTheme.themeName|add:"/base.html" %} {% load includeif_template_exists %} {% block head-title %} {{siteInfoData.siteName}} {% endblock %} {% block body-header %} {% include "omCmsMain/theme/"|add:siteInfoData.siteTheme.themeName|add:"/header.html" %} {% endblock %} {% block body-main %}
{% if articleListHomePage %}
{% for articleitem in articleList %} {% if articleitem.articleCategory|stringformat:"s" == "homepage" %}
{% with "omCmsMain/theme/"|add:siteInfoData.siteTheme.themeName|add:"/sectionLayouts/"|add:articleitem.articleCategory.itemCategory|add:".html" as nameTemplate %} {% if nameTemplate|template_exists %} {% include nameTemplate %} {% else %} {% with "omCmsMain/theme/"|add:siteInfoData.siteTheme.themeName|add:"/sectionLayouts/default.html" as defaultTemplate %} {# include defaultTemplate %} {% endwith %} {% endif %} {% endwith %}
{% endif %} {% endfor %}
{% endif %} {% if siteInfoData.displaySlideShow %} {% include 'omCmsMain/theme/elevate/sectionLayouts/slider.html' %} {% endif %} {% for item in itemList %}
{% for articleitem in articleList %} {% if articleitem.articleCategory|stringformat:"s" == item.itemCategory|stringformat:"s" %} {% if item.itemTemplate %} {% with "omCmsMain/theme/"|add:siteInfoData.siteTheme.themeName|add:"/sectionLayouts/"|add:item.itemTemplate.itemLayoutName|add:".html" as nameTemplate %} {% if nameTemplate|template_exists %} {% include nameTemplate %} {% endif %} {% endwith %} {% else %} {% with "omCmsMain/theme/"|add:siteInfoData.siteTheme.themeName|add:"/sectionLayouts/"|add:item.itemCategory|add:".html" as nameTemplate %} {% if nameTemplate|template_exists %} {% include nameTemplate %} {% else %} {% with "omCmsMain/theme/"|add:siteInfoData.siteTheme.themeName|add:"/sectionLayouts/default.html" as nameTemplate %} {% include nameTemplate %} {% endwith %} {% endif %} {% endwith %} {% endif %} {% endif %} {% endfor %}

{% endfor %}
{% endblock %} {% block body-footer %} {% with "omCmsMain/theme/"|add:siteInfoData.siteTheme.themeName|add:"/footer.html" as footerTemplate %} {% include footerTemplate %} {% endwith %} {% endblock %}