summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-06-06 00:35:30 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-06-06 00:35:30 -0600
commitc5425f42a4a13f7f585ffe45c070a865cdef6077 (patch)
tree3c23fd95a9404fd43de8da7ede7adeb8a6a4e58f
parent71257cedb63c6124e974635e24ec16af77e49586 (diff)
Remove album view icon link, added album link to info module. This and breadcrumb should suffice.
-rw-r--r--modules/gallery/helpers/gallery_menu.php6
-rw-r--r--modules/info/views/info_block.html.php11
-rw-r--r--themes/default/css/screen.css4
-rw-r--r--themes/default/images/ico-view-album.pngbin345 -> 0 bytes
4 files changed, 11 insertions, 10 deletions
diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php
index 2a9e193b..97f0fd81 100644
--- a/modules/gallery/helpers/gallery_menu.php
+++ b/modules/gallery/helpers/gallery_menu.php
@@ -100,12 +100,6 @@ class gallery_menu_Core {
->url("#")
->css_class("gFullSizeLink"));
}
- $menu
- ->append(Menu::factory("link")
- ->id("album")
- ->label(t("Return to album"))
- ->url($theme->item()->parent()->url("show={$theme->item->id}"))
- ->css_id("gAlbumLink"));
}
static function admin($menu, $theme) {
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php
index db664894..f8e5f35e 100644
--- a/modules/info/views/info_block.html.php
+++ b/modules/info/views/info_block.html.php
@@ -17,6 +17,17 @@
<td><?= p::clean($item->name) ?></td>
</tr>
<? endif ?>
+ <? if ($item->id != 1): ?>
+ <? $parent = $item->parent(); ?>
+ <tr>
+ <th><?= t("Album: ") ?></th>
+ <td>
+ <a href="<?= url::site("albums/{$parent->id}?show=$item->id") ?>">
+ <?= p::clean($parent->title) ?>
+ </a>
+ </td>
+ </tr>
+ <? endif ?>
<? if ($item->captured): ?>
<tr>
<th><?= t("Captured:") ?></th>
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 67bd7cc2..71711147 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -602,10 +602,6 @@ form .gError,
width: 43px !important;
}
-#gViewMenu #gAlbumLink {
- background-image: url('../images/ico-view-album.png');
-}
-
#gViewMenu #gHybridLink {
background-image: url('../images/ico-view-hybrid.png');
}
diff --git a/themes/default/images/ico-view-album.png b/themes/default/images/ico-view-album.png
deleted file mode 100644
index 20b5af20..00000000
--- a/themes/default/images/ico-view-album.png
+++ /dev/null
Binary files differ