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

Commit

Permalink
Merge pull request #932 from Shinsina/include-country
Browse files Browse the repository at this point in the history
Include country on directory-section-feed-content-node, Monorail
  • Loading branch information
brandonbk authored Jul 19, 2024
2 parents cb2010c + ca1db01 commit a537db5
Showing 1 changed file with 7 additions and 0 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,6 +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 />
<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 @@ -111,6 +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 />
<if(withCountry)>
<marko-web-content-country block-name=blockName obj=content />
</if>
</marko-web-block>
</if>
<else>
Expand Down

0 comments on commit a537db5

Please sign in to comment.