www.archline.hu — clean post-compromise baseline #2
27
deployed/mod_jflickr/modules/mod_jflickr/elements/header.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package jFlickr
|
||||
* @subpackage jFlickr
|
||||
* @author Joomla Bamboo - design@joomlabamboo.com
|
||||
* @copyright Copyright (c) 2014 Joomla Bamboo. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later
|
||||
* @version 1.4.2
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
class JElementHeader extends JElement {
|
||||
var $_name = 'header';
|
||||
function fetchElement($name, $value, &$node, $control_name){
|
||||
// Output
|
||||
return '
|
||||
<div style="font-weight:bold;font-size:14px;color:#fff;padding:4px;margin:0;background:#4D7502;">
|
||||
'.JText::_($value).'
|
||||
</div>
|
||||
';
|
||||
}
|
||||
function fetchTooltip($label, $description, &$node, $control_name, $name){
|
||||
// Output
|
||||
return ' ';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
29
deployed/mod_jflickr/modules/mod_jflickr/elements/info.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* @package jFlickr
|
||||
* @subpackage jFlickr
|
||||
* @author Joomla Bamboo - design@joomlabamboo.com
|
||||
* @copyright Copyright (c) 2014 Joomla Bamboo. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later
|
||||
* @version 1.4.2
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
class JElementInfo extends JElement {
|
||||
var $_name = 'info';
|
||||
function fetchElement($name, $value, &$node, $control_name){
|
||||
// Output
|
||||
|
||||
return '
|
||||
<div style="font-size:12px;line-height:18px;color:#333;padding:10px;margin:10px 0;background: #FAF2B6">
|
||||
'.JText::_($value).'
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
function fetchTooltip($label, $description, &$node, $control_name, $name){
|
||||
// Output
|
||||
return ' ';
|
||||
}
|
||||
}
|
||||
36
deployed/mod_jflickr/modules/mod_jflickr/elements/panel.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* @package jFlickr
|
||||
* @subpackage jFlickr
|
||||
* @author Joomla Bamboo - design@joomlabamboo.com
|
||||
* @copyright Copyright (c) 2014 Joomla Bamboo. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later
|
||||
* @version 1.4.2
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
class JElementPanel extends JElement
|
||||
{
|
||||
var $_name = 'Panel';
|
||||
function fetchElement($name, $value, &$node, $control_name)
|
||||
{
|
||||
//when our code starts the second td in a tr are open
|
||||
//we close the second td in tr
|
||||
$panel = '</td></tr>';
|
||||
//we close the current table and divs
|
||||
$panel .= '</tbody></table></div></div>';
|
||||
//we open the new table and divs
|
||||
//we retrieve the panel id and title attributes and add them to the toggle div
|
||||
$panel .= '<div class="panel">
|
||||
<h3 class="jpane-toggler title"id="'.JText::_($node->attributes('panel')).'">
|
||||
<span>'.JText::_($node->attributes('title')).'</span>
|
||||
</h3><div class="jpane-slider content">
|
||||
<table width="100%" class="paramlist admintable" cellspacing="1"><tbody>';
|
||||
//we open and close the first td and open the second td
|
||||
$panel .= '<tr><td></td><td>';
|
||||
//we allow the normal element function to close the td and tr
|
||||
return $panel;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
27
deployed/mod_jflickr/modules/mod_jflickr/fields/info.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package jFlickr
|
||||
* @subpackage jFlickr
|
||||
* @author Joomla Bamboo - design@joomlabamboo.com
|
||||
* @copyright Copyright (c) 2014 Joomla Bamboo. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later
|
||||
* @version 1.4.2
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined( '_JEXEC' ) or die( 'Restricted access' );
|
||||
//import the necessary class definition for formfield
|
||||
jimport('joomla.html.html');
|
||||
jimport('joomla.form.formfield');
|
||||
class JFormFieldInfo extends JFormField {
|
||||
protected $type = 'Info';
|
||||
protected function getInput()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getLabel()
|
||||
{
|
||||
return '<div style="font-size:12px; line-height:18px; color:#333; padding:10px; margin:10px 0; background: #FAF2B6; height: auto; min-width: 100% important!; max-width: 100% important!;">'.JText::_($this->element['label']).'<div style="clear:both;"></div></div>';
|
||||
}
|
||||
}
|
||||
1
deployed/mod_jflickr/modules/mod_jflickr/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
158
deployed/mod_jflickr/modules/mod_jflickr/js/JFlickr.js
Normal file
@ -0,0 +1,158 @@
|
||||
/*
|
||||
|
||||
* jQuery Flickr - jQuery plug-in
|
||||
|
||||
* Version 1.0, Released 2008.04.17
|
||||
|
||||
*
|
||||
|
||||
* Copyright (c) 2008 Daniel MacDonald (www.projectatomic.com)
|
||||
|
||||
* Dual licensed GPL http://www.gnu.org/licenses/gpl.html
|
||||
|
||||
* and MIT http://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.fn.flickr = function(o){
|
||||
|
||||
var s = {
|
||||
api_key: null, // [string] required, see http://www.flickr.com/services/api/misc.api_keys.html
|
||||
type: null, // [string] allowed values: 'photoset', 'search', default: 'flickr.photos.getRecent'
|
||||
photoset_id: null, // [string] required, for type=='photoset'
|
||||
text: null, // [string] for type=='search' free text search
|
||||
user_id: null, // [string] for type=='search' search by user id
|
||||
group_id: null, // [string] for type=='search' search by group id
|
||||
tags: null, // [string] for type=='search' comma separated list
|
||||
tag_mode: 'any', // [string] for type=='search' allowed values: 'any' (OR), 'all' (AND)
|
||||
sort: 'relevance', // [string] for type=='search' allowed values: 'date-posted-asc', 'date-posted-desc', 'date-taken-asc', 'date-taken-desc', 'interestingness-desc', 'interestingness-asc', 'relevance'
|
||||
thumb_size: 's', // [string] allowed values: 's' (75x75), 't' (100x?), 'm' (240x?)
|
||||
size: null, // [string] allowed values: 'm' (240x?), 'b' (1024x?), 'o' (original), default: (500x?)
|
||||
per_page: 100, // [integer] allowed values: max of 500
|
||||
page: 1, // [integer] see paging notes
|
||||
attr: '', // [string] optional, attributes applied to thumbnail <a> tag
|
||||
api_url: null, // [string] optional, custom url that returns flickr JSON or JSON-P 'photos' or 'photoset'
|
||||
params: '', // [string] optional, custom arguments, see http://www.flickr.com/services/api/flickr.photos.search.html
|
||||
api_callback: '?', // [string] optional, custom callback in flickr JSON-P response
|
||||
callback: null , // [function] optional, callback function applied to entire <ul>
|
||||
module_id: null, //[string] id to be appended to link class
|
||||
zoom_class: null //[string] will add class for fancybox
|
||||
|
||||
// PAGING NOTES: jQuery Flickr plug-in does not provide paging functionality, but does provide hooks for a custom paging routine
|
||||
// within the <ul> created by the plug-in, there are two hidden <input> tags,
|
||||
// input:eq(0): current page, input:eq(1): total number of pages, input:eq(2): images per page, input:eq(3): total number of images
|
||||
|
||||
// SEARCH NOTES: when setting type to 'search' at least one search parameter must also be passed text, user_id, group_id, or tags
|
||||
|
||||
// SIZE NOTES: photos must allow viewing original size for size 'o' to function, if not, default size is shown
|
||||
};
|
||||
|
||||
if(o) $.extend(s, o);
|
||||
|
||||
return this.each(function(){
|
||||
|
||||
// create unordered list to contain flickr images
|
||||
var list = $('<ul>', { 'class': 't-side_flicker_list clearfix' } );
|
||||
$( this ).replaceWith( list );
|
||||
var url = $.flickr.format(s);
|
||||
|
||||
$.getJSON(url, function(r){
|
||||
if (r.stat != "ok"){
|
||||
for (i in r){
|
||||
$('<li>').text(i+': '+ r[i]).appendTo(list);
|
||||
};
|
||||
} else {
|
||||
if (s.type == 'photoset') r.photos = r.photoset;
|
||||
|
||||
for (var i=0; i<r.photos.photo.length; i++){
|
||||
var photo = r.photos.photo[i];
|
||||
switch (s.thumb_size){
|
||||
case 'sq':
|
||||
var t = photo.url_sq;
|
||||
break;
|
||||
|
||||
case 't':
|
||||
var t = photo.url_t;
|
||||
break;
|
||||
|
||||
case 's':
|
||||
var t = photo.url_s;
|
||||
break;
|
||||
|
||||
default:
|
||||
var t = photo.url_sq;
|
||||
};
|
||||
|
||||
//format image url
|
||||
switch (s.size){
|
||||
case 's':
|
||||
var h = photo.url_s;
|
||||
break;
|
||||
|
||||
case 'm':
|
||||
var h = photo.url_m;
|
||||
break;
|
||||
|
||||
case 'b':
|
||||
var h = 'https://farm'+photo['farm']+'.static.flickr.com/'+photo['server']+'/'+photo['id']+'_'+photo['secret'] + '_b.jpg';
|
||||
break;
|
||||
|
||||
case 'o':
|
||||
var h = photo.url_o;
|
||||
break;
|
||||
|
||||
default:
|
||||
h += photo['secret'] + '.jpg';
|
||||
};
|
||||
|
||||
list.append('<li><a href="'+h+'" '+s.attr+' class="'+s.zoom_class+'" rel="'+s.zoom_class+'" title="'+photo['title']+'"><img src="'+t+'" alt="'+photo['title']+'" width="80" height="80"/></a></li>');
|
||||
};
|
||||
|
||||
|
||||
// add hooks to access paging data
|
||||
list.append('<input type="hidden" value="'+r.photos.page+'" />');
|
||||
list.append('<input type="hidden" value="'+r.photos.pages+'" />');
|
||||
list.append('<input type="hidden" value="'+r.photos.perpage+'" />');
|
||||
list.append('<input type="hidden" value="'+r.photos.total+'" />');
|
||||
|
||||
if (s.callback) s.callback(list);
|
||||
};
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// static function to format the flickr API url according to the plug-in settings
|
||||
$.flickr = {
|
||||
format: function(s){
|
||||
if (s.url) return s.url;
|
||||
|
||||
var url = 'https://api.flickr.com/services/rest/?format=json&jsoncallback='+s.api_callback+'&api_key='+s.api_key;
|
||||
|
||||
switch (s.type){
|
||||
case 'photoset':
|
||||
url += '&method=flickr.photosets.getPhotos&photoset_id=' + s.photoset_id;
|
||||
break;
|
||||
|
||||
case 'search':
|
||||
url += '&method=flickr.photos.search&sort=' + s.sort;
|
||||
if (s.user_id) url += '&user_id=' + s.user_id;
|
||||
if (s.group_id) url += '&group_id=' + s.group_id;
|
||||
if (s.tags) url += '&tags=' + s.tags;
|
||||
if (s.tag_mode) url += '&tag_mode=' + s.tag_mode;
|
||||
if (s.text) url += '&text=' + s.text;
|
||||
break;
|
||||
|
||||
default:
|
||||
url += '&method=flickr.photos.getRecent';
|
||||
};
|
||||
|
||||
url += '&extras=original_format,url_sq,url_t,url_s,url_m,url_o';
|
||||
url += '&per_page=' + s.per_page + '&page=' + s.page + s.params;
|
||||
|
||||
return url;
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
1
deployed/mod_jflickr/modules/mod_jflickr/js/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 107 B |
|
After Width: | Height: | Size: 106 B |
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 324 B |
|
After Width: | Height: | Size: 111 B |
|
After Width: | Height: | Size: 352 B |
|
After Width: | Height: | Size: 340 B |
|
After Width: | Height: | Size: 103 B |
|
After Width: | Height: | Size: 503 B |
|
After Width: | Height: | Size: 96 B |
|
After Width: | Height: | Size: 70 B |
|
After Width: | Height: | Size: 506 B |
|
After Width: | Height: | Size: 203 B |
|
After Width: | Height: | Size: 176 B |
|
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1,72 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
@ -0,0 +1,359 @@
|
||||
/*
|
||||
* FancyBox - jQuery Plugin
|
||||
* Simple and fancy lightbox alternative
|
||||
*
|
||||
* Examples and documentation at: http://fancybox.net
|
||||
*
|
||||
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
||||
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
||||
*
|
||||
* Version: 1.3.4 (11/11/2010)
|
||||
* Requires: jQuery v1.3+
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
|
||||
#fancybox-loading {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-top: -20px;
|
||||
margin-left: -20px;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
z-index: 1104;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancybox-loading div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 40px;
|
||||
height: 480px;
|
||||
background-image: url('fancybox.png');
|
||||
}
|
||||
|
||||
#fancybox-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 1100;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancybox-tmp {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
overflow: auto;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancybox-wrap {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 20px;
|
||||
z-index: 1101;
|
||||
outline: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancybox-outer {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#fancybox-content {
|
||||
width: 0;
|
||||
height: 0;
|
||||
padding: 0;
|
||||
outline: none;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
z-index: 1102;
|
||||
border: 0px solid #fff;
|
||||
}
|
||||
|
||||
#fancybox-hide-sel-frame {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: transparent;
|
||||
z-index: 1101;
|
||||
}
|
||||
|
||||
#fancybox-close {
|
||||
position: absolute;
|
||||
top: -15px;
|
||||
right: -15px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: transparent url('fancybox.png') -40px 0px;
|
||||
cursor: pointer;
|
||||
z-index: 1103;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancybox-error {
|
||||
color: #444;
|
||||
font: normal 12px/20px Arial;
|
||||
padding: 14px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#fancybox-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: none;
|
||||
outline: none;
|
||||
line-height: 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#fancybox-frame {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#fancybox-left, #fancybox-right {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
height: 100%;
|
||||
width: 35%;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
background: transparent url('blank.gif');
|
||||
z-index: 1102;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancybox-left {
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
#fancybox-right {
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
#fancybox-left-ico, #fancybox-right-ico {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: -9999px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin-top: -15px;
|
||||
cursor: pointer;
|
||||
z-index: 1102;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#fancybox-left-ico {
|
||||
background-image: url('fancybox.png');
|
||||
background-position: -40px -30px;
|
||||
}
|
||||
|
||||
#fancybox-right-ico {
|
||||
background-image: url('fancybox.png');
|
||||
background-position: -40px -60px;
|
||||
}
|
||||
|
||||
#fancybox-left:hover, #fancybox-right:hover {
|
||||
visibility: visible; /* IE6 */
|
||||
}
|
||||
|
||||
#fancybox-left:hover span {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
#fancybox-right:hover span {
|
||||
left: auto;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.fancybox-bg {
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
#fancybox-bg-n {
|
||||
top: -20px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-image: url('fancybox-x.png');
|
||||
}
|
||||
|
||||
#fancybox-bg-ne {
|
||||
top: -20px;
|
||||
right: -20px;
|
||||
background-image: url('fancybox.png');
|
||||
background-position: -40px -162px;
|
||||
}
|
||||
|
||||
#fancybox-bg-e {
|
||||
top: 0;
|
||||
right: -20px;
|
||||
height: 100%;
|
||||
background-image: url('fancybox-y.png');
|
||||
background-position: -20px 0px;
|
||||
}
|
||||
|
||||
#fancybox-bg-se {
|
||||
bottom: -20px;
|
||||
right: -20px;
|
||||
background-image: url('fancybox.png');
|
||||
background-position: -40px -182px;
|
||||
}
|
||||
|
||||
#fancybox-bg-s {
|
||||
bottom: -20px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-image: url('fancybox-x.png');
|
||||
background-position: 0px -20px;
|
||||
}
|
||||
|
||||
#fancybox-bg-sw {
|
||||
bottom: -20px;
|
||||
left: -20px;
|
||||
background-image: url('fancybox.png');
|
||||
background-position: -40px -142px;
|
||||
}
|
||||
|
||||
#fancybox-bg-w {
|
||||
top: 0;
|
||||
left: -20px;
|
||||
height: 100%;
|
||||
background-image: url('fancybox-y.png');
|
||||
}
|
||||
|
||||
#fancybox-bg-nw {
|
||||
top: -20px;
|
||||
left: -20px;
|
||||
background-image: url('fancybox.png');
|
||||
background-position: -40px -122px;
|
||||
}
|
||||
|
||||
#fancybox-title {
|
||||
font-family: Helvetica;
|
||||
font-size: 12px;
|
||||
z-index: 1102;
|
||||
}
|
||||
|
||||
.fancybox-title-inside {
|
||||
padding-bottom: 10px;
|
||||
text-align: center;
|
||||
color: #333;
|
||||
background: #fff;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fancybox-title-outside {
|
||||
padding-top: 10px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.fancybox-title-over {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
color: #FFF;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#fancybox-title-over {
|
||||
padding: 10px;
|
||||
background-image: url('fancy_title_over.png');
|
||||
display: block;
|
||||
}
|
||||
|
||||
.fancybox-title-float {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -20px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
#fancybox-title-float-wrap {
|
||||
border: none;
|
||||
border-collapse: collapse;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#fancybox-title-float-wrap td {
|
||||
border: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#fancybox-title-float-left {
|
||||
padding: 0 0 0 15px;
|
||||
background: url('fancybox.png') -40px -90px no-repeat;
|
||||
}
|
||||
|
||||
#fancybox-title-float-main {
|
||||
color: #FFF;
|
||||
line-height: 29px;
|
||||
font-weight: bold;
|
||||
padding: 0 0 3px 0;
|
||||
background: url('fancybox-x.png') 0px -40px;
|
||||
}
|
||||
|
||||
#fancybox-title-float-right {
|
||||
padding: 0 0 0 15px;
|
||||
background: url('fancybox.png') -55px -90px no-repeat;
|
||||
}
|
||||
|
||||
/* IE6 */
|
||||
|
||||
.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }
|
||||
|
||||
.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
|
||||
.fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
|
||||
|
||||
.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
|
||||
.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
|
||||
.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
|
||||
.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
|
||||
|
||||
.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
|
||||
height: expression(this.parentNode.clientHeight + "px");
|
||||
}
|
||||
|
||||
#fancybox-loading.fancybox-ie6 {
|
||||
position: absolute; margin-top: 0;
|
||||
top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
|
||||
}
|
||||
|
||||
#fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); }
|
||||
|
||||
/* IE6, IE7, IE8 */
|
||||
|
||||
.fancybox-ie .fancybox-bg { background: transparent !important; }
|
||||
|
||||
.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
|
||||
.fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
|
||||
.fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
|
||||
.fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
|
||||
.fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
|
||||
.fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
|
||||
.fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
|
||||
.fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
|
||||
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* FancyBox - jQuery Plugin
|
||||
* Simple and fancy lightbox alternative
|
||||
*
|
||||
* Examples and documentation at: http://fancybox.net
|
||||
*
|
||||
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
||||
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
||||
*
|
||||
* Version: 1.3.4 (11/11/2010)
|
||||
* Requires: jQuery v1.3+
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
|
||||
;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
|
||||
F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
|
||||
c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
|
||||
false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
|
||||
function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
|
||||
'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
|
||||
"function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
|
||||
";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
|
||||
opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
|
||||
d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
|
||||
y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
|
||||
i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
|
||||
f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
|
||||
37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
|
||||
s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
|
||||
f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
|
||||
j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
|
||||
"image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
|
||||
10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
|
||||
b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
|
||||
0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
|
||||
1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
|
||||
true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
|
||||
b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
|
||||
d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
|
||||
D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
|
||||
b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};
|
||||
b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
|
||||
easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);
|
||||
@ -0,0 +1,14 @@
|
||||
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||||
*
|
||||
* Version: 3.0.4
|
||||
*
|
||||
* Requires: 1.2.2+
|
||||
*/
|
||||
|
||||
(function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
|
||||
f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
|
||||
123
deployed/mod_jflickr/modules/mod_jflickr/mod_jflickr.php
Normal file
@ -0,0 +1,123 @@
|
||||
<?php
|
||||
/**
|
||||
* JFlickr is a port of the Jquery Flickr Script by Project Atomic http://www.projectatomic.com/2008/04/jquery-flickr/
|
||||
*
|
||||
* @package jFlickr
|
||||
* @subpackage jFlickr
|
||||
* @author Joomla Bamboo - design@joomlabamboo.com
|
||||
* @copyright Copyright (c) 2012 Joomla Bamboo. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later
|
||||
* @version 1.4.1
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined( '_JEXEC' ) or die( 'Restricted access' );
|
||||
|
||||
$document =JFactory::getDocument();
|
||||
|
||||
|
||||
// Import the file / foldersystem
|
||||
jimport( 'joomla.filesystem.file' );
|
||||
|
||||
// Sets variables so we can check if framework or library is present
|
||||
$app = JFactory::getApplication();
|
||||
$framework = JPATH_ROOT . '/templates/' . $app->getTemplate() . '/includes/config.php';
|
||||
$jblibrary = JPATH_SITE . '/media/plg_jblibrary/helpers/image.php';
|
||||
|
||||
// Only test for zgf in versions prior to J3.0
|
||||
$zgf = 0;
|
||||
if (version_compare(JVERSION, '3.0', '<=')) {
|
||||
// Checks to see if framework is installed
|
||||
if (file_exists($framework))
|
||||
{
|
||||
require_once($framework);
|
||||
$zgf = 1;
|
||||
$library = JURI::base(true) . '/media/zengridframework/';
|
||||
}
|
||||
// Checks to see if JB Library is installed
|
||||
elseif (file_exists($jblibrary))
|
||||
{
|
||||
require_once($jblibrary);
|
||||
$zgf = 0;
|
||||
$library = JURI::base(true) . '/media/plg_jblibrary/';
|
||||
}
|
||||
// Else throw an error to let the user know
|
||||
else {
|
||||
echo '<div style="font-size:12px;font-family: helvetica neue, arial, sans serif;width:600px;margin:0 auto;background: #f9f9f9;border:1px solid #ddd ;margin-top:100px;padding:40px"><h3>Ooops. It looks like JbLibrary plugin or the Zen Grid Framework plugin is not installed!</h3> <br />Please install it and ensure that you have enabled the plugin by navigating to extensions > plugin manager. <br /><br />JB Library is a free Joomla extension that you can download directly from the <a href="http://www.joomlabamboo.com/joomla-extensions/jb-library-plugin-a-free-joomla-jquery-plugin">Joomla Bamboo website</a>.</div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (version_compare(JVERSION, '1.6', '>='))
|
||||
{
|
||||
|
||||
// Test to see if cache is enabled
|
||||
if ($app->getCfg('caching')) {
|
||||
$cache = 1;
|
||||
}
|
||||
else {
|
||||
$cache = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Test to see if cache is enabled
|
||||
if ($mainframe->getCfg('caching')) {
|
||||
$cache = 1;
|
||||
}
|
||||
else {
|
||||
$cache = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$modbase = JURI::root().'modules/mod_jflickr/';
|
||||
$scripts = $params->get( 'scripts', 1);
|
||||
$number = $params->get( 'number', '8' );
|
||||
$size = $params->get( 'size', 'original' );
|
||||
$tsize = $params->get( 'tsize', 's' );
|
||||
$type = $params->get( 'type', 'photoset' );
|
||||
$photoset_id = $params->get( 'photoset_id', '981332' );
|
||||
$text = $params->get( 'text', '' );
|
||||
$user_id = $params->get( 'user_id', '' );
|
||||
$group_id = $params->get( 'group_id', '' );
|
||||
$sort = $params->get( 'sort', 'relevance' );
|
||||
$tags = $params->get( 'tags', '' );
|
||||
$random = $params->get( 'random', 'false' );
|
||||
$fancyBox = $params->get( 'fancybox', 'yes' );
|
||||
$fancyBoxScript = $params->get( 'fancyboxScript', 'yes' );
|
||||
$fancyEasing = $params->get( 'fancyEasing', 'yes' );
|
||||
$fancyOverlayShow = $params->get('fancyOverlayShow','true');
|
||||
$fancyOverlay = $params->get('fancyOverlay','0.6');
|
||||
$fancyPadding = str_replace('px', '', $params->get('fancyPadding','20'));
|
||||
$moduleID = $module->id;
|
||||
$apiKey = $params->get( 'apiKey', 'f28804be7a09c5845676349c7e47d636' );
|
||||
|
||||
if ($type =="user") {
|
||||
$type1 ="search";
|
||||
}
|
||||
if ($type =="group") {
|
||||
$type1 ="search";
|
||||
}
|
||||
|
||||
$zoomClass = 'flickrZoom';
|
||||
if(!$cache) {
|
||||
$document->addStyleDeclaration('.gallery-flickr ul li {list-style-type:none;float:left;background: none;margin-left:0}.gallery-flickr ul {margin: 0} #right .gallery-flickr ul li a,#left .gallery-flickr ul li a,.gallery-flickr ul li a {float:left;margin:0 4px 4px 0;padding: 0;background:none;border: 0;} .gallery-flickr ul li a:hover {background: #ddd} #gallery-flickr {padding: 0;line-height: 0;margin: 0} .clearfix {clear:both}');
|
||||
|
||||
if (($fancyBoxScript == "yes") && ($fancyBox == "yes")){
|
||||
$document->addStyleSheet($modbase.'js/jquery.fancybox/jquery.fancybox-1.3.4.css');
|
||||
$zoomClass .= $moduleID;
|
||||
}
|
||||
|
||||
$document->addScript($modbase . "js/JFlickr.js");
|
||||
|
||||
if (($fancyBoxScript == "yes") && ($fancyBox == "yes")){
|
||||
$document->addScript($modbase . "js/jquery.fancybox/jquery.fancybox-1.3.4.pack.js");
|
||||
}
|
||||
|
||||
if ($fancyEasing == "yes"){
|
||||
$document->addScript($modbase . "js/jquery.fancybox/jquery.easing-1.3.pack.js");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
require(JModuleHelper::getLayoutPath('mod_jflickr', 'default')); ?>
|
||||
104
deployed/mod_jflickr/modules/mod_jflickr/mod_jflickr.xml
Normal file
@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension method="upgrade" type="module" version="2.5.0">
|
||||
<name>JFlickr</name>
|
||||
<author>Joomla Bamboo</author>
|
||||
<creationDate>July 01, 2014</creationDate>
|
||||
<copyright>Copyright (c) 2014 Joomla Bamboo. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later</license>
|
||||
<authorEmail>design@joomlabamboo.com</authorEmail>
|
||||
<authorUrl>www.joomlabamboo.com</authorUrl>
|
||||
<version>1.4.2</version>
|
||||
<description>This is a Joomla module of the original JQuery Flickr script by Project Atomic (http://www.projectatomic.com/2008/04/jquery-flickr/).
|
||||
This is a free module released to the Joomla community by Joomla Bamboo.</description>
|
||||
<files>
|
||||
<filename module="mod_jflickr">mod_jflickr.php</filename>
|
||||
<folder>js</folder>
|
||||
<folder>tmpl</folder>
|
||||
<folder>elements</folder>
|
||||
<folder>fields</folder>
|
||||
<filename>index.html</filename>
|
||||
</files>
|
||||
<languages>
|
||||
<language tag="en-GB">language/en-GB.mod_jflickr.ini</language>
|
||||
</languages>
|
||||
<config>
|
||||
<fields addpath="/modules/mod_jflickr/fields" name="params">
|
||||
<fieldset addfieldpath="/modules/mod_jflickr/fields" label="MOD_JFLICKR_SETTINGS" name="settings">
|
||||
<field default="16" description="Number of images you want to display." label="Number of images" name="number" type="text"/>
|
||||
<field default="s" description="Type of Gallery" label="Type of Gallery" name="type" type="list">
|
||||
<option value="photoset">Photoset</option>
|
||||
<option value="search">Keyword Search</option>
|
||||
<option value="user">User</option>
|
||||
<option value="group">Group</option>
|
||||
</field>
|
||||
<field default="72157631741652338" description="Photoset Id. Use this field if you have selected photoset as the type of gallery." label="Photoset Id" name="photoset_id" type="text"/>
|
||||
<field default="" description="Enter the term you want to search images for." label="Free Search Text" name="text" type="text"/>
|
||||
<field default="relevance" description="Method to sort photos" label="Sort Photos by" name="sort" type="list">
|
||||
<option value="date-posted-asc">Date Posted Ascending</option>
|
||||
<option value="date-posted-desc">Date Posted Descending</option>
|
||||
<option value="date-taken-asc">Date Taken Ascending</option>
|
||||
<option value="date-taken-desc">Date Taken Descending</option>
|
||||
<option value="interestingness-desc">Interestingness Descending</option>
|
||||
<option value="interestingness-asc">Interestingness Ascending</option>
|
||||
<option value="relevance">Relevance</option>
|
||||
</field>
|
||||
<field default="" description="Tags separated by commas" label="Tags" name="tags" type="text"/>
|
||||
<field default="Get you own unique <a href="http://www.flickr.com/services/api/keys/apply/">Flickr API Key</a> <br />" type="spacer"/>
|
||||
<field default="f28804be7a09c5845676349c7e47d636" description="Your unique Flickr API key" label="Flickr API Key" name="apiKey" type="text"/>
|
||||
</fieldset>
|
||||
<fieldset label="Flickr ID Settings" name="flickrID">
|
||||
<field default="Find your flickr user or group NSID at <a href="http://idgettr.com/">idgettr.com</a> <br />" type="spacer"/>
|
||||
<field default="" description="Select your user id. Flickr requires your NSID eg; 44047888@N04" label="User ID" name="user_id" type="text"/>
|
||||
<field default="" description="Select your group id. Flickr requires an NSID eg; 80044370@N00" label="Group ID" name="group_id" type="text"/>
|
||||
</fieldset>
|
||||
<fieldset label="MOD_JFLICKR_SCRIPTS_AND_CSS_FILES" name="scripts">
|
||||
<field label="MOD_JFLICKR_LOAD_INFO" name="" type="info"/>
|
||||
<field default="article" description="This option can be used to remove all javascript and css from being loaded by the microblog module. If in doubt leave this option enabled. If you are using the Zen Grid framework version2 then the scripts and css files will be loaded via the framework. If your site uses caching then the relevant files will be loaded into the body of your site." label="CSS and Javascript" name="scripts" type="radio">
|
||||
<option value="1">Enable CSS and Javascript</option>
|
||||
<option value="0">Disable CSS and Javascript</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset label="Flickr Image Settings" name="flickrSettings">
|
||||
<field default="sq" description="Size of the thumbnail image" label="Thumbnail Size" name="tsize" type="list">
|
||||
<option value="sq">Square Thumbnail</option>
|
||||
<option value="t">Uncropped Thumbnail</option>
|
||||
<option value="s">Larger Thumbnail</option>
|
||||
</field>
|
||||
<field default="m" description="Size of the Image" label="Image Size" name="size" type="list">
|
||||
<option value="s">Small</option>
|
||||
<option value="m">Medium</option>
|
||||
<option value="b">Large</option>
|
||||
<option value="o">Original Size</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset label="Fancy Box Settings" name="fancyBoxSettings">
|
||||
<field default="yes" description="Display image in fancy box popup?" label="Open Image in FancyBox" name="fancybox" type="list">
|
||||
<option value="yes">MOD_JFLICKR_YES</option>
|
||||
<option value="no">MOD_JFLICKR_NO</option>
|
||||
</field>
|
||||
<field default="yes" description="Do you wish to load the fancybox plugin? Set to no if it is already used by another module on the page." label="Load FancyBox Script?" name="fancyboxScript" type="list">
|
||||
<option value="yes">MOD_JFLICKR_YES</option>
|
||||
<option value="no">MOD_JFLICKR_NO</option>
|
||||
</field>
|
||||
<field default="yes" description="Set to yes for a smooth and subtle animated popup." label="Easing Effect" name="fancyEasing" type="list">
|
||||
<option value="yes">MOD_JFLICKR_YES</option>
|
||||
<option value="no">MOD_JFLICKR_NO</option>
|
||||
</field>
|
||||
<field default="true" description="If set to yes a transparent overlay will appear above the page and under the popup box." label="Use the overlay?" name="fancyOverlayShow" type="list">
|
||||
<option value="true">MOD_JFLICKR_YES</option>
|
||||
<option value="false">MOD_JFLICKR_NO</option>
|
||||
</field>
|
||||
<field default="0.6" description="If the previous option is set to yes this value controls the transparency of the overlay. 1 is entirely opaque while 0 is no overlay colour." label="Overlay Opacity" name="fancyOverlay" type="text"/>
|
||||
<field default="30" description="This value determines the amount of space that surrounds the image in the popup and the edge of the popup itself. Just a numerical value is required without the px" label="Popup Padding" name="fancyPadding" type="text"/>
|
||||
</fieldset>
|
||||
<fieldset label="MOD_JFLICKR_GENERAL_SETTINGS" name="general">
|
||||
<field default="0" description="MOD_JFLICKR_CACHING_DESC" label="MOD_JFLICKR_CACHING" name="cache" type="list">
|
||||
<option value="1">MOD_JFLICKR_USE_GLOBAL</option>
|
||||
<option value="0">MOD_JFLICKR_NO_CACHING</option>
|
||||
</field>
|
||||
<field default="900" description="MOD_JFLICKR_CASHE_TIME_DESC" label="MOD_JFLICKR_CASHE_TIME" name="cache_time" type="text"/>
|
||||
<field default="" description="PARAMMODULECLASSSUFFIX" label="MOD_JFLICKR_CLASS_SUFFIX" name="moduleclass_sfx" type="text"/>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</config>
|
||||
</extension>
|
||||
89
deployed/mod_jflickr/modules/mod_jflickr/tmpl/default.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/**
|
||||
* @package jFlickr
|
||||
* @subpackage jFlickr
|
||||
* @author Joomla Bamboo - design@joomlabamboo.com
|
||||
* @copyright Copyright (c) 2014 Joomla Bamboo. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later
|
||||
* @version 1.4.2
|
||||
*/
|
||||
|
||||
defined( '_JEXEC' ) or die( 'Restricted access' );?>
|
||||
<?php
|
||||
if($scripts && $cache) {?>
|
||||
<style type="text/css">
|
||||
.gallery-flickr ul li {list-style-type:none;float:left;background: none;margin-left:0}.gallery-flickr ul {margin: 0} #right .gallery-flickr ul li a,#left .gallery-flickr ul li a,.gallery-flickr ul li a {float:left;margin:0 4px 4px 0;padding: 0;background:none;border: 0;} .gallery-flickr ul li a:hover {background: #ddd} #gallery-flickr {padding: 0;line-height: 0;margin: 0} .clearfix {clear:both}
|
||||
</style>
|
||||
<?php if (($fancyBoxScript == "yes") && ($fancyBox == "yes")){?>
|
||||
<link rel="stylesheet" href="<?php echo $modbase ?>js/jquery.fancybox/jquery.fancybox-1.3.4.css" type="text/css" />
|
||||
<?php $zoomClass .= $moduleID;
|
||||
}
|
||||
}
|
||||
if($scripts && $cache) {?>
|
||||
<script type="text/javascript" src="<?php echo $modbase?>js/JFlickr.js"></script>
|
||||
<?php if (($fancyBoxScript == "yes") && ($fancyBox == "yes")){?>
|
||||
<script type="text/javascript" src="<?php echo $modbase?>js/jquery.fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||||
<?php if ($fancyEasing == "yes"){?>
|
||||
<script type="text/javascript" src="<?php echo $modbase?>js/jquery.fancybox/jquery.easing-1.3.pack.js"></script>
|
||||
<?php }
|
||||
}?>
|
||||
<?php }?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
jQuery(".gallery-flickr-<?php echo $moduleID ?>").flickr({
|
||||
api_key: "<?php echo $apiKey ?>",
|
||||
thumb_size: '<?php echo $tsize ?>',
|
||||
size: '<?php echo $size ?>',
|
||||
per_page: <?php echo $number ?>,
|
||||
randomise: '<?php echo $random ?>',
|
||||
<?php if ($type == "photoset") : ?>
|
||||
type: '<?php echo $type ?>',
|
||||
sort: '<?php echo $sort ?>',
|
||||
photoset_id: '<?php echo $photoset_id ?>',
|
||||
<?php endif; ?>
|
||||
<?php if ($type == "search") : ?>
|
||||
type: '<?php echo $type ?>',
|
||||
sort: '<?php echo $sort ?>',
|
||||
tags: '<?php echo $tags ?>',
|
||||
text: '<?php echo $text ?>',
|
||||
<?php endif; ?>
|
||||
<?php if ($type == "user") : ?>
|
||||
type: '<?php echo $type1 ?>',
|
||||
sort: '<?php echo $sort ?>',
|
||||
tags: '<?php echo $tags ?>',
|
||||
user_id: '<?php echo $user_id ?>',
|
||||
<?php endif; ?>
|
||||
<?php if ($type == "group") : ?>
|
||||
type: '<?php echo $type1 ?>',
|
||||
sort: '<?php echo $sort ?>',
|
||||
tags: '<?php echo $tags ?>',
|
||||
group_id: '<?php echo $group_id ?>',
|
||||
<?php endif; ?>
|
||||
module_id: '<?php echo $moduleID ?>',
|
||||
zoom_class: '<?php echo $zoomClass ?>',
|
||||
callback: fancyboxCallback
|
||||
});
|
||||
function fancyboxCallback(){
|
||||
<?php if ($fancyBox == "yes") : ?>
|
||||
jQuery("a[rel='<?php echo $zoomClass?>']").fancybox({
|
||||
zoomOpacity: false,
|
||||
padding: <?php echo $fancyPadding ?>,
|
||||
overlayOpacity: <?php echo $fancyOverlay ?>,
|
||||
'overlayShow' : <?php echo $fancyOverlayShow ?>,
|
||||
'zoomSpeedIn' : 600,
|
||||
'zoomSpeedOut' : 500,
|
||||
<?php if ($fancyEasing == "yes") : ?>
|
||||
'easingIn' : 'easeOutBack',
|
||||
'easingOut' : 'easeInBack',
|
||||
<?php endif; ?>
|
||||
'hideOnContentClick' : false
|
||||
|
||||
});
|
||||
<?php endif; ?>
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- Start Joomla Bamboo jFlickr -->
|
||||
<div class="gallery-flickr gallery-flickr-<?php echo $moduleID ?>"> </div>
|
||||
<div class="clearfix"></div>
|
||||
<!-- End Joomla Bamboo jFlickr -->
|
||||
1
deployed/mod_jflickr/modules/mod_jflickr/tmpl/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||