Skip to content

Commit 747fab2

Browse files
authored
Merge pull request #194 from RRZE-Webteam/dev
v1.22.10
2 parents 11be654 + 2bb7c3c commit 747fab2

File tree

7 files changed

+6431
-48
lines changed

7 files changed

+6431
-48
lines changed

assets/css/_columns.scss

+3
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@
136136
float: none;
137137
margin: 0;
138138
padding: 0 10px 1.5em;
139+
.entry-content {
140+
min-width: 0;
141+
}
139142
}
140143

141144
@media (min-width: 480px) {

assets/css/rrze-elements.css

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

assets/css/rrze-elements.css.map

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

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

+29-29
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jQuery(document).ready(function($) {
1313
})
1414
$('.accordion').each(function() {
1515
if ($(this).find('button.expand-all').length > 0) {
16-
let items = $(this).find(".accordion-group");
17-
let open = $(this).find(".accordion-body.open");
16+
var items = $(this).find(".accordion-group");
17+
var open = $(this).find(".accordion-body.open");
1818
if (items.length == open.length) {
1919
$(this).find('button.expand-all').attr("data-status", 'open').data('status', 'open').html(__('Collapse All', 'rrze-elements'));
2020
//$(this).find('button.expand-all').attr("data-status", 'open').data('status', 'open').html(accordionToggle.collapse_all);
@@ -25,8 +25,8 @@ jQuery(document).ready(function($) {
2525

2626
$('.accordion-toggle').bind('mousedown', function(event) {
2727
event.preventDefault();
28-
let $accordion = $(this).attr('href');
29-
let $name = $(this).data('name');
28+
var $accordion = $(this).attr('href');
29+
var $name = $(this).data('name');
3030
toggleAccordion($accordion);
3131
// Put name attribute in URL path if available, else href
3232
if (typeof($name) !== 'undefined') {
@@ -39,8 +39,8 @@ jQuery(document).ready(function($) {
3939
// Keyboard navigation for accordions
4040
$('.accordion-toggle').keydown(function(event) {
4141
if (event.keyCode == 32) {
42-
let $accordion = $(this).attr('href');
43-
let $name = $(this).data('name');
42+
var $accordion = $(this).attr('href');
43+
var $name = $(this).data('name');
4444
toggleAccordion($accordion);
4545
if (typeof($name) !== 'undefined') {
4646
window.history.replaceState(null, null, '#' + $name);
@@ -51,23 +51,23 @@ jQuery(document).ready(function($) {
5151
});
5252

5353
function toggleAccordion($accordion) {
54-
let $thisgroup = $($accordion).closest('.accordion-group');
55-
let $othergroups = $($accordion).closest('.accordion').find('.accordion-group').not($thisgroup);
54+
var $thisgroup = $($accordion).closest('.accordion-group');
55+
var $othergroups = $($accordion).closest('.accordion').find('.accordion-group').not($thisgroup);
5656
$($othergroups).children('.accordion-heading').children(' .accordion-toggle').removeClass('active');
5757
$($othergroups).children('.accordion-body').not('.accordion-body.stayopen').slideUp();
5858
$($thisgroup).children('.accordion-heading').children('.accordion-toggle').toggleClass('active');
5959
$($thisgroup).children('.accordion-body').slideToggle();
6060
// refresh Slick Gallery
61-
let $slick = $($thisgroup).find("div.slick-slider");
61+
var $slick = $($thisgroup).find("div.slick-slider");
6262
if ($slick.length < 0) {
6363
$slick.slick("refresh");
6464
}
6565
}
6666

6767
function openAnchorAccordion($target) {
6868
if ($target.closest('.accordion').parent().closest('.accordion-group')) {
69-
let $thisgroup = $($target).closest('.accordion-group');
70-
let $othergroups = $($target).closest('.accordion').find('.accordion-group').not($thisgroup);
69+
var $thisgroup = $($target).closest('.accordion-group');
70+
var $othergroups = $($target).closest('.accordion').find('.accordion-group').not($thisgroup);
7171
$($othergroups).find('.accordion-toggle').removeClass('active');
7272
$($othergroups).find('.accordion-body').not('.accordion-body.stayopen').slideUp();
7373
$($thisgroup).find('.accordion-toggle:first').not('.active').addClass('active');
@@ -76,24 +76,24 @@ jQuery(document).ready(function($) {
7676
$($thisgroup).parents('.accordion-group').find('.accordion-toggle:first').not('.active').addClass('active');
7777
$($thisgroup).parents('.accordion-body').slideDown();
7878
}
79-
let offset = $target.offset();
80-
let $scrolloffset = offset.top - 300;
79+
var offset = $target.offset();
80+
var $scrolloffset = offset.top - 300;
8181
$('html,body').animate({
8282
scrollTop: $scrolloffset
8383
}, 'slow');
8484
}
8585

8686
if (window.location.hash) {
87-
let identifier = window.location.hash.split('_')[0];
88-
let inpagenum = window.location.hash.split('_')[1];
87+
var identifier = window.location.hash.split('_')[0];
88+
var inpagenum = window.location.hash.split('_')[1];
8989
if (identifier == '#collapse') {
9090
if ($.isNumeric(inpagenum)) {
91-
let $findid = 'collapse_' + inpagenum;
92-
let $target = $('body').find('#' + $findid);
91+
var $findid = 'collapse_' + inpagenum;
92+
var $target = $('body').find('#' + $findid);
9393
}
9494
} else {
95-
let $findname = window.location.hash.replace('\#', '');
96-
let $target = $('body').find('div[name=' + $findname + ']');
95+
var $findname = window.location.hash.replace('\#', '');
96+
var $target = $('body').find('div[name=' + $findname + ']');
9797
}
9898
if ($target.length > 0) {
9999
openAnchorAccordion($target);
@@ -106,17 +106,17 @@ jQuery(document).ready(function($) {
106106
if (($('[id^=accordion-]').length) &&
107107
(!$(this).hasClass("accordion-toggle")) &&
108108
(!$(this).hasClass("accordion-tabs-nav-toggle"))) {
109-
let $hash = $(this).prop("hash");
110-
let identifier = $hash.split('_')[0];
111-
let inpagenum = $hash.split('_')[1];
109+
var $hash = $(this).prop("hash");
110+
var identifier = $hash.split('_')[0];
111+
var inpagenum = $hash.split('_')[1];
112112
if (identifier == '#collapse') {
113113
if ($.isNumeric(inpagenum)) {
114-
let $findid = 'collapse_' + inpagenum;
115-
let $target = $('body').find('#' + $findid);
114+
var $findid = 'collapse_' + inpagenum;
115+
var $target = $('body').find('#' + $findid);
116116
}
117117
} else {
118-
let $findname = identifier.replace('\#', '');
119-
let $target = $('body').find('div[name=' + $findname + ']');
118+
var $findname = identifier.replace('\#', '');
119+
var $target = $('body').find('div[name=' + $findname + ']');
120120
}
121121
if ($target) {
122122
openAnchorAccordion($target);
@@ -125,7 +125,7 @@ jQuery(document).ready(function($) {
125125
});
126126

127127
$('.expand-all').click(function(e) {
128-
let $thisgroup = $(this).closest('.accordion');
128+
var $thisgroup = $(this).closest('.accordion');
129129
if ($(this).data('status') === 'open') {
130130
$($thisgroup).find('.accordion-body').slideUp();
131131
$($thisgroup).find('.accordion-toggle').removeClass('active');
@@ -140,7 +140,7 @@ jQuery(document).ready(function($) {
140140
// Assistant tabs
141141
$('.assistant-tabs-nav a').bind('click', function (event) {
142142
event.preventDefault();
143-
let pane = $(this).attr('href');
143+
var pane = $(this).attr('href');
144144
$(this).parents('ul').find('a').removeClass('active');
145145
$(this).addClass('active');
146146
$(this).parents('.assistant-tabs').find('.assistant-tab-pane').removeClass('assistant-tab-pane-active');
@@ -150,7 +150,7 @@ jQuery(document).ready(function($) {
150150
// Keyboard navigation for assistant tabs
151151
$('.assistant-tabs-nav a').keydown('click', function (event) {
152152
if (event.keyCode == 32) {
153-
let pane = $(this).attr('href');
153+
var pane = $(this).attr('href');
154154
$(this).parents('ul').find('a').removeClass('active');
155155
$(this).addClass('active');
156156
$(this).parents('.assistant-tabs').find('.assistant-tab-pane').removeClass('assistant-tab-pane-active');

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.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rrze-elements",
3-
"version": "1.22.9",
3+
"version": "1.22.10",
44
"description": "RRZE Elements: Gestalterische Erweiterungen für Webauftritte.",
55
"main": "rrze-elements.php",
66
"textdomain": "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.9
7+
Version: 1.22.10
88
Author: RRZE Webteam
99
Author URI: https://blogs.fau.de/webworking/
1010
License: GNU General Public License v2

0 commit comments

Comments
 (0)