Last active
July 23, 2016 09:16
-
-
Save MerrittMelker/ee2962fa04e9ce103561ee455061519e to your computer and use it in GitHub Desktop.
Example Hooking Up Related Items To List of Dynamic Content to Create Functional ItemViewModels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="footer-logos"> | |
<div class="row"> | |
<div class="partners col-md-10"> | |
@foreach (var sponsor in Model.Sponsors) | |
{ | |
<a href="@sponsor.Fields.Link" class="partners-link"> | |
@sponsor.Fields.Title | | |
@if (sponsor.Fields.Image != null) | |
{ | |
@sponsor.Fields.Image.Fields.Title | |
<img src="@sponsor.Fields.Image.Fields.MediaUrl" > | |
} | |
</a> | |
} | |
</div> | |
<div class="award col-md-2"> | |
<img src="~/ResourcePackages/CPH/assets/dist/images/tony-award.png" alt="tony award winner logo"> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment