From: Sem Date: Sat, 9 Nov 2013 15:23:42 +0000 (+0100) Subject: Add 'mod/colorbox/' from commit 'fb61398a422ef6bd25028f6f47c008738e8fea8c' X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1f40407cb2d2f0edfc4cc5346f332f5c6adab022;p=lorea%2Felgg.git Add 'mod/colorbox/' from commit 'fb61398a422ef6bd25028f6f47c008738e8fea8c' git-subtree-dir: mod/colorbox git-subtree-mainline: f448cd91f9ecebea37daf40aada2fa1a20200817 git-subtree-split: fb61398a422ef6bd25028f6f47c008738e8fea8c --- 1f40407cb2d2f0edfc4cc5346f332f5c6adab022 diff --cc mod/colorbox/COPYING index 000000000,dba13ed2d..dba13ed2d mode 000000,100644..100644 --- a/mod/colorbox/COPYING +++ b/mod/colorbox/COPYING diff --cc mod/colorbox/languages/ca.php index 000000000,214d327aa..214d327aa mode 000000,100644..100644 --- a/mod/colorbox/languages/ca.php +++ b/mod/colorbox/languages/ca.php diff --cc mod/colorbox/languages/en.php index 000000000,000000000..70bab4e05 new file mode 100644 --- /dev/null +++ b/mod/colorbox/languages/en.php @@@ -1,0 -1,0 +1,29 @@@ ++ ++ * ++ * This program is free software: you can redistribute it and/or ++ * modify it under the terms of the GNU Affero General Public License ++ * as published by the Free Software Foundation, either version 3 of ++ * the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Affero General Public License for more details. ++ * ++ * You should have received a copy of the GNU Affero General Public ++ * License along with this program. If not, see ++ * . ++ */ ++ ++$english = array( ++ "js:lightbox:current" => "image %s of %s", ++); ++ ++add_translation("en", $english); diff --cc mod/colorbox/languages/es.php index 000000000,e49d0db47..e49d0db47 mode 000000,100644..100644 --- a/mod/colorbox/languages/es.php +++ b/mod/colorbox/languages/es.php diff --cc mod/colorbox/manifest.xml index 000000000,ec5f22e90..ec5f22e90 mode 000000,100644..100644 --- a/mod/colorbox/manifest.xml +++ b/mod/colorbox/manifest.xml diff --cc mod/colorbox/start.php index 000000000,b19b2efcf..b19b2efcf mode 000000,100644..100644 --- a/mod/colorbox/start.php +++ b/mod/colorbox/start.php diff --cc mod/colorbox/vendors/jquery/colorbox/README.md index 000000000,2a53feac8..2a53feac8 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/README.md +++ b/mod/colorbox/vendors/jquery/colorbox/README.md diff --cc mod/colorbox/vendors/jquery/colorbox/colorbox.ai index 000000000,1b51881af..1b51881af mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/colorbox.ai +++ b/mod/colorbox/vendors/jquery/colorbox/colorbox.ai diff --cc mod/colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox-min.js index 000000000,9db7adf75..9db7adf75 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox-min.js +++ b/mod/colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox-min.js diff --cc mod/colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox.js index 000000000,28673a45d..28673a45d mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox.js +++ b/mod/colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox.js diff --cc mod/colorbox/vendors/jquery/colorbox/content/ajax.html index 000000000,e772638ad..e772638ad mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/content/ajax.html +++ b/mod/colorbox/vendors/jquery/colorbox/content/ajax.html diff --cc mod/colorbox/vendors/jquery/colorbox/content/flash.html index 000000000,c83f7c44f..c83f7c44f mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/content/flash.html +++ b/mod/colorbox/vendors/jquery/colorbox/content/flash.html diff --cc mod/colorbox/vendors/jquery/colorbox/content/homer.jpg index 000000000,87ec76c99..87ec76c99 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/content/marylou.jpg index 000000000,4c717d276..4c717d276 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/content/ohoopee1.jpg index 000000000,aae19a3e6..aae19a3e6 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/content/ohoopee2.jpg index 000000000,206894489..206894489 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/content/ohoopee3.jpg index 000000000,4d64d2400..4d64d2400 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/colorbox.css index 000000000,397fe3dca..397fe3dca mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example1/colorbox.css +++ b/mod/colorbox/vendors/jquery/colorbox/example1/colorbox.css diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/border.png index 000000000,f463a10d8..f463a10d8 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/controls.png index 000000000,dcfd6fb9f..dcfd6fb9f mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderBottomCenter.png index 000000000,0d4475edf..0d4475edf mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderBottomLeft.png index 000000000,2775eba89..2775eba89 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderBottomRight.png index 000000000,f7f51379c..f7f51379c mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderMiddleLeft.png index 000000000,a2d63d156..a2d63d156 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderMiddleRight.png index 000000000,fd7c3e849..fd7c3e849 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderTopCenter.png index 000000000,2937a9cf9..2937a9cf9 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderTopLeft.png index 000000000,f9d458b5b..f9d458b5b mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderTopRight.png index 000000000,74b8583cf..74b8583cf mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/loading.gif index 000000000,b4695d811..b4695d811 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/loading_background.png index 000000000,6ae83e697..6ae83e697 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/images/overlay.png index 000000000,53ea98f70..53ea98f70 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example1/index.html index 000000000,44fcca860..44fcca860 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example1/index.html +++ b/mod/colorbox/vendors/jquery/colorbox/example1/index.html diff --cc mod/colorbox/vendors/jquery/colorbox/example2/colorbox.css index 000000000,fa42bf2f9..fa42bf2f9 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example2/colorbox.css +++ b/mod/colorbox/vendors/jquery/colorbox/example2/colorbox.css diff --cc mod/colorbox/vendors/jquery/colorbox/example2/images/controls.png index 000000000,8569b57f1..8569b57f1 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example2/images/loading.gif index 000000000,19c67bbd0..19c67bbd0 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example2/index.html index 000000000,44fcca860..44fcca860 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example2/index.html +++ b/mod/colorbox/vendors/jquery/colorbox/example2/index.html diff --cc mod/colorbox/vendors/jquery/colorbox/example3/colorbox.css index 000000000,36cc9ef42..36cc9ef42 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example3/colorbox.css +++ b/mod/colorbox/vendors/jquery/colorbox/example3/colorbox.css diff --cc mod/colorbox/vendors/jquery/colorbox/example3/images/controls.png index 000000000,e1e97982a..e1e97982a mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example3/images/loading.gif index 000000000,19c67bbd0..19c67bbd0 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example3/index.html index 000000000,44fcca860..44fcca860 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example3/index.html +++ b/mod/colorbox/vendors/jquery/colorbox/example3/index.html diff --cc mod/colorbox/vendors/jquery/colorbox/example4/colorbox.css index 000000000,bc5ef3e3d..bc5ef3e3d mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example4/colorbox.css +++ b/mod/colorbox/vendors/jquery/colorbox/example4/colorbox.css diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/border1.png index 000000000,0ddc70405..0ddc70405 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/border2.png index 000000000,aa62a0b72..aa62a0b72 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderBottomCenter.png index 000000000,12e0e9ac0..12e0e9ac0 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderBottomLeft.png index 000000000,b7a474ae0..b7a474ae0 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderBottomRight.png index 000000000,6b6cb159b..6b6cb159b mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderMiddleLeft.png index 000000000,8d0eb739d..8d0eb739d mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderMiddleRight.png index 000000000,d65509e30..d65509e30 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderTopCenter.png index 000000000,35d8da2d0..35d8da2d0 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderTopLeft.png index 000000000,ae9bda040..ae9bda040 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderTopRight.png index 000000000,0d8868399..0d8868399 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/images/loading.gif index 000000000,602ce3c3a..602ce3c3a mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example4/index.html index 000000000,44fcca860..44fcca860 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example4/index.html +++ b/mod/colorbox/vendors/jquery/colorbox/example4/index.html diff --cc mod/colorbox/vendors/jquery/colorbox/example5/colorbox.css index 000000000,91301a9b1..91301a9b1 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example5/colorbox.css +++ b/mod/colorbox/vendors/jquery/colorbox/example5/colorbox.css diff --cc mod/colorbox/vendors/jquery/colorbox/example5/images/border.png index 000000000,df13bb6da..df13bb6da mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example5/images/controls.png index 000000000,65cfd1dc9..65cfd1dc9 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example5/images/loading.gif index 000000000,b4695d811..b4695d811 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example5/images/loading_background.png index 000000000,9de11f467..9de11f467 mode 000000,100644..100644 Binary files differ diff --cc mod/colorbox/vendors/jquery/colorbox/example5/index.html index 000000000,44fcca860..44fcca860 mode 000000,100644..100644 --- a/mod/colorbox/vendors/jquery/colorbox/example5/index.html +++ b/mod/colorbox/vendors/jquery/colorbox/example5/index.html diff --cc mod/colorbox/views/default/css/lightbox.php index 000000000,000000000..e18c02bf8 new file mode 100644 --- /dev/null +++ b/mod/colorbox/views/default/css/lightbox.php @@@ -1,0 -1,0 +1,73 @@@ ++ ++ * ++ * This program is free software: you can redistribute it and/or ++ * modify it under the terms of the GNU Affero General Public License ++ * as published by the Free Software Foundation, either version 3 of ++ * the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Affero General Public License for more details. ++ * ++ * You should have received a copy of the GNU Affero General Public ++ * License along with this program. If not, see ++ * . ++ */ ++ ++$jquery_path = elgg_get_site_url() . 'mod/colorbox/vendors/jquery/'; ++?> ++ ++/* ++ * ColorBox - jQuery Plugin ++ * A lightweight customizable lightbox plugin for jQuery ++ * ++ */ ++ ++ /* ++ ColorBox Core Style: ++ The following CSS is consistent between example themes and should not be altered. ++*/ ++body > #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;} ++#cboxOverlay{position:fixed; width:100%; height:100%;} ++#cboxMiddleLeft, #cboxBottomLeft{clear:left;} ++#cboxContent{position:relative;} ++#cboxLoadedContent{overflow:auto;} ++#cboxTitle{margin:0;} ++#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;} ++#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} ++.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width: none;} ++.cboxIframe{width:100%; height:100%; display:block; border:0;} ++body > #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;} ++ ++/* ++ User Style: ++ Change the following styles to modify the appearance of ColorBox. They are ++ ordered & tabbed in a way that represents the nesting of the generated HTML. ++*/ ++#cboxOverlay{background:#000;} ++body > #colorbox{} ++ #cboxContent{margin-top:20px;} ++ .cboxIframe{background:#fff;} ++ #cboxError{padding:50px; border:1px solid #ccc;} ++ #cboxLoadedContent{border:5px solid #000; background:#fff;} ++ #cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;} ++ #cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc;} ++ #cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;} ++ #cboxPrevious{position:absolute; top:50%; left:5px; margin-top:-32px; background:url(colorbox/example3/images/controls.png) no-repeat top left; width:28px; height:65px; text-indent:-9999px;} ++ #cboxPrevious:hover{background-position:bottom left;} ++ #cboxNext{position:absolute; top:50%; right:5px; margin-top:-32px; background:url(colorbox/example3/images/controls.png) no-repeat top right; width:28px; height:65px; text-indent:-9999px;} ++ #cboxNext:hover{background-position:bottom right;} ++ #cboxLoadingOverlay{background:#000;} ++ #cboxLoadingGraphic{background:url(colorbox/example3/images/loading.gif) no-repeat center center;} ++ #cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(colorbox/example3/images/controls.png) no-repeat top center; width:38px; height:19px; text-indent:-9999px;} ++ #cboxClose:hover{background-position:bottom center;} diff --cc mod/colorbox/views/default/js/embed/embed.php index 000000000,ada6653a8..ada6653a8 mode 000000,100644..100644 --- a/mod/colorbox/views/default/js/embed/embed.php +++ b/mod/colorbox/views/default/js/embed/embed.php diff --cc mod/colorbox/views/default/js/lightbox.php index 000000000,000000000..732092e2b new file mode 100644 --- /dev/null +++ b/mod/colorbox/views/default/js/lightbox.php @@@ -1,0 -1,0 +1,81 @@@ ++ ++ * ++ * This program is free software: you can redistribute it and/or ++ * modify it under the terms of the GNU Affero General Public License ++ * as published by the Free Software Foundation, either version 3 of ++ * the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Affero General Public License for more details. ++ * ++ * You should have received a copy of the GNU Affero General Public ++ * License along with this program. If not, see ++ * . ++ * ++ * Usage ++ * Apply the class elgg-lightbox to links. ++ * ++ * Advanced Usage ++ * Elgg is distributed with the Colorbox jQuery library. Please go to ++ * http://www.jacklmoore.com/colorbox for more information on the options of this lightbox. ++ * ++ * Overriding ++ * In a plugin, override this view and override the registration for the ++ * lightbox JavaScript and CSS (@see elgg_views_boot()). ++ * ++ * @todo add support for passing options: $('#myplugin-lightbox').elgg.ui.lightbox(options); ++ */ ++ ++?> ++ ++/** ++ * Lightbox initialization ++ */ ++ ++elgg.provide('elgg.ui.lightbox'); ++ ++elgg.ui.lightbox.init = function() { ++ ++ $.extend($.colorbox.settings, { ++ current: elgg.echo('js:lightbox:current', ['{current}', '{total}']), ++ previous: elgg.echo('previous'), ++ next: elgg.echo('next'), ++ close: elgg.echo('close'), ++ xhrError: elgg.echo('error:default'), ++ imgError: elgg.echo('error:default'), ++ }); ++ ++ $(".elgg-lightbox").colorbox(); ++ $(".elgg-lightbox-photo").colorbox({photo: true}); ++ var n = 0; ++ $(".elgg-lightbox-gallery").each(function() { ++ $(this).find(".elgg-lightbox, .elgg-lightbox-photo") ++ .addClass("elgg-lightbox-" + n) ++ .colorbox({ ++ rel: "elgg-lightbox-" + n++, ++ }); ++ }); ++} ++ ++elgg.ui.lightbox.close = function() { ++ $.colorbox.close(); ++} ++ ++elgg.register_hook_handler('init', 'system', elgg.ui.lightbox.init); ++ ++