{% extends 'D2ContentBundle::base_admin.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block head_style_extra %} {% endblock head_style_extra %} {% block page_header %}
{% endblock page_header %} {% block content %} {% if entity.getRows|length > 0 %} {% for row in entity.getRows %}
{% if row.getRowItems|length > 0 %} {% for item in row.getRowItems %}
{% if item.caseStudy is not null %}
{% if item.path is not null %} VIDEO {% else %} VIDEO {% endif %}
{% elseif item.collection is not null %}
{% if item.path is not null %} IMAGE {% else %} COLLECTION {% endif %}
{% elseif item.resource is not null %} {% set img_name = asset("bundles/d2core/images/" ~ d2_resource_image_name(item.resource.origPath)) %} {% if item.resource.resourceType == constant('D2\\ResourceBundle\\Entity\\Resource::TYPE_RT_DOCUMENT') %}
{% if item.path is not null %} IMAGE {% else %} {% if item.resource.banner is null %} RESOURCE {% else %} RESOURCE {% endif %} {% endif %}
{% else %}
{% if item.resource.banner is not null %} RESOURCE {% endif %}

{{ item.resource.title }}

{{ item.resource.text|filterScript()|raw }}

{% endif %} {% elseif item.expert is not null %}
{% if item.path is not null %} IMAGE {% else %} {% if item.expert.customer.path %} EXPERT {% else %} EXPERT {% endif %} {% endif %}
{% elseif item.news is not null %}
{% if item.path is not null %} IMAGE {% else %} NEWS {% endif %}
{% elseif item.advert is not null %} {% if item.advert.advertType == constant('D2\\AdvertBundle\\Entity\\Advert::TYPE_AT_IMAGE_SMALL') or item.advert.advertType == constant('D2\\AdvertBundle\\Entity\\Advert::TYPE_AT_IMAGE_LARGE') %}
{% if item.path is not null %} IMAGE {% else %} ADVERT {% endif %}
{% elseif item.advert.advertType == constant('D2\\AdvertBundle\\Entity\\Advert::TYPE_AT_TEXT_BUSINESS') %}

{{ item.advert.title }}

{{ item.advert.text|filterScript()|raw }}

{% elseif item.advert.advertType == constant('D2\\AdvertBundle\\Entity\\Advert::TYPE_AT_PROPERTY_RENTAL') or item.advert.advertType == constant('D2\\AdvertBundle\\Entity\\Advert::TYPE_AT_PROPERTY_SALE') %}
{% if item.path is not null %} IMAGE {% else %} ADVERT {% endif %}
{% elseif item.advert.advertType == constant('D2\\AdvertBundle\\Entity\\Advert::TYPE_AT_NON_BUSINESS') %} {% else %}
{% if item.path is not null %} IMAGE {% else %} ADVERT {% endif %}
{% endif %} {% else %} NO CONTENT SELECTED {% endif %}
{% endfor %} {% endif %}
{% endfor %} {% endif %} {% endblock content %}