summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2009-01-04 03:43:12 +0000
committerChad Kieffer <chad@2tbsp.com>2009-01-04 03:43:12 +0000
commitf7f2fa10cd7f12364e06d8e0276528c8dda26a0f (patch)
treea19b618eefb5d73ba5f305a7c1c97874ac0d687e /themes
parent2c274694127f5127fef311c13d265a9099dd629d (diff)
Started to wire up album and photo view menus. Need photo's parent album link added. Also need add the slideshow link to the menu.
Diffstat (limited to 'themes')
-rw-r--r--themes/default/js/ui.init.js2
-rw-r--r--themes/default/views/sidebar.html.php14
2 files changed, 8 insertions, 8 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js
index 245723ce..349b3155 100644
--- a/themes/default/js/ui.init.js
+++ b/themes/default/js/ui.init.js
@@ -34,7 +34,7 @@ $(document).ready(function() {
// Apply Superfish menus
$("ul.gMenu").addClass("sf-menu");
- $("ul#gViewMenu").addClass("sf-menu");
+ $("#gViewMenu ul.gMenu").addClass("sf-menu");
// Superfish menu options
$('ul.sf-menu').superfish({
diff --git a/themes/default/views/sidebar.html.php b/themes/default/views/sidebar.html.php
index 7ef24217..d454804d 100644
--- a/themes/default/views/sidebar.html.php
+++ b/themes/default/views/sidebar.html.php
@@ -1,11 +1,11 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<ul id="gViewMenu" class="sf-menu">
- <li><a href="#" id="gFullsizeLink" title="<?= _("View full size image") ?>"><?= _("View full size image") ?></a></li>
- <li><a href="#comments" id="gCommentsLink" title="<?= _("View this item's comments") ?>"><?= _("View this item's comments") ?></a></li>
- <li><a href="#" id="gAlbumLink" title="<?= _("View album") ?>"><?= _("Album view") ?></a></li>
- <li><a href="#" id="gHybridLink" title="<?= _("View album in hybrid mode") ?>"><?= _("Hybrid view") ?></a></li>
- <li><?= $theme->sidebar_top() ?></li>
-</ul>
+<div id="gViewMenu">
+<? if ($page_type == "album"):?>
+ <?= $theme->album_menu() ?>
+<? elseif ($page_type == "photo") : ?>
+ <?= $theme->photo_menu() ?>
+<? endif ?>
+</div>
<?= $theme->sidebar_blocks() ?>
<?= $theme->sidebar_bottom() ?>