]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Add 'mod/colorbox/' from commit 'fb61398a422ef6bd25028f6f47c008738e8fea8c'
authorSem <sembrestels@riseup.net>
Sat, 9 Nov 2013 15:23:42 +0000 (16:23 +0100)
committerSem <sembrestels@riseup.net>
Sat, 9 Nov 2013 15:23:42 +0000 (16:23 +0100)
git-subtree-dir: mod/colorbox
git-subtree-mainline: f448cd91f9ecebea37daf40aada2fa1a20200817
git-subtree-split: fb61398a422ef6bd25028f6f47c008738e8fea8c

62 files changed:
1  2 
mod/colorbox/COPYING
mod/colorbox/languages/ca.php
mod/colorbox/languages/en.php
mod/colorbox/languages/es.php
mod/colorbox/manifest.xml
mod/colorbox/start.php
mod/colorbox/vendors/jquery/colorbox/README.md
mod/colorbox/vendors/jquery/colorbox/colorbox.ai
mod/colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox-min.js
mod/colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox.js
mod/colorbox/vendors/jquery/colorbox/content/ajax.html
mod/colorbox/vendors/jquery/colorbox/content/flash.html
mod/colorbox/vendors/jquery/colorbox/content/homer.jpg
mod/colorbox/vendors/jquery/colorbox/content/marylou.jpg
mod/colorbox/vendors/jquery/colorbox/content/ohoopee1.jpg
mod/colorbox/vendors/jquery/colorbox/content/ohoopee2.jpg
mod/colorbox/vendors/jquery/colorbox/content/ohoopee3.jpg
mod/colorbox/vendors/jquery/colorbox/example1/colorbox.css
mod/colorbox/vendors/jquery/colorbox/example1/images/border.png
mod/colorbox/vendors/jquery/colorbox/example1/images/controls.png
mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderBottomCenter.png
mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderBottomLeft.png
mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderBottomRight.png
mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderMiddleLeft.png
mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderMiddleRight.png
mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderTopCenter.png
mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderTopLeft.png
mod/colorbox/vendors/jquery/colorbox/example1/images/ie6/borderTopRight.png
mod/colorbox/vendors/jquery/colorbox/example1/images/loading.gif
mod/colorbox/vendors/jquery/colorbox/example1/images/loading_background.png
mod/colorbox/vendors/jquery/colorbox/example1/images/overlay.png
mod/colorbox/vendors/jquery/colorbox/example1/index.html
mod/colorbox/vendors/jquery/colorbox/example2/colorbox.css
mod/colorbox/vendors/jquery/colorbox/example2/images/controls.png
mod/colorbox/vendors/jquery/colorbox/example2/images/loading.gif
mod/colorbox/vendors/jquery/colorbox/example2/index.html
mod/colorbox/vendors/jquery/colorbox/example3/colorbox.css
mod/colorbox/vendors/jquery/colorbox/example3/images/controls.png
mod/colorbox/vendors/jquery/colorbox/example3/images/loading.gif
mod/colorbox/vendors/jquery/colorbox/example3/index.html
mod/colorbox/vendors/jquery/colorbox/example4/colorbox.css
mod/colorbox/vendors/jquery/colorbox/example4/images/border1.png
mod/colorbox/vendors/jquery/colorbox/example4/images/border2.png
mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderBottomCenter.png
mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderBottomLeft.png
mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderBottomRight.png
mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderMiddleLeft.png
mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderMiddleRight.png
mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderTopCenter.png
mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderTopLeft.png
mod/colorbox/vendors/jquery/colorbox/example4/images/ie6/borderTopRight.png
mod/colorbox/vendors/jquery/colorbox/example4/images/loading.gif
mod/colorbox/vendors/jquery/colorbox/example4/index.html
mod/colorbox/vendors/jquery/colorbox/example5/colorbox.css
mod/colorbox/vendors/jquery/colorbox/example5/images/border.png
mod/colorbox/vendors/jquery/colorbox/example5/images/controls.png
mod/colorbox/vendors/jquery/colorbox/example5/images/loading.gif
mod/colorbox/vendors/jquery/colorbox/example5/images/loading_background.png
mod/colorbox/vendors/jquery/colorbox/example5/index.html
mod/colorbox/views/default/css/lightbox.php
mod/colorbox/views/default/js/embed/embed.php
mod/colorbox/views/default/js/lightbox.php

