diff options
author | Sem <sembrestels@riseup.net> | 2012-08-02 21:15:33 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-08-02 21:15:33 +0200 |
commit | a7fd00b23708431d9875f1e7cd1743558ff25c5b (patch) | |
tree | b4f0fad648a5c88875d6337b5ffd7dfad66b33f3 /start.php | |
parent | 71e6db3c3dff9c9ec7e8109fc990f0d960273c9f (diff) | |
parent | 3ef058394574c630726c955ba2a54a63df453d08 (diff) | |
download | elgg-a7fd00b23708431d9875f1e7cd1743558ff25c5b.tar.gz elgg-a7fd00b23708431d9875f1e7cd1743558ff25c5b.tar.bz2 |
Merge branch 'colorbox' of git://github.com/sembrestels/Tidypics
Conflicts:
manifest.xml
start.php
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -39,8 +39,6 @@ function tidypics_init() { elgg_register_simplecache_view('js/photos/tidypics'); elgg_register_js('tidypics', $js, 'footer'); - elgg_register_js('tidypics:slideshow', 'mod/tidypics/vendors/PicLensLite/piclens_optimized.js', 'footer'); - // Add photos link to owner block/hover menus elgg_register_plugin_hook_handler('register', 'menu:owner_block', 'tidypics_owner_block_menu'); @@ -129,7 +127,6 @@ function tidypics_page_handler($page) { case "album": // view an album individually set_input('guid', $page[1]); - elgg_load_js('tidypics:slideshow'); require "$base/album/view.php"; break; @@ -307,21 +304,6 @@ function tidypics_entity_menu_setup($hook, $type, $return, $params) { $return[] = ElggMenuItem::factory($options); } } - - // only show slideshow link if there are images - if (elgg_instanceof($entity, 'object', 'album') && $entity->getSize() > 0) { - $url = $entity->getURL() . '?limit=50&view=rss'; - $url = elgg_format_url($url); - $slideshow_link = "javascript:PicLensLite.start({maxScale:0, feedUrl:'$url'})"; - $options = array( - 'name' => 'slideshow', - 'text' => elgg_echo('album:slideshow'), - 'href' => $slideshow_link, - 'priority' => 80, - ); - $return[] = ElggMenuItem::factory($options); - } - return $return; } |