Changeset 195817
- Timestamp:
- 01/20/2010 02:35:54 PM (16 years ago)
- Location:
- wp-slimbox2
- Files:
-
- 60 added
- 6 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/WPlize (added)
-
tags/1.0.1/WPlize/WPlize.php (added)
-
tags/1.0.1/adminmenu.php (added)
-
tags/1.0.1/adminpage.php (added)
-
tags/1.0.1/images (added)
-
tags/1.0.1/images/de_DE (added)
-
tags/1.0.1/images/de_DE/closelabel-de.gif (added)
-
tags/1.0.1/images/de_DE/nextlabel-de.gif (added)
-
tags/1.0.1/images/de_DE/prevlabel-de.gif (added)
-
tags/1.0.1/images/default (added)
-
tags/1.0.1/images/default/closelabel.gif (added)
-
tags/1.0.1/images/default/loading.gif (added)
-
tags/1.0.1/images/default/nextlabel.gif (added)
-
tags/1.0.1/images/default/prevlabel.gif (added)
-
tags/1.0.1/images/es_ES (added)
-
tags/1.0.1/images/es_ES/closelabel-es.gif (added)
-
tags/1.0.1/images/es_ES/nextlabel-es.gif (added)
-
tags/1.0.1/images/es_ES/prevlabel-es.gif (added)
-
tags/1.0.1/images/fr_FR (added)
-
tags/1.0.1/images/fr_FR/closelabel.gif (added)
-
tags/1.0.1/images/fr_FR/nextlabel.gif (added)
-
tags/1.0.1/images/fr_FR/prevlabel.gif (added)
-
tags/1.0.1/images/nl_NL (added)
-
tags/1.0.1/images/nl_NL/closelabel-nl.gif (added)
-
tags/1.0.1/images/nl_NL/nextlabel-nl.gif (added)
-
tags/1.0.1/images/nl_NL/prevlabel-nl.gif (added)
-
tags/1.0.1/index.php (added)
-
tags/1.0.1/javascript (added)
-
tags/1.0.1/javascript/farbtastic (added)
-
tags/1.0.1/javascript/farbtastic/LICENSE.txt (added)
-
tags/1.0.1/javascript/farbtastic/farbtastic.css (added)
-
tags/1.0.1/javascript/farbtastic/farbtastic.js (added)
-
tags/1.0.1/javascript/farbtastic/load_farbtastic.js (added)
-
tags/1.0.1/javascript/farbtastic/marker.png (added)
-
tags/1.0.1/javascript/farbtastic/mask.png (added)
-
tags/1.0.1/javascript/farbtastic/wheel.png (added)
-
tags/1.0.1/javascript/jquery.easing.1.3.js (added)
-
tags/1.0.1/javascript/keypress.js (added)
-
tags/1.0.1/javascript/slimbox2.js (added)
-
tags/1.0.1/javascript/slimbox2_autoload.js (added)
-
tags/1.0.1/javascript/src (added)
-
tags/1.0.1/javascript/src/slimbox2_autoload.js (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/wp-slimbox2-de_DE.mo (added)
-
tags/1.0.1/languages/wp-slimbox2-de_DE.po (added)
-
tags/1.0.1/languages/wp-slimbox2-es_ES.mo (added)
-
tags/1.0.1/languages/wp-slimbox2-es_ES.po (added)
-
tags/1.0.1/languages/wp-slimbox2-fr_FR.mo (added)
-
tags/1.0.1/languages/wp-slimbox2-fr_FR.po (added)
-
tags/1.0.1/languages/wp-slimbox2-nl_NL.mo (added)
-
tags/1.0.1/languages/wp-slimbox2-nl_NL.po (added)
-
tags/1.0.1/languages/wp-slimbox2.pot (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/screenshot-1.jpg (added)
-
tags/1.0.1/screenshot-2.jpg (added)
-
tags/1.0.1/slimbox2.css (added)
-
tags/1.0.1/src (added)
-
tags/1.0.1/src/slimbox2.css (added)
-
tags/1.0.1/uninstall.php (added)
-
trunk/adminmenu.php (modified) (1 diff)
-
trunk/adminpage.php (modified) (1 diff)
-
trunk/index.php (modified) (4 diffs)
-
trunk/javascript/slimbox2_autoload.js (modified) (1 diff)
-
trunk/javascript/src/slimbox2_autoload.js (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-slimbox2/trunk/adminmenu.php
r194679 r195817 3 3 add_action( "admin_print_scripts-$page", 'slimbox_adminhead' ); 4 4 add_action( "admin_print_styles-$page", 'slimbox_admin_styles' ); 5 6 global $options;7 5 8 6 if(get_option('wp_slimbox_autoload')) {//if we're using a really old version of the plugin, transfer the settings, then delete them -
wp-slimbox2/trunk/adminpage.php
r195544 r195817 4 4 $msArray = array(1,100,200,300,400,500,600,700,800,900,1000); 5 5 $captions = array('a-title','img-alt','img-title','href','None'); 6 global $options;7 6 ?> 8 7 <div class="wrap"> -
wp-slimbox2/trunk/index.php
r195188 r195817 28 28 } 29 29 30 $options = new WPlize('wp_slimbox');31 30 32 31 load_plugin_textdomain ('wp-slimbox2', WP_PLUGIN_DIR.'/wp-slimbox2/languages', '/wp-slimbox2/languages'); … … 35 34 36 35 function wp_slimbox_styles() { 37 global $options;36 $options = new WPlize('wp_slimbox'); 38 37 wp_register_style('slimbox2', WP_PLUGIN_URL.'/wp-slimbox2/slimbox2.css','','1.0','screen'); 39 38 wp_enqueue_style('slimbox2'); … … 43 42 } 44 43 function wp_slimbox_scripts() { 45 global $options;44 $options = new WPlize('wp_slimbox'); 46 45 if (!is_admin()) 47 46 { … … 107 106 add_action('admin_init', 'slimbox_admin_init'); 108 107 109 function show_slimbox_options() {require('adminmenu.php');} 108 function show_slimbox_options() { 109 $options = new WPlize('wp_slimbox'); 110 require('adminmenu.php'); 111 } 110 112 111 113 function slimbox_options() { 114 $options = new WPlize('wp_slimbox'); 112 115 require('adminpage.php'); 113 116 } -
wp-slimbox2/trunk/javascript/slimbox2_autoload.js
r194826 r195817 1 jQuery(document).ready(function(a){if(slimbox2_options.mobile||!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)){slimbox_CSS();load_slimbox()}});function slimbox_CSS(){jQuery(function(a){a("#lbOverlay").css("background-color",slimbox2_options.overlayColor);if(slimbox2_options.LTR=="RTL"){a("#lbPrevLink").addClass("next");a("#lbNextLink").addClass("prev");a(".next").attr("id","lbNextLink");a(".prev").attr("id","lbPrevLink")}a("#lbPrevLink").hover(function(){a(this).css("background-image","url("+slimbox2_options.prev+")")},function(){a(this).css("background-image","")});a("#lbNextLink").hover(function(){a(this).css("background-image","url("+slimbox2_options.next+")")},function(){a(this).css("background-image","")});a("#lbCloseLink").css("background","transparent url("+slimbox2_options.close+") no-repeat center")})}function load_slimbox(){jQuery(function($){var options={loop:slimbox2_options.loop,overlayOpacity:slimbox2_options.overlayOpacity,overlayFadeDuration:parseInt(slimbox2_options.overlayFadeDuration),resizeDuration:parseInt(slimbox2_options.resizeDuration),resizeEasing:slimbox2_options.resizeEasing,initialWidth:parseInt(slimbox2_options.initialWidth),initialHeight:parseInt(slimbox2_options.initialHeight),imageFadeDuration:parseInt(slimbox2_options.imageFadeDuration),captionAnimationDuration:parseInt(slimbox2_options.captionAnimationDuration),counterText:slimbox2_options.counterText,closeKeys:slimbox2_options.closeKeys.split(",").map(Number),previousKeys:slimbox2_options.previousKeys.split(",").map(Number),nextKeys:slimbox2_options.nextKeys.split(",").map(Number)};if(slimbox2_options.autoload){$("a[href]").filter(function(){return/\.(jpeg|bmp|jpg|png|gif)(\?[\d\w=&]*)?$/i.test(this.href)}).unbind("click").slimbox(options,function(el){return[el.href,(slimbox2_options.url)?'<a href="'+el.href+'">'+eval(slimbox2_options.caption)+"</a>":eval(slimbox2_options.caption)]},function(el){return(this==el)||($(this). parents(slimbox2_options.selector)[0]&&($(this).parents(slimbox2_options.selector)[0]==$(el).parents(slimbox2_options.selector)[0]))})}else{$("a[rel^='lightbox']").unbind("click").slimbox(options,function(el){return[el.href,(slimbox2_options.url)?'<a href="'+el.href+'">'+eval(slimbox2_options.caption)+"</a>":eval(slimbox2_options.caption)]},function(el){return(this==el)||((this.rel.length>8)&&(this.rel==el.rel))})}if(slimbox2_options.picasaweb){$("a[href^='http://picasaweb.google.'] > img:first-child[src]").parent().unbind("click").slimbox(options,function(el){return[el.firstChild.src.replace(/\/s\d+(?:\-c)?\/([^\/]+)$/,"/s640/$2"),(el.title||el.firstChild.alt)+'<br /><a href="'+el.href+'">Picasa Web Albums page</a>']})}if(slimbox2_options.flickr){$("a[href^='http://www.flickr.com/photos/'] > img:first-child[src]").parent().unbind("click").slimbox(options,function(el){return[el.firstChild.src.replace(/_[mts]\.(\w+)$/,".$1"),(el.title||el.firstChild.alt)+'<br /><a href="'+el.href+'">Flickr page</a>']})}})};1 jQuery(document).ready(function(a){if(slimbox2_options.mobile||!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)){slimbox_CSS();load_slimbox()}});function slimbox_CSS(){jQuery(function(a){a("#lbOverlay").css("background-color",slimbox2_options.overlayColor);if(slimbox2_options.LTR=="RTL"){a("#lbPrevLink").addClass("next");a("#lbNextLink").addClass("prev");a(".next").attr("id","lbNextLink");a(".prev").attr("id","lbPrevLink")}a("#lbPrevLink").hover(function(){a(this).css("background-image","url("+slimbox2_options.prev+")")},function(){a(this).css("background-image","")});a("#lbNextLink").hover(function(){a(this).css("background-image","url("+slimbox2_options.next+")")},function(){a(this).css("background-image","")});a("#lbCloseLink").css("background","transparent url("+slimbox2_options.close+") no-repeat center")})}function load_slimbox(){jQuery(function($){var options={loop:slimbox2_options.loop,overlayOpacity:slimbox2_options.overlayOpacity,overlayFadeDuration:parseInt(slimbox2_options.overlayFadeDuration),resizeDuration:parseInt(slimbox2_options.resizeDuration),resizeEasing:slimbox2_options.resizeEasing,initialWidth:parseInt(slimbox2_options.initialWidth),initialHeight:parseInt(slimbox2_options.initialHeight),imageFadeDuration:parseInt(slimbox2_options.imageFadeDuration),captionAnimationDuration:parseInt(slimbox2_options.captionAnimationDuration),counterText:slimbox2_options.counterText,closeKeys:slimbox2_options.closeKeys.split(",").map(Number),previousKeys:slimbox2_options.previousKeys.split(",").map(Number),nextKeys:slimbox2_options.nextKeys.split(",").map(Number)};if(slimbox2_options.autoload){$("a[href]").filter(function(){return/\.(jpeg|bmp|jpg|png|gif)(\?[\d\w=&]*)?$/i.test(this.href)}).unbind("click").slimbox(options,function(el){return[el.href,(slimbox2_options.url)?'<a href="'+el.href+'">'+eval(slimbox2_options.caption)+"</a>":eval(slimbox2_options.caption)]},function(el){return(this==el)||($(this).closest(slimbox2_options.selector)[0]&&($(this).closest(slimbox2_options.selector)[0]==$(el).closest(slimbox2_options.selector)[0]))})}else{$("a[rel^='lightbox']").unbind("click").slimbox(options,function(el){return[el.href,(slimbox2_options.url)?'<a href="'+el.href+'">'+eval(slimbox2_options.caption)+"</a>":eval(slimbox2_options.caption)]},function(el){return(this==el)||((this.rel.length>8)&&(this.rel==el.rel))})}if(slimbox2_options.picasaweb){$("a[href^='http://picasaweb.google.'] > img:first-child[src]").parent().unbind("click").slimbox(options,function(el){return[el.firstChild.src.replace(/\/s\d+(?:\-c)?\/([^\/]+)$/,"/s640/$2"),(el.title||el.firstChild.alt)+'<br /><a href="'+el.href+'">Picasa Web Albums page</a>']})}if(slimbox2_options.flickr){$("a[href^='http://www.flickr.com/photos/'] > img:first-child[src]").parent().unbind("click").slimbox(options,function(el){return[el.firstChild.src.replace(/_[mts]\.(\w+)$/,".$1"),(el.title||el.firstChild.alt)+'<br /><a href="'+el.href+'">Flickr page</a>']})}})}; -
wp-slimbox2/trunk/javascript/src/slimbox2_autoload.js
r194826 r195817 59 59 return [el.href, (slimbox2_options['url'])?'<a href="' + el.href + '">'+eval(slimbox2_options['caption'])+'</a>':eval(slimbox2_options['caption'])]; 60 60 }, function(el) { 61 return (this == el) || ($(this). parents(slimbox2_options['selector'])[0] && ($(this).parents(slimbox2_options['selector'])[0] == $(el).parents(slimbox2_options['selector'])[0]));61 return (this == el) || ($(this).closest(slimbox2_options['selector'])[0] && ($(this).closest(slimbox2_options['selector'])[0] == $(el).closest(slimbox2_options['selector'])[0])); 62 62 }); 63 63 } else { -
wp-slimbox2/trunk/readme.txt
r195544 r195817 3 3 Donate link: http://transientmonkey.com/wp-slimbox2 4 4 Tags: slimbox, slimbox2, lightbox, jQuery, picture, photo, image, overlay, display, lightbox2 5 Requires at least: 2. 65 Requires at least: 2.8 6 6 Tested up to: 2.9.1 7 Stable Tag: 1.0 7 Stable Tag: 1.0.1 8 8 9 9 An WordPress implementation of the Slimbox2 javascript. … … 22 22 3. Expanded and easier to use settings management.<br /> 23 23 24 Recent Changes in v1.0.1:<br /> 25 1. To accomodate some installs the global options variable was removed. 26 2. To repair a small issue regarding selectors, .closest was used instead of .parents, bumping the jQuery requirement to 1.3, in turn bumping the WP requirement to 2.8. (If you insist on using an older version of WP, you can either manually upgrade jQuery, or switch back to using .parents, and specifically choose the selector value you want to use). 24 27 Recent Changes in v1.0:<br /> 25 28 1. Addition of options to select caption source, render the caption as a hyperlink to the image, control autoload grouping element, and disable the effect on mobile phones.<br /> … … 46 49 Autoload has been modified to group all images in a Wordpress post if the theme places posts inside a div with class="post". If the images are instead on a page they will all be grouped together. If you want individual group sets it is recommend you instead manually insert 'rel="lightbox-groupname"' inside your hyperlinks to specify your groups. 47 50 48 = Why do I need WordPress 2. 6+? =51 = Why do I need WordPress 2.8+? = 49 52 50 The Javascript requires jQuery 1. 2.6+ which wasn't included in WordPress until 2.6. If you're using something to override the included jQuery with a newer version (a feature I may add at a later date) it should be compatible from 2.1+ since I believe that was when wp_enqueue_script() was implemented.<br />53 The Javascript requires jQuery 1.3+ which wasn't included in WordPress until 2.8. If you're using something to override the included jQuery with a newer version (a feature I may add at a later date) it should be compatible from 2.1+ since I believe that was when wp_enqueue_script() was implemented.<br /> 51 54 52 55 = Why can't the plugin do X, Y or Z? =
Note: See TracChangeset
for help on using the changeset viewer.