aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/lists/mostrecentimages.php8
-rw-r--r--pages/lists/mostviewedimages.php10
-rw-r--r--pages/lists/recentlycommented.php9
-rw-r--r--pages/lists/recentlyviewed.php9
4 files changed, 35 insertions, 1 deletions
diff --git a/pages/lists/mostrecentimages.php b/pages/lists/mostrecentimages.php
index 8a9f8dbdb..99dfeb4c9 100644
--- a/pages/lists/mostrecentimages.php
+++ b/pages/lists/mostrecentimages.php
@@ -30,6 +30,14 @@
set_page_owner(get_loggedin_userid());
}
}
+
+ // allow other plugins to override the slideshow
+ $slideshow_link = trigger_plugin_hook('tp_slideshow', 'album', array(), null);
+ if ($slideshow_link) {
+ add_submenu_item(elgg_echo('album:slideshow'),
+ $slideshow_link,
+ 'photos' );
+ }
// how many do we display
$max = 12;
diff --git a/pages/lists/mostviewedimages.php b/pages/lists/mostviewedimages.php
index 1e856edc6..d945680f1 100644
--- a/pages/lists/mostviewedimages.php
+++ b/pages/lists/mostviewedimages.php
@@ -49,7 +49,15 @@
}
*/
//error_log("custom query is " . (float)(microtime(true) - $start));
-
+
+ // allow other plugins to override the slideshow
+ $slideshow_link = trigger_plugin_hook('tp_slideshow', 'album', array(), null);
+ if ($slideshow_link) {
+ add_submenu_item(elgg_echo('album:slideshow'),
+ $slideshow_link,
+ 'photos' );
+ }
+
if ($owner_guid) {
if ($owner_guid == get_loggedin_userid()) {
$title = elgg_echo("tidypics:yourmostviewed");
diff --git a/pages/lists/recentlycommented.php b/pages/lists/recentlycommented.php
index a39caf6ae..1d5f7aea7 100644
--- a/pages/lists/recentlycommented.php
+++ b/pages/lists/recentlycommented.php
@@ -13,6 +13,15 @@
set_page_owner(get_loggedin_userid());
}
+ // allow other plugins to override the slideshow
+ $slideshow_link = trigger_plugin_hook('tp_slideshow', 'album', array(), null);
+ if ($slideshow_link) {
+ add_submenu_item(elgg_echo('album:slideshow'),
+ $slideshow_link,
+ 'photos' );
+ }
+
+
global $CONFIG;
$prefix = $CONFIG->dbprefix;
$max_limit = 200; //get extra because you'll have multiple views per image in the result set
diff --git a/pages/lists/recentlyviewed.php b/pages/lists/recentlyviewed.php
index b61107fc4..16ad474df 100644
--- a/pages/lists/recentlyviewed.php
+++ b/pages/lists/recentlyviewed.php
@@ -13,6 +13,15 @@
set_page_owner(get_loggedin_userid());
}
+ // allow other plugins to override the slideshow
+ $slideshow_link = trigger_plugin_hook('tp_slideshow', 'album', array(), null);
+ if ($slideshow_link) {
+ add_submenu_item(elgg_echo('album:slideshow'),
+ $slideshow_link,
+ 'photos' );
+ }
+
+
global $CONFIG;
$prefix = $CONFIG->dbprefix;
$max_limit = 200; //get extra because you'll have multiple views per image in the result set