Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created January 16, 2012 09:48
Show Gist options
  • Save bastianallgeier/1620021 to your computer and use it in GitHub Desktop.
Save bastianallgeier/1620021 to your computer and use it in GitHub Desktop.
Title: Project Title
----
Year: 01/2011
----
Type: corporate design
----
Text: Project description
----
<ul id="projects">
<?php foreach($pages->find('projects')->children()->visible() AS $child): ?>
<li rel="<?php echo str::urlify($child->type()) ?>">
<a href="<?php echo $child->url() ?>" class="nofade">
<img src="<?php echo $child->images()->first()->url()" width="240" height="146" alt="<?php echo html($child->title()) ?>" />
<span class="meta">
<span class="info">
<span class="title"><em><?php echo html($child->title()) ?></em></span>
<span class="year"><?php echo html($child->year()) ?></span>
<span rel="<?php echo str::urlify($child->type() ?>" class="type"><em><?php echo html($child->type()) ?></em></span>
</span>
</span>
</a>
</li>
<?php endforeach ?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment