Skip to content

Commit

Permalink
Merge pull request #166 from RRZE-Webteam/dev
Browse files Browse the repository at this point in the history
Bugfix Slick-Galerie in Akkordion
  • Loading branch information
cassandre authored Feb 8, 2022
2 parents 0148fd2 + 1091584 commit d1b3a20
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion includes/Accordion/assets/js/rrze-accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jQuery(document).ready(function($) {
//console.log("items = " + items.length + " open = " + open.length);
}
}

});

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

function toggleAccordion($accordion) {
console.log('test5');
var $thisgroup = $($accordion).closest('.accordion-group');
var $othergroups = $($accordion).closest('.accordion').find('.accordion-group').not($thisgroup);
$($othergroups).children('.accordion-heading').children(' .accordion-toggle').removeClass('active');
$($othergroups).children('.accordion-body').not('.accordion-body.stayopen').not('.accordion-body.open').slideUp();
$($thisgroup).children('.accordion-heading').children('.accordion-toggle').toggleClass('active');
$($thisgroup).children('.accordion-body').slideToggle();
// refresh Slick Gallery
$($thisgroup).find("div.slick-slider").slick("refresh");
}

function openAnchorAccordion($target) {
Expand Down
2 changes: 1 addition & 1 deletion includes/Accordion/assets/js/rrze-accordion.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions includes/ContentSlider/ContentSlider.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,12 @@ public function shortcodeContentSlider($atts, $content = '', $tag = '')
wp_reset_postdata();
}

$localizeScript = array(
'start' => $start,
);
wp_localize_script( 'rrze-flexslider', 'object_name', $localizeScript );
if (isset($start)) {
$localizeScript = array(
'start' => $start,
);
wp_localize_script('rrze-flexslider', 'object_name', $localizeScript);
}

wp_enqueue_style('fontawesome');
wp_enqueue_style('rrze-elements');
Expand Down
2 changes: 1 addition & 1 deletion rrze-elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: RRZE Elements
Plugin URI: https://github.com/RRZE-Webteam/rrze-elements
Description: Advanced design elements for WordPress websites.
Version: 1.22.1
Version: 1.22.2
Author: RRZE Webteam
Author URI: https://blogs.fau.de/webworking/
License: GNU General Public License v2
Expand Down

0 comments on commit d1b3a20

Please sign in to comment.