{% macro colSection(sectionName, sectionType = 'hero', numberOfColumns = '2_columns', leftCol = 'Asset', assetType= 'Image', hasBg = 'false', hasColorMode, displayContent, title, subTitle, content, ratingReviewsAmount, ratingReviewsText, ratingValue, showCloseButton, first_row, offer, last_row, showCtaDesktop = 'false', showCtaMobile = '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', showCarousel = 'false', carouselItems, showTestimonialsBanner, testimonialsBannerFirstLine, testimonialsBannerTitle, testimonialsBannerContent, testimonialsBannerBannerImage, testimonialsBannerBannerImageAlt, showTestimonialsVideo, testimonialsVideoTitle, testimonialsVideoBrightcoveVideoID, testimonialsVideoHasCustomPlay, testimonialsVideoMutedAndAutoPlay, testimonialsVideoPlaceholder, testimonialsVideoPlaceholderAlt, reviewsTitle, reviewsList, scrollToCart) %}
{% 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 title != '' or subTitle != '' %}

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

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

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

{% endif %} {% if ratingReviewsAmount != '' or ratingValue != ''%}
{% endif %} {% if ratingReviewsAmount != '' or ratingReviewsText != '' %} {{ratingReviewsAmount}} {{ratingReviewsText}} {% endif %} {% if ratingValue != '' %} {{ratingValue}} {% endif %} {% if reviewsAmount != '' or ratingValue != ''%}
{% endif %} {% else %} {% if title != '' %}

{{title}}

{% endif %} {% endif %} {% if content and content != '' %} {% if sectionType == 'paragraphs' %} {% for paragraph in content %}

{{paragraph.paragraph}}

{% endfor %} {% else %}

{{content}}

{% endif %} {% endif %} {% if sectionType == 'ingredients' and showCarousel == 'true' %}
{% for item in carouselItems %}
{{item.title}}
{% endfor %}
{% for item in carouselItems %}
{{item.title}}

{{item.content}}

{% endfor %}
{% endif %} {% if sectionType == 'reviews' %} {% if showTestimonialsBanner and showTestimonialsBanner == "true" %}
{% if testimonialsBannerTitle and testimonialsBannerTitle != '' %}

{{testimonialsBannerTitle}}

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

{{testimonialsBannerContent}}

{% endif %} {% if testimonialsBannerBannerImage and testimonialsBannerBannerImage != '' %} {{testimonialsBannerBannerImageAlt}} {% endif %}
{% endif %} {% if showTestimonialsVideo and showTestimonialsVideo == "true" %} {% from "../_vsl/_vsl.html" import vsl with context %} {{ vsl( title = testimonialsVideoTitle, brightcoveVideoStorage = "true", brightcoveAccountID = "6415579764001", brightcoveVideoID = testimonialsVideoBrightcoveVideoID, customPlay = testimonialsVideoHasCustomPlay, ID = 'testimonialsVideoSection', mutedAndAutoPlay = testimonialsVideoMutedAndAutoPlay, path = path, image_placeholder = testimonialsVideoPlaceholder, image_placeholder_alt = testimonialsVideoPlaceholderAlt, videoSrc = '' )}} {% endif %} {% if reviewsTitle and reviewsTitle != '' %}

{{reviewsTitle}}

{% endif %}
{% for review in reviewsList %}

{{review.ratingValue}} out of 5

{{review.date}}
{% if review.title != '' %}
{{review.title}}
{% endif %}

{{review.comment}}

{{review.author}} {% if showReviewsVerifiedBuyerLabel == 'true' %} Verified Buyer {% endif %}
{% endfor %}
{% endif %} {% if disclaimer and disclaimer != '' %}
{{disclaimer}}
{% endif %} {% if sectionType != 'popscreen' %} {% if showCtaDesktop == 'true' or showCtaMobile == 'true' %}
{% from "../sc_CTA/m_CTA.html" import m_CTA %} {{ m_CTA ( link = '', target_option = '', forwardParams = 'false', showCta= 'true', ctaText = mainBtnText, close = 'false' ) }}
{% endif %} {% elif sectionType == 'popscreen' %} {% if showCtaDesktop == 'true' or showCtaMobile == 'true' %}
{% from "../sc_CTA/m_CTA.html" import m_CTA %} {{ m_CTA ( link = '', target_option = '', forwardParams = 'false', showCta= 'true', ctaText = mainBtnText, close = 'true' ) }}
{% endif %} {% if showDecline and showDecline == "true" %} {% from "../sc_CTA/m_CTA.html" import m_CTA %} {{ m_CTA ( link = '', target_option = '', forwardParams = 'false', showCta= 'true', ctaText = declineButtonContent, close = 'true' ) }} {% endif %} {% endif %}
{% if numberOfColumns == '2_columns' %}
{% if assetType== 'Image' %} {{imgAlt}} {% elif assetType== 'Video' %} {% from "../_vsl/_vsl.html" import vsl with context %} {{ 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 %}