index 0000000000000000000000000000000000000000,dba13ed2ddf783ee8118c6a581dbf75305f816a3..dba13ed2ddf783ee8118c6a581dbf75305f816a3
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,214d327aa295c7922485deed161170837e5c1dd4..214d327aa295c7922485deed161170837e5c1dd4
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..70bab4e0544f9050c2fd006bfa403adbdddcfe1f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,29 @@@
++<?php\r
++/**\r
++ * Colorbox -- Translation strings for English\r
++ *\r
++ * @package        Lorea\r
++ * @subpackage     Colorbox\r
++ *\r
++ * Copyright 2011-2012 Lorea Faeries <federation@lorea.org>\r
++ *\r
++ * This program is free software: you can redistribute it and/or\r
++ * modify it under the terms of the GNU Affero General Public License\r
++ * as published by the Free Software Foundation, either version 3 of\r
++ * the License, or (at your option) any later version.\r
++ *\r
++ * This program is distributed in the hope that it will be useful, but\r
++ * WITHOUT ANY WARRANTY; without even the implied warranty of\r
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
++ * Affero General Public License for more details.\r
++ *\r
++ * You should have received a copy of the GNU Affero General Public\r
++ * License along with this program. If not, see\r
++ * <http://www.gnu.org/licenses/>.\r
++ */\r
++\r
++$english = array(\r
++      "js:lightbox:current" => "image %s of %s",\r
++);\r
++\r
++add_translation("en", $english);\r
index 0000000000000000000000000000000000000000,e49d0db47c1c2f737242aab8e7137b1b5dcd62b1..e49d0db47c1c2f737242aab8e7137b1b5dcd62b1
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,ec5f22e90f0d828ba13d98618099bea92c5e482c..ec5f22e90f0d828ba13d98618099bea92c5e482c
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,b19b2efcf5b48d8b049316b22fa209637774d3c1..b19b2efcf5b48d8b049316b22fa209637774d3c1
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,2a53feac8452d3d4fe112f5a9649e711642f4ff6..2a53feac8452d3d4fe112f5a9649e711642f4ff6
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,1b51881afb2fff07574fbf2c05e97beca32034b8..1b51881afb2fff07574fbf2c05e97beca32034b8
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,9db7adf75f3d48b610ca5d12a74b4d306ef2001e..9db7adf75f3d48b610ca5d12a74b4d306ef2001e
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,28673a45dbdadeec25db32d6189b45777bf77861..28673a45dbdadeec25db32d6189b45777bf77861
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,e772638ad168d2afed45485dace22582e71095ba..e772638ad168d2afed45485dace22582e71095ba
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,c83f7c44f458b756eec6aed6f1fcc26ddb959325..c83f7c44f458b756eec6aed6f1fcc26ddb959325
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,87ec76c998481663c6098db5c82eded6f0b8b344..87ec76c998481663c6098db5c82eded6f0b8b344
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,4c717d2761cc0b592f3526a883590fd4802ba2e9..4c717d2761cc0b592f3526a883590fd4802ba2e9
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,aae19a3e64828805a55806998a33988e68b462c8..aae19a3e64828805a55806998a33988e68b462c8
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,206894489f86282dd11d65f29682b0cf6de1ae2c..206894489f86282dd11d65f29682b0cf6de1ae2c
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,4d64d2400e43aed298c627f60fa80dc7297e791e..4d64d2400e43aed298c627f60fa80dc7297e791e
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,397fe3dca40afa1abd55b1f5217897db0c6b5e1d..397fe3dca40afa1abd55b1f5217897db0c6b5e1d
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,f463a10d838aeba263ff44e5c3578dfe7ba07648..f463a10d838aeba263ff44e5c3578dfe7ba07648
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,dcfd6fb9f178454613123d018bf742c8cc905df7..dcfd6fb9f178454613123d018bf742c8cc905df7
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,0d4475edf4e1ebb18d41db83915a21a9a6bc5977..0d4475edf4e1ebb18d41db83915a21a9a6bc5977
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,2775eba899d10d3dc6f8c4044ad69cb89a5f8499..2775eba899d10d3dc6f8c4044ad69cb89a5f8499
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,f7f51379c0857dd15bdbeac49f35c9ce81f47e23..f7f51379c0857dd15bdbeac49f35c9ce81f47e23
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,a2d63d156e008a01fde9d2d68c531c34926a924a..a2d63d156e008a01fde9d2d68c531c34926a924a
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,fd7c3e849135d3b9abe895d7d8928d9f4228ecd9..fd7c3e849135d3b9abe895d7d8928d9f4228ecd9
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,2937a9cf9e25805fde6d954def25c3e6678fb61b..2937a9cf9e25805fde6d954def25c3e6678fb61b
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,f9d458b5bba4a8cb84b9ee39a3844e258c1dcc20..f9d458b5bba4a8cb84b9ee39a3844e258c1dcc20
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,74b8583cfbb2e62a84ef04ba01064ecb4d70e72a..74b8583cfbb2e62a84ef04ba01064ecb4d70e72a
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,b4695d811d4f84ed693eff7b5e6b4d61a3e8c48d..b4695d811d4f84ed693eff7b5e6b4d61a3e8c48d
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,6ae83e697352da5bc75ff264f66e978c0928acee..6ae83e697352da5bc75ff264f66e978c0928acee
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,53ea98f7003cf014cda2f764a7d982e405bd1b5f..53ea98f7003cf014cda2f764a7d982e405bd1b5f
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,44fcca8604c00822eeabed92ed7ffb350582de11..44fcca8604c00822eeabed92ed7ffb350582de11
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,fa42bf2f94661cf6a2fc4d84d15f27391a8bd29c..fa42bf2f94661cf6a2fc4d84d15f27391a8bd29c
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,8569b57f1023685883cc8b2002f0763d4e79638d..8569b57f1023685883cc8b2002f0763d4e79638d
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,19c67bbd0403f3f00d71bfb21a59cb6c55d482ab..19c67bbd0403f3f00d71bfb21a59cb6c55d482ab
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,44fcca8604c00822eeabed92ed7ffb350582de11..44fcca8604c00822eeabed92ed7ffb350582de11
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,36cc9ef422623253771a22cfda1454b4b07064b4..36cc9ef422623253771a22cfda1454b4b07064b4
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,e1e97982a6b4038f0aae1f9e2e7fa4d89df68841..e1e97982a6b4038f0aae1f9e2e7fa4d89df68841
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,19c67bbd0403f3f00d71bfb21a59cb6c55d482ab..19c67bbd0403f3f00d71bfb21a59cb6c55d482ab
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,44fcca8604c00822eeabed92ed7ffb350582de11..44fcca8604c00822eeabed92ed7ffb350582de11
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,bc5ef3e3d13d7dc22a0d92caccaa87e3a0012757..bc5ef3e3d13d7dc22a0d92caccaa87e3a0012757
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,0ddc704051b651f43cffb1326dee3ba563727acc..0ddc704051b651f43cffb1326dee3ba563727acc
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,aa62a0b724371d1f0a8e183c5f3707d2f7aecd63..aa62a0b724371d1f0a8e183c5f3707d2f7aecd63
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,12e0e9ac022d0d48ea77f547c51b60b240487b77..12e0e9ac022d0d48ea77f547c51b60b240487b77
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,b7a474ae056f3c500e460f6d88bc1621053ff219..b7a474ae056f3c500e460f6d88bc1621053ff219
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,6b6cb159b92b51b1bb735c359f2db599559bcf2a..6b6cb159b92b51b1bb735c359f2db599559bcf2a
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,8d0eb739dec9626b405d385cec01cfe5c7b3e34c..8d0eb739dec9626b405d385cec01cfe5c7b3e34c
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,d65509e309378790fdbe159791d7f55734244578..d65509e309378790fdbe159791d7f55734244578
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,35d8da2d0b4b37c211ff17ff7feae9f0203ed50e..35d8da2d0b4b37c211ff17ff7feae9f0203ed50e
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,ae9bda04097b6f3be5584faf7409f8fe4d13eb32..ae9bda04097b6f3be5584faf7409f8fe4d13eb32
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,0d88683993dcd40a77f855c4d53f26ae2542a18b..0d88683993dcd40a77f855c4d53f26ae2542a18b
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,602ce3c3ae9182650eca594ff76e4c27498f39e0..602ce3c3ae9182650eca594ff76e4c27498f39e0
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,44fcca8604c00822eeabed92ed7ffb350582de11..44fcca8604c00822eeabed92ed7ffb350582de11
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,91301a9b150deccb6a259dbfdffaa3139d891529..91301a9b150deccb6a259dbfdffaa3139d891529
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,df13bb6daf79307915e7dd1cf29d48730a50c29d..df13bb6daf79307915e7dd1cf29d48730a50c29d
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,65cfd1dc95c5ee4c6c3d0848b1dcfc0ec69f6aea..65cfd1dc95c5ee4c6c3d0848b1dcfc0ec69f6aea
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,b4695d811d4f84ed693eff7b5e6b4d61a3e8c48d..b4695d811d4f84ed693eff7b5e6b4d61a3e8c48d
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,9de11f46719e3f60412a8d925821b8a3aa7b5b2b..9de11f46719e3f60412a8d925821b8a3aa7b5b2b
mode 000000,100644..100644
Binary files differ
index 0000000000000000000000000000000000000000,44fcca8604c00822eeabed92ed7ffb350582de11..44fcca8604c00822eeabed92ed7ffb350582de11
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e18c02bf8b0ec791c31e176ebd113a3713ecde78
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,73 @@@
++<?php
++/**
++ * Colorbox -- Stylesheet
++ *
++ * Used as a view because we need to pass a full URL to AlphaImageLoader.
++ *
++ * @package        Lorea
++ * @subpackage     Colorbox
++ *
++ * Copyright 2011-2012 Lorea Faeries <federation@lorea.org>
++ *
++ * 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
++ * <http://www.gnu.org/licenses/>.
++ */
++
++$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(<?php echo $jquery_path; ?>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(<?php echo $jquery_path; ?>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(<?php echo $jquery_path; ?>colorbox/example3/images/loading.gif) no-repeat center center;}
++        #cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(<?php echo $jquery_path; ?>colorbox/example3/images/controls.png) no-repeat top center; width:38px; height:19px; text-indent:-9999px;}
++        #cboxClose:hover{background-position:bottom center;}
index 0000000000000000000000000000000000000000,ada6653a89a21aa874474832bc024e513d33bf52..ada6653a89a21aa874474832bc024e513d33bf52
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..732092e2bc4f6a89d04a9e7a1b2227e8035cbbad
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,81 @@@
++<?php
++/**
++ * Colorbox -- Stylesheet
++ *
++ * Used as a view because we need to pass a full URL to AlphaImageLoader.
++ *
++ * @package        Lorea
++ * @subpackage     Colorbox
++ *
++ * Copyright 2011-2012 Lorea Faeries <federation@lorea.org>
++ *
++ * 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
++ * <http://www.gnu.org/licenses/>.
++ *
++ * 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);
++
++<?php
++
++$js_path = elgg_get_plugins_path();
++$js_path = "{$js_path}colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox-min.js";
++include $js_path;