Changeset 367767
- Timestamp:
- 04/01/2011 02:23:06 AM (15 years ago)
- Location:
- galleria-galleria/trunk
- Files:
-
- 2 added
- 5 edited
-
galleria-galleria.php (modified) (2 diffs)
-
galleria-themes/classic/galleria.classic.css (modified) (2 diffs)
-
galleria-themes/classic/galleria.classic.js (modified) (9 diffs)
-
galleria-themes/classic/galleria.classic.min.js (modified) (2 diffs)
-
js/galleria-1.2.2.js (added)
-
readme.txt (modified) (3 diffs)
-
screenshot-2.png (added)
Legend:
- Unmodified
- Added
- Removed
-
galleria-galleria/trunk/galleria-galleria.php
r366106 r367767 126 126 'label' => __( 'Dots' ) 127 127 ), 128 <<<<<<< HEAD 129 ======= 130 /* 131 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 128 132 'fullscreen' => array( 129 133 'value' => 'fullscreen', 130 134 'label' => __( 'Fullscreen' ) 131 135 ) 136 <<<<<<< HEAD 137 ======= 138 */ 139 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 132 140 ); 133 141 … … 361 369 return; 362 370 371 <<<<<<< HEAD 363 372 wp_enqueue_script('photo-galleria', plugins_url( '/js/galleria-1.2.2.min.js', __FILE__ ), array('jquery')); 364 373 wp_print_scripts('photo-galleria'); 374 ======= 375 wp_enqueue_script('galleria', plugins_url( '/js/galleria-1.2.2.min.js', __FILE__ ), array('jquery')); 376 wp_print_scripts('galleria'); 377 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 365 378 galleria_galleria_scripts_head(); 366 379 } -
galleria-galleria/trunk/galleria-themes/classic/galleria.classic.css
r366106 r367767 81 81 margin: 0; 82 82 color: #fff; 83 <<<<<<< HEAD 84 ======= 85 margin-bottom: 7px; 86 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 83 87 } 84 88 .galleria-info-description { … … 87 91 color: #bbb; 88 92 } 93 <<<<<<< HEAD 89 94 .galleria-info-title+.galleria-info-description { 90 95 margin-top: 7px; 91 96 } 97 ======= 98 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 92 99 .galleria-info-close { 93 100 width: 9px; -
galleria-galleria/trunk/galleria-themes/classic/galleria.classic.js
r366106 r367767 1 <<<<<<< HEAD 1 2 /* 2 3 * Galleria Classic Theme v. 1.5 2010-10-28 … … 6 7 * Licensed under the MIT license. 7 8 */ 9 ======= 10 /** 11 * @preserve Galleria Classic Theme 2011-02-14 12 * http://galleria.aino.se 13 * 14 * Copyright (c) 2011, Aino 15 * Licensed under the MIT license. 16 */ 17 18 /*global jQuery, Galleria */ 19 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 8 20 9 21 (function($) { … … 12 24 name: 'classic', 13 25 author: 'Galleria', 26 <<<<<<< HEAD 14 27 version: '1.5', 15 28 css: 'galleria.classic.css', … … 20 33 // set this to false if you want to show the caption all the time: 21 34 _toggle_info: true 35 ======= 36 css: 'galleria.classic.css', 37 defaults: { 38 transition: 'slide', 39 thumbCrop: 'height', 40 41 // set this to false if you want to show the caption all the time: 42 _toggleInfo: true 43 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 22 44 }, 23 45 init: function(options) { … … 30 52 31 53 // cache some stuff 54 <<<<<<< HEAD 32 55 var toggle = this.$('image-nav-left,image-nav-right,counter'), 33 56 info = this.$('info-link,info-close,info-text'), … … 47 70 }); 48 71 72 ======= 73 var info = this.$('info-link,info-close,info-text'), 74 touch = Galleria.TOUCH, 75 click = touch ? 'touchstart' : 'click'; 76 77 // show loader & counter with opacity 78 this.$('loader,counter').show().css('opacity', 0.4); 79 80 // some stuff for non-touch browsers 81 if (! touch ) { 82 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 49 83 this.addIdleState( this.get('image-nav-left'), { left:-50 }); 50 84 this.addIdleState( this.get('image-nav-right'), { right:-50 }); … … 53 87 54 88 // toggle info 89 <<<<<<< HEAD 55 90 if ( options._toggle_info ) { 56 91 info.bind( click, function() { … … 67 102 if (!e.cached) { 68 103 this.$('loader').show().fadeTo(200, .4); 104 ======= 105 if ( options._toggleInfo === true ) { 106 info.bind( click, function() { 107 info.toggle(); 108 }); 109 } else { 110 info.show(); 111 this.$('info-link, info-close').hide(); 112 } 113 114 // bind some stuff 115 this.bind('thumbnail', function(e) { 116 117 if (! touch ) { 118 // fade thumbnails 119 $(e.thumbTarget).css('opacity', 0.6).parent().hover(function() { 120 $(this).not('.active').children().stop().fadeTo(100, 1); 121 }, function() { 122 $(this).not('.active').children().stop().fadeTo(400, 0.6); 123 }); 124 125 if ( e.index === options.show ) { 126 $(e.thumbTarget).css('opacity',1); 127 } 128 } 129 }); 130 131 this.bind('loadstart', function(e) { 132 if (!e.cached) { 133 this.$('loader').show().fadeTo(200, 0.4); 134 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 69 135 } 70 136 71 137 this.$('info').toggle( this.hasInfo() ); 72 138 139 <<<<<<< HEAD 73 140 $(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity',.6); 74 141 }); 75 142 76 143 this.bind(Galleria.LOADFINISH, function(e) { 144 ======= 145 $(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity', 0.6); 146 }); 147 148 this.bind('loadfinish', function(e) { 149 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 77 150 this.$('loader').fadeOut(200); 78 151 }); … … 80 153 }); 81 154 155 <<<<<<< HEAD 82 156 })(jQuery); 157 ======= 158 }(jQuery)); 159 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d -
galleria-galleria/trunk/galleria-themes/classic/galleria.classic.min.js
r366106 r367767 1 1 /* 2 <<<<<<< HEAD 2 3 * Galleria Classic Theme v. 1.5 2010-10-28 3 4 * http://galleria.aino.se … … 10 11 1)},function(){a(this).not(".active").children().stop().fadeTo(400,0.6)});this.addIdleState(this.get("image-nav-left"),{left:-50});this.addIdleState(this.get("image-nav-right"),{right:-50});this.addIdleState(this.get("counter"),{opacity:0})}d._toggle_info&&c.bind(e,function(){c.toggle()});this.bind(Galleria.THUMBNAIL,function(b){a(b.thumbTarget).parent(":not(.active)").children().css("opacity",0.6)});this.bind(Galleria.LOADSTART,function(b){b.cached||this.$("loader").show().fadeTo(200,0.4);this.$("info").toggle(this.hasInfo()); 11 12 a(b.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",0.6)});this.bind(Galleria.LOADFINISH,function(){this.$("loader").fadeOut(200)})}})})(jQuery); 13 ======= 14 Galleria Classic Theme 2011-02-14 15 http://galleria.aino.se 16 17 Copyright (c) 2011, Aino 18 Licensed under the MIT license. 19 */ 20 (function(b){Galleria.addTheme({name:"classic",author:"Galleria",css:"galleria.classic.css",defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:true},init:function(e){this.addElement("info-link","info-close");this.append({info:["info-link","info-close"]});var c=this.$("info-link,info-close,info-text"),d=Galleria.TOUCH,f=d?"touchstart":"click";this.$("loader,counter").show().css("opacity",0.4);if(!d){this.addIdleState(this.get("image-nav-left"),{left:-50});this.addIdleState(this.get("image-nav-right"), 21 {right:-50});this.addIdleState(this.get("counter"),{opacity:0})}if(e._toggleInfo===true)c.bind(f,function(){c.toggle()});else{c.show();this.$("info-link, info-close").hide()}this.bind("thumbnail",function(a){if(!d){b(a.thumbTarget).css("opacity",0.6).parent().hover(function(){b(this).not(".active").children().stop().fadeTo(100,1)},function(){b(this).not(".active").children().stop().fadeTo(400,0.6)});a.index===e.show&&b(a.thumbTarget).css("opacity",1)}});this.bind("loadstart",function(a){a.cached|| 22 this.$("loader").show().fadeTo(200,0.4);this.$("info").toggle(this.hasInfo());b(a.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",0.6)});this.bind("loadfinish",function(){this.$("loader").fadeOut(200)})}})})(jQuery); 23 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d -
galleria-galleria/trunk/readme.txt
r367764 r367767 5 5 Requires at least: 3.0 6 6 Tested up to: 3.1 7 <<<<<<< HEAD 7 8 Stable tag: 0.1a 9 ======= 10 Stable tag: 0.1 11 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 8 12 9 13 Transform standard WordPress galleries into galleria slideshows. … … 11 15 == Description == 12 16 17 <<<<<<< HEAD 13 18 Galleria Galleria is a fork of [Photo Galleria](http://wordpress.org/extend/plugins/photo-galleria/) that is designed to minimize resources and selectively load javascript. I love how the Photo Galleria plugin was integrated into the Wordpress gallery system but I could not stand seeing so many resources load on every page when only one might contain a gallery. Galleria Galleria will only load javascript on pages that actually have a gallery. Beyond that, we will see what other improvements I can make to this plugin. I'm open for suggestions! 14 19 … … 24 29 == Frequently Asked Questions == 25 30 31 ======= 32 Galleria Galleria is a fork of [Photo Galleria](http://wordpress.org/extend/plugins/photo-galleria/) that is designed to minimize resources and selectively load javascript. This plugin will only load javascript on pages that actually have a gallery. Galleria Galleria also keeps standard gallery styling if javascript is not enabled. Beyond that, this plugin is built using the [Galleria javascript library](http://galleria.aino.se/) that allows for advanced theming and customization. 33 34 == Installation == 35 36 1. Upload the entire `galleria-galleria` folder to the `/wp-content/plugins/` directory 37 2. Activate the plugin through the 'Plugins' menu in WordPress 38 3. All existing galleries inserted using the [gallery] shortcode will now use Galleria Galleria. 39 40 == Screenshots == 41 42 1. The Galleria Galleria settings page 43 2. An example gallery 44 == Frequently Asked Questions == 45 46 = How is this plugin different from other Wordpress gallery plugins? = 47 Galleria Galleria is designed to only selectively load javascript to reduce the load time of your site. It also works seamlessly with galleries you have already created for your site in Wordpress. 48 49 == Other Notes == 50 This plugin uses the standard [gallery] shortcode to create slideshows. It also adds support for a per gallery height attribute in the format [gallery height=500] to create a gallery with a height of 500px. 51 52 >>>>>>> 35c5c655cc18e3740580345c3e138092eb06e20d 26 53 == Changelog == 27 54
Note: See TracChangeset
for help on using the changeset viewer.