diff --git a/assets/css/atcb-3d.css b/assets/css/atcb-3d.css
index 0b6d4c7d..631644f9 100644
--- a/assets/css/atcb-3d.css
+++ b/assets/css/atcb-3d.css
@@ -5,7 +5,7 @@
*
* Style: 3D
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/assets/css/atcb-date.css b/assets/css/atcb-date.css
index a6a2304c..95dfc2d9 100644
--- a/assets/css/atcb-date.css
+++ b/assets/css/atcb-date.css
@@ -5,7 +5,7 @@
*
* Style: Date
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/assets/css/atcb-flat.css b/assets/css/atcb-flat.css
index 68291e1d..4eed17e9 100644
--- a/assets/css/atcb-flat.css
+++ b/assets/css/atcb-flat.css
@@ -5,7 +5,7 @@
*
* Style: Flat
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/assets/css/atcb-neumorphism.css b/assets/css/atcb-neumorphism.css
index 31965bcf..890f0705 100644
--- a/assets/css/atcb-neumorphism.css
+++ b/assets/css/atcb-neumorphism.css
@@ -5,7 +5,7 @@
*
* Style: Neumorphism
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/assets/css/atcb-round.css b/assets/css/atcb-round.css
index 9b7bc1c0..b5470e68 100644
--- a/assets/css/atcb-round.css
+++ b/assets/css/atcb-round.css
@@ -5,7 +5,7 @@
*
* Style: Round
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/assets/css/atcb-simple.css b/assets/css/atcb-simple.css
index 20651d33..71aa2983 100644
--- a/assets/css/atcb-simple.css
+++ b/assets/css/atcb-simple.css
@@ -5,7 +5,7 @@
*
* Style: Simple
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/assets/css/atcb-text.css b/assets/css/atcb-text.css
index 716d4fc1..ee1e5b46 100644
--- a/assets/css/atcb-text.css
+++ b/assets/css/atcb-text.css
@@ -5,7 +5,7 @@
*
* Style: Text
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/assets/css/atcb.css b/assets/css/atcb.css
index a47cc1ec..483b126e 100644
--- a/assets/css/atcb.css
+++ b/assets/css/atcb.css
@@ -5,7 +5,7 @@
*
* Style: Default
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/demo/components/footer.vue b/demo/components/footer.vue
index fdcae973..975ed667 100644
--- a/demo/components/footer.vue
+++ b/demo/components/footer.vue
@@ -70,7 +70,7 @@ function topFunction() {
© {{new Date().getFullYear()}}
- , Current Version: 2.12.6
+ , Current Version: 2.12.7
diff --git a/demo/i18n/locales/en.json b/demo/i18n/locales/en.json
index b05cdf62..151d423f 100644
--- a/demo/i18n/locales/en.json
+++ b/demo/i18n/locales/en.json
@@ -520,7 +520,7 @@
"description_sub_1": "This is the first part to check the Add to Calendar Button script at [url]https://add-to-calendar-button.com/[/url]",
"description_sub_2": "This is the second part to check the Add to Calendar Button script at [url]https://add-to-calendar-button.com/[/url]",
"description_sub_3": "This is the third part to check the Add to Calendar Button script at [url]https://add-to-calendar-button.com/[/url]",
- "default_timezone": "America/Los_Angeles",
+ "default_timezone": "EST",
"location": "World Wide Web",
"options_label_single_dummy": "My custom label",
"custom_labels": "{'{'}\"close\":\"Close the list again\", \"apple\":\"Apple is ok for me\", \"google\":\"Add to Google Cal\", \"outlookcom\":\"Use Outlook instead\", \"yahoo\":\"Yahoo, really?\", \"ical\":\"iCall ftw!\"{'}'}",
diff --git a/demo/public/atcb.css b/demo/public/atcb.css
index 47f3dabb..5a5b058d 100644
--- a/demo/public/atcb.css
+++ b/demo/public/atcb.css
@@ -5,7 +5,7 @@
*
* Style: Default
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/package-lock.json b/package-lock.json
index 1885a215..cb613fb6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "add-to-calendar-button",
- "version": "2.12.6",
+ "version": "2.12.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "add-to-calendar-button",
- "version": "2.12.6",
+ "version": "2.12.7",
"license": "ELv2",
"dependencies": {
"timezones-ical-library": "^1.10.0"
diff --git a/package.json b/package.json
index ca349ef4..417d9eb4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "add-to-calendar-button",
- "version": "2.12.6",
+ "version": "2.12.7",
"engines": {
"node": ">=18.17.0",
"npm": ">=9.6.7"
diff --git a/src/atcb-control.js b/src/atcb-control.js
index 61af667a..0e7a7a9f 100644
--- a/src/atcb-control.js
+++ b/src/atcb-control.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-decorate.js b/src/atcb-decorate.js
index ee903456..c4d893c1 100644
--- a/src/atcb-decorate.js
+++ b/src/atcb-decorate.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -28,7 +28,6 @@ async function atcb_decorate_data(data) {
data.lightMode = atcb_decorate_light_mode(data.lightMode);
data = atcb_decorate_data_i18n(data);
data = atcb_decorate_data_dates(data);
- data = atcb_decorate_data_button_status_handling(data);
data = await atcb_decorate_data_rsvp(data);
return data;
}
@@ -453,6 +452,8 @@ function atcb_decorate_data_dates(data) {
data = atcb_replace_custom_variables(data, i);
data = atcb_set_online_event_flag(data, i);
}
+ // check for past events
+ data = atcb_decorate_data_button_status_handling(data);
// calculate current time
const now = new Date();
// set created date
diff --git a/src/atcb-event.js b/src/atcb-event.js
index 5fb75f4c..0ee38009 100644
--- a/src/atcb-event.js
+++ b/src/atcb-event.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-generate-pro.js b/src/atcb-generate-pro.js
index 3d5dc43a..c0ef0858 100644
--- a/src/atcb-generate-pro.js
+++ b/src/atcb-generate-pro.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-generate-rich-data.js b/src/atcb-generate-rich-data.js
index 9ed43529..f0589201 100644
--- a/src/atcb-generate-rich-data.js
+++ b/src/atcb-generate-rich-data.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-generate.js b/src/atcb-generate.js
index b2ea348a..1562e806 100644
--- a/src/atcb-generate.js
+++ b/src/atcb-generate.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-globals.js b/src/atcb-globals.js
index f2ad8ac5..164cfa64 100644
--- a/src/atcb-globals.js
+++ b/src/atcb-globals.js
@@ -5,14 +5,14 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
*
*/
-const atcbVersion = '2.12.6';
+const atcbVersion = '2.12.7';
// DEFINING CSS
const atcbCssTemplate = {};
diff --git a/src/atcb-i18n.js b/src/atcb-i18n.js
index 80774a8e..611739e2 100644
--- a/src/atcb-i18n.js
+++ b/src/atcb-i18n.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-init.js b/src/atcb-init.js
index 6d0dacad..5270c99b 100644
--- a/src/atcb-init.js
+++ b/src/atcb-init.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-links.js b/src/atcb-links.js
index 3be9e4d6..d5a86266 100644
--- a/src/atcb-links.js
+++ b/src/atcb-links.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-util.js b/src/atcb-util.js
index ca414a30..9ff756b6 100644
--- a/src/atcb-util.js
+++ b/src/atcb-util.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
diff --git a/src/atcb-validate.js b/src/atcb-validate.js
index 20d4417d..65e14fce 100644
--- a/src/atcb-validate.js
+++ b/src/atcb-validate.js
@@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
- * Version: 2.12.6
+ * Version: 2.12.7
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)