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 #384 from Shinsina/allow-reordering-of-buttons
Browse files Browse the repository at this point in the history
Allow for reordering of publication buttons, Monorail Magazine.
  • Loading branch information
brandonbk authored Jul 26, 2022
2 parents 37a1c30 + aa08f4f commit 9e2de61
Showing 1 changed file with 37 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,40 @@ $ const targetBlankLink = {

$ const issue = getAsObject(input, "issue");

<if(buttons.includes("subscribe"))>
<marko-web-magazine-publication-subscribe-url tag=null obj=issue.publication link=targetBlankLink>
Subscribe
</marko-web-magazine-publication-subscribe-url>
</if>
<if(buttons.includes("renew"))>
<marko-web-magazine-publication-renewal-url tag=null obj=issue.publication link=targetBlankLink>
Renew
</marko-web-magazine-publication-renewal-url>
</if>
<if(buttons.includes("digital-edition"))>
<marko-web-magazine-issue-digital-edition-url tag=null obj=issue link=targetBlankLink>
Digital Edition
</marko-web-magazine-issue-digital-edition-url>
</if>
<if(buttons.includes("pdf"))>
<marko-web-magazine-issue-pdf-url tag=null obj=issue link=targetBlankLink>
Download PDF
</marko-web-magazine-issue-pdf-url>
</if>
<if(buttons.includes("archives"))>
<marko-web-magazine-publication-name tag=null obj=issue.publication link=link>
Archives
</marko-web-magazine-publication-name>
</if>
<if(buttons.includes("reprints"))>
<marko-web-magazine-publication-reprints-url tag=null obj=issue.publication link=targetBlankLink>
Reprints
</marko-web-magazine-publication-reprints-url>
</if>
<if(buttons.includes("e-inquiry"))>
<marko-web-magazine-publication-einquiry-url tag=null obj=issue.publication link=targetBlankLink>
E-Inquiry
</marko-web-magazine-publication-einquiry-url>
</if>
<for|button| of=buttons>
<if(button === "subscribe")>
<marko-web-magazine-publication-subscribe-url tag=null obj=issue.publication link=targetBlankLink>
Subscribe
</marko-web-magazine-publication-subscribe-url>
</if>
<if(button === "renew")>
<marko-web-magazine-publication-renewal-url tag=null obj=issue.publication link=targetBlankLink>
Renew
</marko-web-magazine-publication-renewal-url>
</if>
<if(button === "digital-edition")>
<marko-web-magazine-issue-digital-edition-url tag=null obj=issue link=targetBlankLink>
Digital Edition
</marko-web-magazine-issue-digital-edition-url>
</if>
<if(button === "pdf")>
<marko-web-magazine-issue-pdf-url tag=null obj=issue link=targetBlankLink>
Download PDF
</marko-web-magazine-issue-pdf-url>
</if>
<if(button === "archives")>
<marko-web-magazine-publication-name tag=null obj=issue.publication link=link>
Archives
</marko-web-magazine-publication-name>
</if>
<if(button === "reprints")>
<marko-web-magazine-publication-reprints-url tag=null obj=issue.publication link=targetBlankLink>
Reprints
</marko-web-magazine-publication-reprints-url>
</if>
<if(button === "e-inquiry")>
<marko-web-magazine-publication-einquiry-url tag=null obj=issue.publication link=targetBlankLink>
E-Inquiry
</marko-web-magazine-publication-einquiry-url>
</if>
</for>

0 comments on commit 9e2de61

Please sign in to comment.