templates/content/tmpl/1-col-sidebar.html.twig line 11
{# 1 column sidebar #}
<div class="container content">
<div class="row">
<div class="col-12 col-md-9">
{{ render(controller(
'App\\Controller\\Master\\ContentController::pinnedCurtainAd',
{
'base_url': app.request.getSchemeAndHttpHost(),
'uri': app.request.getRequestUri(),
'current_route': app.request.attributes.get('_route')
}
))
}}
{#
{% set current_route = app.request.attributes.get('_route') %}
{% if site_code == constant("App\\Entity\\Content::SITE_RCS") %}
{% if (content.getType() == constant("App\\Entity\\Content::THE_HUB") or content.getType() == constant("App\\Entity\\Content::WEBINAR") or content.getType() == constant("App\\Entity\\Content::EBOOK") or content.getType() == constant("App\\Entity\\Content::VIDEO")) %}
{% include "includes/curtain-ads/rlw.html.twig" %}
{% endif %}
{% if (
(app.request.pathinfo == '/rcs-influencers')
or (app.request.pathinfo == '/rlw-news-header')
or (app.request.pathinfo == '/roofing-galleries')
or (app.request.pathinfo == '/news-room')
or (app.request.pathinfo == '/roofing-galleries')
or (app.request.pathinfo == '/rcs-weekly-newsletters-week-review')
or (app.request.pathinfo == '/roofing-galleries')
or (app.request.pathinfo == '/trends-report-results')
or (app.request.pathinfo == '/forum-news-header')) %}
{% include "includes/curtain-ads/newForum.html.twig" %}
{% endif %}
{% if ((app.request.pathinfo == '/what-is-r-club')
or (app.request.pathinfo == '/members-only')
or (app.request.pathinfo == '/consulting')
or (app.request.pathinfo == '/new-club-member')
or (app.request.pathinfo == '/rcs-club-sign-up')
or (app.request.pathinfo == '/handy-forms')
or (app.request.pathinfo == '/sign-up')
or (app.request.pathinfo == '/roofers-safety-information')
or (app.request.pathinfo == '/coffee-break')
or (app.request.pathinfo == '/roofer-of-the-month')
or current_route == "r-club-perk"
) %}
{% include "includes/curtain-ads/rclub.html.twig" %}
{% endif %}
{ # information on section # }
{% if (
(app.request.pathinfo == '/opportunities') or (app.request.pathinfo == '/promos-rebates')
or (app.request.pathinfo == '/buy-online') or (app.request.pathinfo == '/quick-quiz')
or (app.request.pathinfo == '/contests-and-games') or (app.request.pathinfo == '/take-our-survey')
or (app.request.pathinfo == '/rcs-photo-contest') or (app.request.pathinfo == '/information-on')
or (app.request.pathinfo == '/roofing') or (app.request.pathinfo == '/information-on')
or (app.request.pathinfo == '/product-information/roofing-technology') or (app.request.pathinfo == '/scholarships')
or (app.request.pathinfo == '/vocational-schools') or (app.request.pathinfo == '/events')
or (app.request.pathinfo == '/add-us') or (app.request.pathinfo == '/building-owners')
or (app.request.pathinfo == '/safety-tip-of-the-week') or (app.request.pathinfo == '/product-information')
or (app.request.pathinfo == '/training-resources') or (app.request.pathinfo == '/capacitacion-en-espanol')
or (app.request.pathinfo == '/advocacy') or (app.request.pathinfo == '/trade-roofing-associations')
or (app.request.pathinfo == '/rcs-cares') or (app.request.pathinfo == '/look-up')
or (app.request.pathinfo == '/join-roofing-industry') or (app.request.pathinfo == '/awards')
or (app.request.pathinfo == '/giving-back') or (app.request.pathinfo == '/veterans')
or (app.request.pathinfo == '/about-us') or (app.request.pathinfo == '/advertise-on-rcs')
or (app.request.pathinfo == '/canada-content') or (app.request.pathinfo == '/rcs-en-espanol')
or (app.request.pathinfo == '/meet-the-team') or (app.request.pathinfo == '/partners')
or (app.request.pathinfo == '/how-tos') or (app.request.pathinfo == '/contact-us')
or (current_route == 'promos') or (current_route == 'contests')
or (current_route == 'scholarship') or (current_route == 'event')
or (current_route == 'award')
) %}
{% include "includes/curtain-ads/information.html.twig" %}
{% endif %}
{% endif %}
#}
{% if content.getShowTitle() %}
<h1>{{ content.getTitle() | raw }}</h1>
{% endif %}
{% if content.getFeaturedImageTag() %}
{% if content.getMediaURL() %}<a href="{{content.getMediaURL()}}">{% endif %}
{% if site_code is defined and site_code == constant("App\\Entity\\Content::SITE_AAR") %}
{# center image on AAR #}
<div class="post-thumbnail">
{{ content.getFeaturedImageTag("", "max-height: 450px")|raw }}
</div>
{% else %}
{#{% if current_route == 'ebook' %}#}
{% if app.request.attributes.get('_route') == 'ebook' %}
{{ content.getFeaturedImageTag("display-block","max-width: 40%")|raw }}
{% else %}
{{ content.getFeaturedImageTag("display-block","")|raw }}
{% endif %}
{% endif %}
{% if content.getMediaURL() %}</a>{% endif %}
{% endif %}
{# show full content #}
{% if content.getContentFull() is not empty %}
{{ content.getContentFull() | wordpress | raw }}
{% endif %}
{# show builder content #}
{% if content.getContentBuilder() and content.getContentBuilder() != '{}' %}
{{ content.getContentBuilder() | builder | raw }}
{% endif %}
{# show module content #}
{% set page = content %}
{% set modules = content.getContentMetaValueByKey("mtm_content_modules") %}
{% if modules is not empty %}
{# { modules } #}
{% set modules = unserialize(modules) %}
{% include "content/tmpl/mtm-module-loop.html.twig" %}
{% endif %}
{# the hub link types - TODO - find better place for these exceptions #}
{% if content.getType() == constant("App\\Entity\\Content::THE_HUB") %}
{% set videoLink = content.getContentMetaValueByKey("rcs_learning_center_video") %}
{% if videoLink is not empty %}
<p>
<a href="{{ videoLink }}">
<i class="fa fa-play-circle"></i>
Click here to view the video.</a>
</p>
{% endif %}
{#social share buttons#}
{% endif %}
{# webinar links - TODO - find better place for these exceptions #}
{% if content.getType() == constant("App\\Entity\\Content::WEBINAR") %}
{% set webinarLink = content.getContentMetaValueByKey("webinar_hostandguest") %}
{% if webinarLink is not empty %}
{{ webinarLink | raw }}
{% endif %}
{% endif %}
{% if content.getScriptTag() %}
{{ content.getScriptTag() | wordpress | raw }}
{% endif %}
{% if content.getType() == constant("App\\Entity\\Content::EBOOK") or
content.getType() == constant("App\\Entity\\Content::AWARD") or
content.getType() == constant("App\\Entity\\Content::VIDEO") or
content.getType() == constant("App\\Entity\\Content::WEBINAR") or
content.getType() == constant("App\\Entity\\Content::CONTEST_GAMES") or
content.getType() == constant("App\\Entity\\Content::PAGE") or
content.getType() == constant("App\\Entity\\Content::PROMOS_REBATES") or
content.getType() == constant("App\\Entity\\Content::R_CLUB_PERK") or
content.getType() == constant("App\\Entity\\Content::THE_HUB") or
content.getType() == constant("App\\Entity\\Content::SCHOLARSHIP")
%}
{#social share buttons#}
{% include "includes/social-share.html.twig" %}
{% endif %}
{# /partner-galleries #}
{% set mtm_grid = content.getContentMetaValueByKey("mtm_grid_archive_manual") %}
{% set mtm_cols = content.getContentMetaValueByKey("mtm_grid_archive_per_row") %}
{% if mtm_cols is empty %}
{% set mtm_cols = 3 %}
{% endif %}
{% if mtm_grid is not empty %}
{% set mtm_grid = unserialize(mtm_grid) %}
{% set grid_count = 0 %}
<div class="row my-3">
{% for gal_id in mtm_grid %}
{% if grid_count is divisible by(mtm_cols) %}
</div>
<div class="row my-3">
{% endif %}
<div class="col-md-{{ 12 / mtm_cols }}">
{% set gal = get_entity("Content", "old_id", gal_id) %}
<a href="{{ gal.getURL() }}">
{{ gal.getFeaturedImageTag("","")|raw }}
<br/>
{{ gal.getTitle() }}
</a>
</div>
{% set grid_count = grid_count + 1 %}
{% endfor %}
</div>
{% endif %}
{% block bottom %}
{% include "includes/bottom.html.twig" %}
{% endblock %}
</div>
<div class="col-md-3 d-none d-md-block">
{% include "includes/sidebar.html.twig" %}
</div>
</div>
</div>