Skip to content

Commit

Permalink
Sync to version 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mathetos committed Dec 14, 2016
1 parent c4349de commit e524343
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 67 deletions.
125 changes: 67 additions & 58 deletions css/gallery-owl-carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@
.owl-carousel .owl-dots,.owl-carousel .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-carousel .owl-nav{margin-top:10px}.owl-carousel .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-carousel .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-carousel .owl-nav .disabled{opacity:.5;cursor:default}.owl-carousel .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-carousel .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-carousel .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-carousel .owl-dots .owl-dot.active span,.owl-carousel .owl-dots .owl-dot:hover span{background:#869791}

/*admin preview thumbnail styles */
.foogallery-owl-carousel a {
body .foogallery-owl-carousel a {
display: inline-block;
overflow: hidden;
}

.foogallery-owl-carousel a img {
body .foogallery-owl-carousel a img {
border-radius: 0;
display: inline-block;
}
Expand All @@ -149,20 +149,21 @@
padding: 0 0 0 5px;
}

.foogallery-owl-carousel.border-style-rounded a,
.foogallery-owl-carousel.foogallery-lightbox-none.border-style-rounded .foo-item {
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
body .foogallery-owl-carousel.border-style-rounded a,
body .foogallery-owl-carousel.foogallery-lightbox-none.border-style-rounded .foo-item {
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}

.foogallery-owl-carousel.foogallery-lightbox-none.border-style-square-white .foo-item {
border: 5px solid #FFF;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.foogallery-owl-carousel.border-style-circle-white a {
body .foogallery-owl-carousel.foogallery-lightbox-none.border-style-square-white .foo-item {
border: 5px solid #FFF;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

body .foogallery-owl-carousel.border-style-circle-white a {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
Expand All @@ -172,44 +173,47 @@
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
max-width: 95%;
}
.foogallery-owl-carousel.border-style-circle-black a,
.foogallery-owl-carousel.border-style-circle-black.foogallery-lightbox-none img {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border: 3px solid #000;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.foogallery-owl-carousel.border-style-square-black a,
.foogallery-owl-carousel.foogallery-lightbox-none.border-style-square-black .foo-item {
border: 3px solid #000;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.foogallery-owl-carousel.border-style-inset a {
position: relative;
max-width: 100%;
margin: 0;
}
.foogallery-owl-carousel.border-style-inset a::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;

body .foogallery-owl-carousel.border-style-circle-black a,
body .foogallery-owl-carousel.border-style-circle-black.foogallery-lightbox-none img {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border: 3px solid #000;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.foogallery-owl-carousel.foogallery-lightbox-none.border-style-inset .foo-item:after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;

body .foogallery-owl-carousel.border-style-square-black a,
body .foogallery-owl-carousel.foogallery-lightbox-none.border-style-square-black .foo-item {
border: 3px solid #000;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
body .foogallery-owl-carousel.border-style-inset a {
position: relative;
max-width: 100%;
margin: 0;
}

body .foogallery-owl-carousel.border-style-inset a::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}

body .foogallery-owl-carousel.foogallery-lightbox-none.border-style-inset .foo-item:after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}


Expand All @@ -232,30 +236,35 @@ opacity: 1;
transition: all 0 ease 0;

max-height: 95%;

z-index: 999;
position: relative;

}

/* Hover Effects */
.foogallery-owl-carousel.hover-effect-zoom a {
background: #000 url('img/zoom.png') no-repeat center center;
background: #000 url('img/zoom.png') no-repeat center center;
}
.foogallery-owl-carousel.hover-effect-zoom2 a {
background: #000 url('img/zoom2.png') no-repeat center center;
background: #000 url('img/zoom2.png') no-repeat center center;
}
.foogallery-owl-carousel.hover-effect-zoom3 a {
background: #000 url('img/zoom3.png') no-repeat center center;
background: #000 url('img/zoom3.png') no-repeat center center;
}
.foogallery-owl-carousel.hover-effect-plus a {
background: #000 url('img/plus.png') no-repeat center center;
background: #000 url('img/plus.png') no-repeat center center;
}
.foogallery-owl-carousel.hover-effect-circle-plus a {
background: #000 url('img/circle-plus.png') no-repeat center center;
background: #000 url('img/circle-plus.png') no-repeat center center;
z-index: 999;
position: relative;
}
.foogallery-owl-carousel.hover-effect-eye a {
background: #000 url('img/eye.png') no-repeat center center;
background: #000 url('img/eye.png') no-repeat center center;
}
.foogallery-owl-carousel.hover-effect-zoom a:hover img, .foogallery-owl-carousel.hover-effect-zoom2 a:hover img, .foogallery-owl-carousel.hover-effect-zoom3 a:hover img, .foogallery-owl-carousel.hover-effect-plus a:hover img, .foogallery-owl-carousel.hover-effect-circle-plus a:hover img, .foogallery-owl-carousel.hover-effect-eye a:hover img {
opacity: 0.5;
opacity: 0.5;
}


Expand Down
2 changes: 1 addition & 1 deletion foogallery-owl-carousel-extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @wordpress-plugin
* Plugin Name: FooGallery Owl Carousel Template
* Description: An Owl Carousel template for <a href="https://wordpress.org/plugins/foogallery" target="_blank">FooGallery</a> with multiple options for presentation and functionality. Full details on Owl Carousel <a href="http://www.owlcarousel.owlgraphic.com/" target="_blank">here</a>
* Version: 1.4
* Version: 1.4.2
* Author: Matt Cromwell
* Author URI: https://www.mattcromwell.com/products/foogallery-owl-carousel/
* License: GPL-2.0+
Expand Down
13 changes: 7 additions & 6 deletions gallery-owl-carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
});

<?php

switch ($animation) {
case 'lightspeed' :
$aniOut = 'lightSpeedOut';
Expand Down Expand Up @@ -167,17 +168,17 @@
break;

default :
$aniOut = 'false';
$aniIn = 'false';
$aniOut = false;
$aniIn = false;
}

?>

$galleryContainer.owlCarousel({
<?php if (!empty($animation)) { ?>
animateOut: <?php echo $aniOut; ?>,
animateIn: <?php echo $aniIn; ?>,
<?php } ?>
<?php if ( $animation != "left" ) { ?>
animateOut: '<?php echo $aniOut; ?>',
animateIn: '<?php echo $aniIn; ?>',
<?php } ?>
items: <?php echo $items; ?>,
nav: <?php echo $nav; ?>,
margin: <?php echo $margin; ?>,
Expand Down
3 changes: 2 additions & 1 deletion js/gallery-owl-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3272,4 +3272,5 @@
$.support.transform3d = tests.csstransforms3d();
}

})(window.Zepto || window.jQuery, window, document);
})(window.Zepto || window.jQuery, window, document);

9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.mattcromwell.com/products/foogallery-owl-carousel/
Tags: foogallery, owl carousel, responsive
Requires at least: 3.8
Tested up to: 4.5.3
Stable tag: 1.4
Stable tag: 1.4.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -150,6 +150,13 @@ Awww shucks! I lean on tons of other stronger, smarter, more skilled people than
5. Choose from a plethora of styles and hover effects. See a preview live while you create your gallery.

== Changelog ==
= 1.4.2 =
* BUG: Chrome circle effect was breaking out.
* Tweak: Better conditional function for animation in init

= 1.4.1 =
* Hotfix: properly wrap animateOut/animateIn values

= 1.4 =
* Added filter to disable LazyLoad
* Added filter for adding additional custom init rules
Expand Down

0 comments on commit e524343

Please sign in to comment.