Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Utilize withCountry input for showing country
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed Jul 19, 2024
1 parent f8d76ce commit ca1db01
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $ const requestQuote = defaultValue(input.requestQuote, true);
$ const displayFeaturedSocialLinks = defaultValue(input.displayFeaturedSocialLinks, false);
$ const socialLinks = getAsArray(content, "socialLinks");
$ const showSocial = socialLinks.length;
$ const withCountry = defaultValue(input.withCountry, false);
// linkOffsite is an object like the following:
/**
{
Expand Down Expand Up @@ -73,7 +74,9 @@ $ const blockName = "section-feed-content-node";
<marko-web-content-address1 block-name=blockName obj=content />
<marko-web-content-address2 block-name=blockName obj=content />
<marko-web-content-city-state-zip block-name=blockName obj=content />
<marko-web-content-country block-name=blockName obj=content />
<if(withCountry)>
<marko-web-content-country block-name=blockName obj=content />
</if>
<marko-web-content-tollfree block-name=blockName obj=content />
<if(requestQuote)>
<marko-web-link
Expand Down Expand Up @@ -112,7 +115,9 @@ $ const blockName = "section-feed-content-node";
<marko-web-content-address1 block-name=blockName obj=content />
<marko-web-content-address2 block-name=blockName obj=content />
<marko-web-content-city-state-zip block-name=blockName obj=content />
<marko-web-content-country block-name=blockName obj=content />
<if(withCountry)>
<marko-web-content-country block-name=blockName obj=content />
</if>
</marko-web-block>
</if>
<else>
Expand Down

0 comments on commit ca1db01

Please sign in to comment.