summaryrefslogtreecommitdiff
path: root/themes/default
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-05 07:42:52 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-05 07:42:52 +0000
commitd21f3437e64fb67f306eaec40e778e77176796ff (patch)
tree1895709d0e920ecd332696b50dba796862e654e5 /themes/default
parent581e931c439a726fbd6a0b0068debd2cd76e349d (diff)
Add the photo controller, and tie it to the photo page in our theme.
Implement a real breadcrumb.
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/views/header.html.php7
-rw-r--r--themes/default/views/photo.html.php6
2 files changed, 7 insertions, 6 deletions
diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php
index fd2df051..acecb885 100644
--- a/themes/default/views/header.html.php
+++ b/themes/default/views/header.html.php
@@ -41,9 +41,10 @@
</ul>
<ul id="gBreadcrumbs">
- <li class="root"><a href="#">Home</a></li>
- <li><a href="#">Friends &amp; Family</a></li>
- <li class="active"><span>Christmas 2007</span></li>
+ <? foreach ($parents as $parent): ?>
+ <li><a href="<?= url::site("album/{$parent->id}") ?>"><?= $parent->title ?></a></li>
+ <? endforeach ?>
+ <li class="active"><span><?= $item->title ?></span></li>
</ul>
<form id="gSearchForm">
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index e4d47d61..31458094 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -8,9 +8,9 @@
<a href="" class="buttonlink">Full size (1024x768)</a>
<a href="" class="buttonlink">Slideshow</a>
- <img id="photo-id-1" alt="photo" src="images/thumbnail.jpg" />
- <h1>Photo title</h1>
- <p>Photo description: Lorem ipsum dolor sit amet.</p>
+ <img id="photo-id-<?= $item->id ?>" alt="photo" src="<?= $item->resize_url() ?>" />
+ <h1><?= $item->title ?></h1>
+ <p><?= $item->description ?></p>
</div>
<div id="gComments">