{% macro colSection(sectionName, sectionType = 'hero', numberOfColumns = '2_columns', leftCol = 'Asset', assetType= 'Image', hasBg = 'false', hasColorMode, displayContent, title, subTitle, content, quote, quoteAuthor, authorImage, showCloseButton, first_row, offer, last_row, showCta = 'false', mainBtnText, path, imgMobile, imgDesktop, imgAlt, logoID, showDecline, declineButtonContent, disclaimer, displayPlayButton = 'false', customPlay = 'false', placeholder, alt, ID, video_src_desktop, video_src_mobile, hasControls = 'false', isMutedAndAutoplay = 'true', 'playInLoop' = 'false') %}
{% if numberOfColumns == '2_columns' and assetType== 'Image' %} {% endif %} {% if sectionType == 'popscreen' %}
{% if showCloseButton and showCloseButton == 'true' %}
{% from "../_icon/_icon.html" import icon %} {{ icon( iconID = 'CLOSE', className = 'icon', modifierClass = 'logo' ) }}
{% endif %}
{% endif %}
{% if sectionType == 'hero' or sectionType == 'popscreen' %}
{% if sectionType == 'hero' %} {% if displayContent == 'show_title' %}

{{subTitle}} {{title}}

{% endif %} {% if displayContent == 'show_quote' %}

{{subTitle}} {{quote}}

{{quoteAuthor}}
{{quoteAuthor}}
{% endif %} {% elif sectionType == 'popscreen' %}

{{first_row}} {{offer}} {{last_row}}

{% endif %} {% else %} {% if title != '' %}

{{title}}

{% endif %} {% endif %} {% if content and content != '' %}

{{content}}

{% endif %} {% if disclaimer and disclaimer != '' %}
{{disclaimer}}
{% endif %} {% if showCta == 'true' and sectionType != 'popscreen'%} {% from "../_CTABtn/_CTABtn.html" import CTA %} {{ CTA ( wrapCTA= 'false', ctaID= '', ctaLink= '', ctaTarget= '', dataParam= 'false', ctaParam= 'false', ctaClass= '', ctaText= mainBtnText, hasIcon = global.mainBtn_hasIcon ) }} {% elif showCta == 'true' and sectionType == 'popscreen' %} {% from "../_CTABtn/_CTABtn.html" import CTA %} {{ CTA ( wrapCTA= 'false', ctaID= '', ctaLink= '', ctaTarget= '', dataParam= 'false', ctaParam= 'false', ctaClass= '', ctaText= mainBtnText, hasIcon = global.mainBtn_hasIcon, addParamName = 'close' ) }} {% if showDecline and showDecline == "true" %} {% from "../_CTABtn/_CTABtn.html" import CTA %} {{ CTA ( wrapCTA= 'false', ctaID= '', ctaLink= '', ctaTarget= '', dataParam= 'false', ctaParam= 'false', ctaClass= '', ctaText= declineButtonContent, hasIcon = global.mainBtn_hasIcon, addParamName = 'close' ) }} {% endif %} {% endif %}
{% if numberOfColumns == '2_columns' %}
{% if assetType== 'Image' %} {{imgAlt}} {% elif assetType== 'Video' %} {% from "../_vsl/_vsl.html" import vsl %} {{ vsl( displayPlayButton = displayPlayButton, customPlay = customPlay, ID = ID, placeholder = '', alt = alt, src = video_src_desktop, srcMobile = video_src_mobile, path = path, hasControls = hasControls, isMutedAndAutoplay = isMutedAndAutoplay, playInLoop = playInLoop, playsinline = 'true' ) }} {% endif %}
{% endif %} {% if showCta == 'true' and sectionType == 'popscreen' %} {% endif %}
{% endmacro %}