]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added slideshows to the lists
authorCash Costello <cash.costello@gmail.com>
Sun, 13 Dec 2009 00:50:11 +0000 (00:50 +0000)
committerCash Costello <cash.costello@gmail.com>
Sun, 13 Dec 2009 00:50:11 +0000 (00:50 +0000)
pages/lists/mostrecentimages.php
pages/lists/mostviewedimages.php
pages/lists/recentlycommented.php
pages/lists/recentlyviewed.php

index 8a9f8dbdbafab2959e7e743f13dd3bf53eedcc26..99dfeb4c9d0b3a2f39592ed5ef2ff35074f85602 100644 (file)
                        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;
index 1e856edc64b9c6f5e64c76374f8c8c4596178b46..d945680f1033a8711df47566e5d67ae67efd6507 100644 (file)
        }
 */
        //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");  
index a39caf6aeb71a8339d2cfe89cff4e0c7524ff076..1d5f7aea7598dd8fbe3578631e52e2633164d118 100644 (file)
                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
index b61107fc4c8836f1eb7fd4a729d9966d288c2e98..16ad474df6e76806b4e474de23198df6ec07443c 100644 (file)
                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