diff options
-rw-r--r-- | modules/gallery/helpers/gallery_menu.php | 6 | ||||
-rw-r--r-- | modules/info/views/info_block.html.php | 11 | ||||
-rw-r--r-- | modules/notification/helpers/notification_menu.php | 16 | ||||
-rw-r--r-- | themes/default/css/screen.css | 12 | ||||
-rw-r--r-- | themes/default/images/ico-notify-add.png | bin | 1469 -> 0 bytes | |||
-rw-r--r-- | themes/default/images/ico-notify-remove.png | bin | 1500 -> 0 bytes | |||
-rw-r--r-- | themes/default/images/ico-view-album.png | bin | 345 -> 0 bytes |
7 files changed, 20 insertions, 25 deletions
diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php index 854086c1..9729a868 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/modules/notification/helpers/notification_menu.php b/modules/notification/helpers/notification_menu.php index 87927874..696aad62 100644 --- a/modules/notification/helpers/notification_menu.php +++ b/modules/notification/helpers/notification_menu.php @@ -18,19 +18,21 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class notification_menu_Core { - static function album($menu, $theme) { + static function site($menu, $theme) { if (!user::active()->guest) { $item = $theme->item(); - - if ($item) { + + if ($item && $item->is_album()) { $watching = notification::is_watching($item); - $menu + $watching ? $label = t("Remove notifications") : $label = t("Enable notifications"); + + $menu->get("options_menu") ->append(Menu::factory("link") ->id("watch") - ->label(t("Enable notifications for this album")) - ->url(url::site("notification/watch/$item->id?csrf=" . access::csrf_token())) - ->css_id($watching ? "gRemoveNotifyLink" : "gAddNotifyLink")); + ->label($label) + ->css_id("gNotifyLink") + ->url(url::site("notification/watch/$item->id?csrf=" . access::csrf_token()))); } } } diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css index 0dcfd75f..71711147 100644 --- a/themes/default/css/screen.css +++ b/themes/default/css/screen.css @@ -602,18 +602,6 @@ form .gError, width: 43px !important; } -#gViewMenu #gAlbumLink { - background-image: url('../images/ico-view-album.png'); -} - -#gViewMenu #gAddNotifyLink { - background-image: url('../images/ico-notify-add.png'); -} - -#gViewMenu #gRemoveNotifyLink { - background-image: url('../images/ico-notify-remove.png'); -} - #gViewMenu #gHybridLink { background-image: url('../images/ico-view-hybrid.png'); } diff --git a/themes/default/images/ico-notify-add.png b/themes/default/images/ico-notify-add.png Binary files differdeleted file mode 100644 index 937bfd4f..00000000 --- a/themes/default/images/ico-notify-add.png +++ /dev/null diff --git a/themes/default/images/ico-notify-remove.png b/themes/default/images/ico-notify-remove.png Binary files differdeleted file mode 100644 index 8c0f29ca..00000000 --- a/themes/default/images/ico-notify-remove.png +++ /dev/null diff --git a/themes/default/images/ico-view-album.png b/themes/default/images/ico-view-album.png Binary files differdeleted file mode 100644 index 20b5af20..00000000 --- a/themes/default/images/ico-view-album.png +++ /dev/null |