From de4945a1bb1b627a530048c7dece50805d06f1ee Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 14 Jun 2009 22:29:02 +0000 Subject: highest ratings submenu controlled by plugin settings --- views/default/object/album.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'views/default/object/album.php') diff --git a/views/default/object/album.php b/views/default/object/album.php index 9a34e3d5f..1e8ff9dc9 100644 --- a/views/default/object/album.php +++ b/views/default/object/album.php @@ -60,9 +60,12 @@ // individual album view $page = get_input("page"); list($album_placeholder, $album_id, $album_title) = split("/", $page); - add_submenu_item( elgg_echo("tidypics:highestrated"), - $CONFIG->wwwroot . "pg/photos/highestrated/group:" . $album_id, - 'photos'); + + $photo_ratings = get_plugin_setting('photo_ratings', 'tidypics'); + if ($photo_ratings == "enabled") + add_submenu_item( elgg_echo("tidypics:highestrated"), + $CONFIG->wwwroot . "pg/photos/highestrated/group:" . $album_id, + 'photos'); ?>
-- cgit v1.2.3