Skip to content

Commit

Permalink
Merge branch 'borlabs-cookie'
Browse files Browse the repository at this point in the history
  • Loading branch information
mheob committed Jul 29, 2019
2 parents c20d9cb + 29b751f commit b2c1d54
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
28 changes: 16 additions & 12 deletions app/src/fubade-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,23 @@ window.FussballdeWidgetAPI = () => {
);

// Divi tab support
const diviTab = document.querySelector('.et_pb_tabs_controls a');
if (diviTab) {
diviTab.addEventListener(
'click',
() => {
document.querySelectorAll('.et_pb_tab_content [id^="fubade_"] > iframe').forEach(iframe => {
iframe.src += '';
});
},
false
);
if (document.body.classList.contains('et_divi_theme')) {
const diviTabs = document.querySelectorAll('.et_pb_tabs_controls a');
if (diviTabs.length > 0) {
diviTabs.forEach(diviTab => {
diviTab.addEventListener(
'click',
() => {
document.querySelectorAll('.et_pb_tab_content [id^="fubade_"] > iframe').forEach(iframe => {
iframe.src += '';
});
},
false
);
});
}
}

return widgetObj;
};

Expand Down
4 changes: 2 additions & 2 deletions app/src/include-fussball-de-widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Include Fussball.de Widgets
* Description: Easy integration of the Fussball.de widgets (currently in the version since season 2016). Use it like: [fubade api="{32-digit API}" notice="description"]
* Version: 2.2.3-b2
* Version: 2.2.3-b3
* Author: IT-Service Böhm -- Alexander Böhm
* Author URI: http://profiles.wordpress.org/mheob
* License: GPLv2
Expand All @@ -15,7 +15,7 @@
defined( 'ABSPATH' ) || exit;


define( 'IFDW_VERSION', '2.2.3-b2' );
define( 'IFDW_VERSION', '2.2.3-b3' );


/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "include-fussball-de-widgets",
"version": "2.2.3-b2",
"version": "2.2.3-b3",
"description": "A WordPress plugin for easy integration of fussball.de widgets.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: soccer, football, widget, fussball.de
Requires PHP: 5.6
Requires at least: 4.8
Tested up to: 5.2
Stable tag: 2.2.3-b2
Stable tag: 2.2.3-b3
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down
2 changes: 1 addition & 1 deletion tasks/release-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
mkdir -p .github-releases/include-fussball-de-widgets
cp -r ./app/dist/* .github-releases/include-fussball-de-widgets
cd .github-releases
7z a -r include-fussball-de-widgets-v2.2.3-b2.zip include-fussball-de-widgets
7z a -r include-fussball-de-widgets-v2.2.3-b3.zip include-fussball-de-widgets
rm -rf include-fussball-de-widgets
cd ..

0 comments on commit b2c1d54

Please sign in to comment.