guest) { $item = $theme->item(); if ($item && $item->is_album()) { $watching = notification::is_watching($item); $watching ? $label = t("Remove notifications") : $label = t("Enable notifications"); $menu->get("options_menu") ->append(Menu::factory("link") ->id("watch") ->label($label) ->css_id("gNotifyLink") ->url(url::site("notification/watch/$item->id?csrf=" . access::csrf_token()))); } } } }