Created
August 19, 2015 14:10
-
-
Save tazeverywhere/008318201657142681e4 to your computer and use it in GitHub Desktop.
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
<!-- WEKMENU --> | |
<?php | |
// Global vars | |
$pageResto = 40; | |
$weekMenu = get_field('weekmenu', $pageResto); | |
?> | |
<?php if ($weekMenu) { ?> | |
<div class="sidebar-block week-menu"> | |
<span class="icon-title glyphicon glyphicon-cutlery" aria-hidden="true"></span> | |
<div class="menu-content"> | |
<?php foreach ($weekMenu as $menu) { ?> | |
<h4><?php echo $menu['title']; ?></h4> | |
<div><?php echo $menu['description']; ?></div> | |
<a href="<?php echo $menu['pdfLink']; ?> " class="btn btn-default btn-block"><?php echo $menu['pdfLabel']; ?></a> | |
<?php } ?> | |
</div> | |
</div> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment