Skip to content

Commit d1b3a20

Browse files
authored
Merge pull request #166 from RRZE-Webteam/dev
Bugfix Slick-Galerie in Akkordion
2 parents 0148fd2 + 1091584 commit d1b3a20

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

includes/Accordion/assets/js/rrze-accordion.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jQuery(document).ready(function($) {
1919
//console.log("items = " + items.length + " open = " + open.length);
2020
}
2121
}
22-
2322
});
2423

2524
$('.accordion-toggle').bind('click', function(event) {
@@ -50,12 +49,15 @@ jQuery(document).ready(function($) {
5049
});
5150

5251
function toggleAccordion($accordion) {
52+
console.log('test5');
5353
var $thisgroup = $($accordion).closest('.accordion-group');
5454
var $othergroups = $($accordion).closest('.accordion').find('.accordion-group').not($thisgroup);
5555
$($othergroups).children('.accordion-heading').children(' .accordion-toggle').removeClass('active');
5656
$($othergroups).children('.accordion-body').not('.accordion-body.stayopen').not('.accordion-body.open').slideUp();
5757
$($thisgroup).children('.accordion-heading').children('.accordion-toggle').toggleClass('active');
5858
$($thisgroup).children('.accordion-body').slideToggle();
59+
// refresh Slick Gallery
60+
$($thisgroup).find("div.slick-slider").slick("refresh");
5961
}
6062

6163
function openAnchorAccordion($target) {

includes/Accordion/assets/js/rrze-accordion.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/ContentSlider/ContentSlider.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,12 @@ public function shortcodeContentSlider($atts, $content = '', $tag = '')
179179
wp_reset_postdata();
180180
}
181181

182-
$localizeScript = array(
183-
'start' => $start,
184-
);
185-
wp_localize_script( 'rrze-flexslider', 'object_name', $localizeScript );
182+
if (isset($start)) {
183+
$localizeScript = array(
184+
'start' => $start,
185+
);
186+
wp_localize_script('rrze-flexslider', 'object_name', $localizeScript);
187+
}
186188

187189
wp_enqueue_style('fontawesome');
188190
wp_enqueue_style('rrze-elements');

rrze-elements.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: RRZE Elements
55
Plugin URI: https://github.com/RRZE-Webteam/rrze-elements
66
Description: Advanced design elements for WordPress websites.
7-
Version: 1.22.1
7+
Version: 1.22.2
88
Author: RRZE Webteam
99
Author URI: https://blogs.fau.de/webworking/
1010
License: GNU General Public License v2

0 commit comments

Comments
 (0)