Version Description
Download this release
Release Info
Developer | creativethemeshq |
Plugin | Blocksy Companion |
Version | 1.8.55 |
Comparing to | |
See all releases |
Code changes from version 1.8.54 to 1.8.55
- blocksy-companion.php +1 -1
- framework/extensions/cookies-consent/static/bundle/main.min.css +1 -1
- framework/extensions/newsletter-subscribe/static/bundle/main.min.css +1 -1
- framework/extensions/product-reviews/static/bundle/main-admin.min.css +1 -1
- framework/extensions/product-reviews/static/bundle/main.min.css +1 -1
- framework/extensions/trending/static/bundle/main.min.css +1 -1
- framework/extensions/widgets/static/bundle/main.min.css +1 -1
- framework/features/header/modal/register.php +19 -7
- framework/helpers/helpers.php +2 -2
- framework/theme-integration.php +98 -38
- languages/blocksy-companion.pot +29 -29
- readme.txt +6 -2
- static/bundle/account-lazy.min.css +1 -1
- static/bundle/dashboard.min.css +1 -1
- static/bundle/options.min.css +1 -1
- static/bundle/sticky.js +1 -1
- static/js/frontend/sticky.js +15 -18
blocksy-companion.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Blocksy Companion
|
5 |
Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
|
6 |
-
Version: 1.8.
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blocksy-companion
|
3 |
/*
|
4 |
Plugin Name: Blocksy Companion
|
5 |
Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
|
6 |
+
Version: 1.8.55
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blocksy-companion
|
framework/extensions/cookies-consent/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/newsletter-subscribe/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/main-admin.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/trending/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/widgets/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/features/header/modal/register.php
CHANGED
@@ -90,13 +90,25 @@ if (
|
|
90 |
</svg>
|
91 |
</button>
|
92 |
|
93 |
-
<?php
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
</p>
|
101 |
|
102 |
<?php do_action('blocksy:account:modal:register:end'); ?>
|
90 |
</svg>
|
91 |
</button>
|
92 |
|
93 |
+
<?php
|
94 |
+
if (
|
95 |
+
\Blocksy\Plugin::instance()->account_auth->has_woo_register_flow()
|
96 |
+
&&
|
97 |
+
function_exists('dokan')
|
98 |
+
) {
|
99 |
+
echo blocksy_html_tag(
|
100 |
+
'input',
|
101 |
+
[
|
102 |
+
'type' => 'hidden',
|
103 |
+
'name' => 'redirect_to',
|
104 |
+
'value' => apply_filters(
|
105 |
+
'dokan_seller_setup_wizard_url',
|
106 |
+
site_url('?page=dokan-seller-setup')
|
107 |
+
)
|
108 |
+
]
|
109 |
+
);
|
110 |
+
}
|
111 |
+
?>
|
112 |
</p>
|
113 |
|
114 |
<?php do_action('blocksy:account:modal:register:end'); ?>
|
framework/helpers/helpers.php
CHANGED
@@ -140,7 +140,7 @@ function blc_get_contacts_output($args = []) {
|
|
140 |
<?php foreach ($args['data'] as $single_layer) { ?>
|
141 |
<?php if (! $single_layer['enabled']) { continue; }?>
|
142 |
<li>
|
143 |
-
<?php
|
144 |
$icon = blocksy_html_tag(
|
145 |
'span',
|
146 |
[
|
@@ -149,7 +149,7 @@ function blc_get_contacts_output($args = []) {
|
|
149 |
$svg_icons_defaults[$single_layer['id']]
|
150 |
);
|
151 |
|
152 |
-
if (function_exists('blc_get_icon')) {
|
153 |
$icon = blc_get_icon([
|
154 |
'icon_descriptor' => blocksy_akg(
|
155 |
'icon',
|
140 |
<?php foreach ($args['data'] as $single_layer) { ?>
|
141 |
<?php if (! $single_layer['enabled']) { continue; }?>
|
142 |
<li>
|
143 |
+
<?php
|
144 |
$icon = blocksy_html_tag(
|
145 |
'span',
|
146 |
[
|
149 |
$svg_icons_defaults[$single_layer['id']]
|
150 |
);
|
151 |
|
152 |
+
if (function_exists('blc_get_icon')) {
|
153 |
$icon = blc_get_icon([
|
154 |
'icon_descriptor' => blocksy_akg(
|
155 |
'icon',
|
framework/theme-integration.php
CHANGED
@@ -12,27 +12,18 @@ class ThemeIntegration {
|
|
12 |
||
|
13 |
is_customize_preview()
|
14 |
) {
|
15 |
-
$
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
]),
|
21 |
-
'url' => blc_call_fn(
|
22 |
-
[
|
23 |
-
'fn' => 'blocksy_cdn_url',
|
24 |
-
'default' => BLOCKSY_URL . 'static/bundle/account.js'
|
25 |
-
],
|
26 |
-
BLOCKSY_URL . 'static/bundle/account.js'
|
27 |
-
),
|
28 |
-
'deps' => [
|
29 |
'blocksy-zxcvbn',
|
30 |
'wp-hooks',
|
31 |
'wp-i18n',
|
32 |
'password-strength-meter',
|
33 |
-
]
|
34 |
|
35 |
-
|
36 |
[
|
37 |
'var' => 'wc_password_strength_meter_params',
|
38 |
'data' => [
|
@@ -63,8 +54,25 @@ class ThemeIntegration {
|
|
63 |
'mismatch' => _x( 'Mismatch', 'password mismatch' ),
|
64 |
]
|
65 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
-
],
|
68 |
'trigger' => 'click',
|
69 |
'has_modal_loader' => [
|
70 |
'skip_if_no_template' => true,
|
@@ -500,32 +508,84 @@ class ThemeIntegration {
|
|
500 |
}
|
501 |
|
502 |
public function svg_dimensions($svg) {
|
503 |
-
$svg =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
$width = 0;
|
505 |
$height = 0;
|
506 |
|
507 |
-
if ($
|
508 |
-
|
|
|
509 |
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
}
|
526 |
-
} else {
|
527 |
-
return false;
|
528 |
}
|
|
|
|
|
529 |
}
|
530 |
|
531 |
return [
|
12 |
||
|
13 |
is_customize_preview()
|
14 |
) {
|
15 |
+
$deps = [];
|
16 |
+
$global_data = [];
|
17 |
+
|
18 |
+
if (class_exists('woocommerce')) {
|
19 |
+
$deps = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
'blocksy-zxcvbn',
|
21 |
'wp-hooks',
|
22 |
'wp-i18n',
|
23 |
'password-strength-meter',
|
24 |
+
];
|
25 |
|
26 |
+
$global_data = [
|
27 |
[
|
28 |
'var' => 'wc_password_strength_meter_params',
|
29 |
'data' => [
|
54 |
'mismatch' => _x( 'Mismatch', 'password mismatch' ),
|
55 |
]
|
56 |
]
|
57 |
+
];
|
58 |
+
}
|
59 |
+
|
60 |
+
$chunks[] = [
|
61 |
+
'id' => 'blocksy_account',
|
62 |
+
'selector' => implode(', ', [
|
63 |
+
'.ct-header-account[href*="account-modal"]',
|
64 |
+
'.must-log-in a'
|
65 |
+
]),
|
66 |
+
'url' => blc_call_fn(
|
67 |
+
[
|
68 |
+
'fn' => 'blocksy_cdn_url',
|
69 |
+
'default' => BLOCKSY_URL . 'static/bundle/account.js'
|
70 |
+
],
|
71 |
+
BLOCKSY_URL . 'static/bundle/account.js'
|
72 |
+
),
|
73 |
+
'deps' => $deps,
|
74 |
+
'global_data' => $global_data,
|
75 |
|
|
|
76 |
'trigger' => 'click',
|
77 |
'has_modal_loader' => [
|
78 |
'skip_if_no_template' => true,
|
508 |
}
|
509 |
|
510 |
public function svg_dimensions($svg) {
|
511 |
+
$svg = file_get_contents($svg);
|
512 |
+
|
513 |
+
$attributes = new \stdClass();
|
514 |
+
|
515 |
+
if ($svg && function_exists('simplexml_load_string')) {
|
516 |
+
$svg = @simplexml_load_string($svg);
|
517 |
+
$attributes = $svg->attributes();
|
518 |
+
}
|
519 |
+
|
520 |
+
if (
|
521 |
+
! isset($attributes->width)
|
522 |
+
&&
|
523 |
+
$svg
|
524 |
+
&&
|
525 |
+
function_exists('xml_parser_create')
|
526 |
+
) {
|
527 |
+
$xml = xml_parser_create('UTF-8');
|
528 |
+
|
529 |
+
$svgData = new \stdClass();
|
530 |
+
|
531 |
+
xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, false);
|
532 |
+
xml_set_element_handler(
|
533 |
+
$xml,
|
534 |
+
function ($parser, $name, $attrs) use (&$svgData) {
|
535 |
+
if ($name === 'SVG') {
|
536 |
+
if (isset($attrs['WIDTH'])) {
|
537 |
+
$attrs['width'] = $attrs['WIDTH'];
|
538 |
+
}
|
539 |
+
|
540 |
+
if (isset($attrs['HEIGHT'])) {
|
541 |
+
$attrs['height'] = $attrs['HEIGHT'];
|
542 |
+
}
|
543 |
+
|
544 |
+
if (isset($attrs['VIEWBOX'])) {
|
545 |
+
$attrs['viewBox'] = $attrs['VIEWBOX'];
|
546 |
+
}
|
547 |
+
|
548 |
+
foreach ($attrs as $key => $value) {
|
549 |
+
$svgData->{$key} = $value;
|
550 |
+
}
|
551 |
+
}
|
552 |
+
},
|
553 |
+
'tag_close'
|
554 |
+
);
|
555 |
+
|
556 |
+
if (xml_parse($xml, $svg, true)) {
|
557 |
+
$attributes = $svgData;
|
558 |
+
}
|
559 |
+
|
560 |
+
xml_parser_free($xml);
|
561 |
+
}
|
562 |
+
|
563 |
+
|
564 |
$width = 0;
|
565 |
$height = 0;
|
566 |
|
567 |
+
if (empty($attributes)) {
|
568 |
+
return false;
|
569 |
+
}
|
570 |
|
571 |
+
if (
|
572 |
+
isset($attributes->width, $attributes->height)
|
573 |
+
&&
|
574 |
+
is_numeric($attributes->width)
|
575 |
+
&&
|
576 |
+
is_numeric($attributes->height)
|
577 |
+
) {
|
578 |
+
$width = floatval($attributes->width);
|
579 |
+
$height = floatval($attributes->height);
|
580 |
+
} elseif (isset($attributes->viewBox)) {
|
581 |
+
$sizes = explode(' ', $attributes->viewBox);
|
582 |
+
|
583 |
+
if (isset($sizes[2], $sizes[3])) {
|
584 |
+
$width = floatval($sizes[2]);
|
585 |
+
$height = floatval($sizes[3]);
|
|
|
|
|
|
|
586 |
}
|
587 |
+
} else {
|
588 |
+
return false;
|
589 |
}
|
590 |
|
591 |
return [
|
languages/blocksy-companion.pot
CHANGED
@@ -7,7 +7,7 @@ msgstr ""
|
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"POT-Creation-Date: 2022-
|
11 |
"Project-Id-Version: undefined\n"
|
12 |
"X-Poedit-Basepath: ..\n"
|
13 |
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;"
|
@@ -122,73 +122,73 @@ msgid ""
|
|
122 |
"a wishlits page."
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: framework/theme-integration.php:
|
126 |
#: framework/extensions/widgets/widgets/ct-facebook/options.php:16,
|
127 |
#: framework/extensions/widgets/widgets/ct-facebook/view.php:12,
|
128 |
#: framework/extensions/widgets/widgets/ct-facebook/widget.php:13
|
129 |
msgid "Facebook"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: framework/theme-integration.php:
|
133 |
msgid "Twitter"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: framework/theme-integration.php:
|
137 |
msgid "LinkedIn"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: framework/theme-integration.php:
|
141 |
msgid "Dribbble"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: framework/theme-integration.php:
|
145 |
msgid "Instagram"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: framework/theme-integration.php:
|
149 |
msgid "Pinterest"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: framework/theme-integration.php:
|
153 |
msgid "WordPress"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: framework/theme-integration.php:
|
157 |
msgid "GitHub"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: framework/theme-integration.php:
|
161 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:497,
|
162 |
#: framework/extensions/widgets/widgets/ct-socials/options.php:100,
|
163 |
#: framework/premium/features/content-blocks/options/archive.php:47
|
164 |
msgid "Medium"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: framework/theme-integration.php:
|
168 |
msgid "YouTube"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: framework/theme-integration.php:
|
172 |
msgid "Vimeo"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: framework/theme-integration.php:
|
176 |
msgid "VKontakte"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: framework/theme-integration.php:
|
180 |
msgid "Odnoklassniki"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: framework/theme-integration.php:
|
184 |
msgid "TikTok"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: framework/theme-integration.php:
|
188 |
msgid "Companion"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: framework/theme-integration.php:
|
192 |
msgid "PRO"
|
193 |
msgstr ""
|
194 |
|
@@ -706,7 +706,7 @@ msgstr ""
|
|
706 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:151,
|
707 |
#: framework/premium/features/premium-header/items/contacts/options.php:404,
|
708 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:186,
|
709 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
710 |
#: framework/premium/features/premium-header/items/search-input/options.php:188
|
711 |
msgid "Design"
|
712 |
msgstr ""
|
@@ -778,8 +778,8 @@ msgstr ""
|
|
778 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:249,
|
779 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:279,
|
780 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:308,
|
781 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
782 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
783 |
#: framework/premium/features/premium-header/items/search-input/options.php:241,
|
784 |
#: framework/premium/features/premium-header/items/search-input/options.php:273,
|
785 |
#: framework/premium/features/premium-header/items/search-input/options.php:303,
|
@@ -836,7 +836,7 @@ msgstr ""
|
|
836 |
#: framework/premium/features/premium-header/items/dark-mode-switcher/options.php:81,
|
837 |
#: framework/premium/features/premium-header/items/dark-mode-switcher/options.php:111,
|
838 |
#: framework/premium/features/premium-header/items/dark-mode-switcher/options.php:140,
|
839 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
840 |
#: framework/premium/features/premium-header/items/search-input/options.php:788
|
841 |
msgid "Hover"
|
842 |
msgstr ""
|
@@ -849,7 +849,7 @@ msgstr ""
|
|
849 |
#: framework/features/header/items/account/options.php:1263,
|
850 |
#: framework/premium/extensions/woocommerce-extra/includes/wish-list-options.php:173,
|
851 |
#: framework/premium/extensions/post-types-extra/includes/read-progress/customizer.php:92,
|
852 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
853 |
msgid "Background Color"
|
854 |
msgstr ""
|
855 |
|
@@ -872,7 +872,7 @@ msgstr ""
|
|
872 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:232,
|
873 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:262,
|
874 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:291,
|
875 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
876 |
msgid "Font Color"
|
877 |
msgstr ""
|
878 |
|
@@ -2392,7 +2392,7 @@ msgstr ""
|
|
2392 |
|
2393 |
#: framework/premium/extensions/mega-menu/options.php:644,
|
2394 |
#: framework/premium/extensions/shortcuts/customizer.php:900,
|
2395 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
2396 |
#: framework/premium/features/premium-header/items/search-input/options.php:836
|
2397 |
msgid "Items Divider"
|
2398 |
msgstr ""
|
@@ -2660,7 +2660,7 @@ msgstr ""
|
|
2660 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:173,
|
2661 |
#: framework/premium/features/premium-header/items/contacts/options.php:410,
|
2662 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:192,
|
2663 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
2664 |
msgid "Font"
|
2665 |
msgstr ""
|
2666 |
|
@@ -2683,7 +2683,7 @@ msgstr ""
|
|
2683 |
#: framework/premium/extensions/shortcuts/customizer.php:934,
|
2684 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:123,
|
2685 |
#: framework/premium/features/content-blocks/options/popup.php:387,
|
2686 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
2687 |
msgid "Shadow"
|
2688 |
msgstr ""
|
2689 |
|
@@ -4848,7 +4848,7 @@ msgstr ""
|
|
4848 |
|
4849 |
#: framework/premium/features/content-blocks/options/popup.php:376,
|
4850 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:266,
|
4851 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
4852 |
msgid "Border Radius"
|
4853 |
msgstr ""
|
4854 |
|
@@ -4936,7 +4936,7 @@ msgid "Items Horizontal Spacing"
|
|
4936 |
msgstr ""
|
4937 |
|
4938 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:104,
|
4939 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
4940 |
msgid "Items Vertical Spacing"
|
4941 |
msgstr ""
|
4942 |
|
@@ -5077,7 +5077,7 @@ msgstr ""
|
|
5077 |
msgid "Dropdown Options"
|
5078 |
msgstr ""
|
5079 |
|
5080 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
5081 |
msgid "Dropdown Top Offset"
|
5082 |
msgstr ""
|
5083 |
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
+
"POT-Creation-Date: 2022-11-02 22:28+0000\n"
|
11 |
"Project-Id-Version: undefined\n"
|
12 |
"X-Poedit-Basepath: ..\n"
|
13 |
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;"
|
122 |
"a wishlits page."
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: framework/theme-integration.php:358,
|
126 |
#: framework/extensions/widgets/widgets/ct-facebook/options.php:16,
|
127 |
#: framework/extensions/widgets/widgets/ct-facebook/view.php:12,
|
128 |
#: framework/extensions/widgets/widgets/ct-facebook/widget.php:13
|
129 |
msgid "Facebook"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: framework/theme-integration.php:359
|
133 |
msgid "Twitter"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: framework/theme-integration.php:360
|
137 |
msgid "LinkedIn"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: framework/theme-integration.php:361
|
141 |
msgid "Dribbble"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: framework/theme-integration.php:362
|
145 |
msgid "Instagram"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: framework/theme-integration.php:363
|
149 |
msgid "Pinterest"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: framework/theme-integration.php:364
|
153 |
msgid "WordPress"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: framework/theme-integration.php:365
|
157 |
msgid "GitHub"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: framework/theme-integration.php:366,
|
161 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:497,
|
162 |
#: framework/extensions/widgets/widgets/ct-socials/options.php:100,
|
163 |
#: framework/premium/features/content-blocks/options/archive.php:47
|
164 |
msgid "Medium"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: framework/theme-integration.php:367
|
168 |
msgid "YouTube"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: framework/theme-integration.php:368
|
172 |
msgid "Vimeo"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: framework/theme-integration.php:369
|
176 |
msgid "VKontakte"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: framework/theme-integration.php:370
|
180 |
msgid "Odnoklassniki"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: framework/theme-integration.php:371
|
184 |
msgid "TikTok"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: framework/theme-integration.php:443
|
188 |
msgid "Companion"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: framework/theme-integration.php:461 static/js/screens/SiteExport.js:111
|
192 |
msgid "PRO"
|
193 |
msgstr ""
|
194 |
|
706 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:151,
|
707 |
#: framework/premium/features/premium-header/items/contacts/options.php:404,
|
708 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:186,
|
709 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:380,
|
710 |
#: framework/premium/features/premium-header/items/search-input/options.php:188
|
711 |
msgid "Design"
|
712 |
msgstr ""
|
778 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:249,
|
779 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:279,
|
780 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:308,
|
781 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:408,
|
782 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:434,
|
783 |
#: framework/premium/features/premium-header/items/search-input/options.php:241,
|
784 |
#: framework/premium/features/premium-header/items/search-input/options.php:273,
|
785 |
#: framework/premium/features/premium-header/items/search-input/options.php:303,
|
836 |
#: framework/premium/features/premium-header/items/dark-mode-switcher/options.php:81,
|
837 |
#: framework/premium/features/premium-header/items/dark-mode-switcher/options.php:111,
|
838 |
#: framework/premium/features/premium-header/items/dark-mode-switcher/options.php:140,
|
839 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:413,
|
840 |
#: framework/premium/features/premium-header/items/search-input/options.php:788
|
841 |
msgid "Hover"
|
842 |
msgstr ""
|
849 |
#: framework/features/header/items/account/options.php:1263,
|
850 |
#: framework/premium/extensions/woocommerce-extra/includes/wish-list-options.php:173,
|
851 |
#: framework/premium/extensions/post-types-extra/includes/read-progress/customizer.php:92,
|
852 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:421
|
853 |
msgid "Background Color"
|
854 |
msgstr ""
|
855 |
|
872 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:232,
|
873 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:262,
|
874 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:291,
|
875 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:391
|
876 |
msgid "Font Color"
|
877 |
msgstr ""
|
878 |
|
2392 |
|
2393 |
#: framework/premium/extensions/mega-menu/options.php:644,
|
2394 |
#: framework/premium/extensions/shortcuts/customizer.php:900,
|
2395 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:441,
|
2396 |
#: framework/premium/features/premium-header/items/search-input/options.php:836
|
2397 |
msgid "Items Divider"
|
2398 |
msgstr ""
|
2660 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:173,
|
2661 |
#: framework/premium/features/premium-header/items/contacts/options.php:410,
|
2662 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:192,
|
2663 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:385
|
2664 |
msgid "Font"
|
2665 |
msgstr ""
|
2666 |
|
2683 |
#: framework/premium/extensions/shortcuts/customizer.php:934,
|
2684 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:123,
|
2685 |
#: framework/premium/features/content-blocks/options/popup.php:387,
|
2686 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:455
|
2687 |
msgid "Shadow"
|
2688 |
msgstr ""
|
2689 |
|
4848 |
|
4849 |
#: framework/premium/features/content-blocks/options/popup.php:376,
|
4850 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:266,
|
4851 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:474
|
4852 |
msgid "Border Radius"
|
4853 |
msgstr ""
|
4854 |
|
4936 |
msgstr ""
|
4937 |
|
4938 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:104,
|
4939 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:369
|
4940 |
msgid "Items Vertical Spacing"
|
4941 |
msgstr ""
|
4942 |
|
5077 |
msgid "Dropdown Options"
|
5078 |
msgstr ""
|
5079 |
|
5080 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:361
|
5081 |
msgid "Dropdown Top Offset"
|
5082 |
msgstr ""
|
5083 |
|
readme.txt
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
Tags: widget, widgets
|
3 |
Requires at least: 5.2
|
4 |
Requires PHP: 7.0
|
5 |
-
Tested up to: 6.
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
-
Stable tag: 1.8.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -23,6 +23,10 @@ It runs and adds its enhancements only if the Blocksy theme is installed and act
|
|
23 |
2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
|
24 |
|
25 |
== Changelog ==
|
|
|
|
|
|
|
|
|
26 |
1.8.54: 2022-10-27
|
27 |
- Improvement: Sticky header makes floating cart cut off under some specific circumstances
|
28 |
- Improvement: Ensure special characters in localize data is correctly sanitized
|
2 |
Tags: widget, widgets
|
3 |
Requires at least: 5.2
|
4 |
Requires PHP: 7.0
|
5 |
+
Tested up to: 6.1
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
+
Stable tag: 1.8.55
|
9 |
|
10 |
== Description ==
|
11 |
|
23 |
2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
|
24 |
|
25 |
== Changelog ==
|
26 |
+
1.8.55: 2022-11-03
|
27 |
+
- Improvement: XML strategy for SVG dimensions when simple xml is absent
|
28 |
+
- Improvement: Correctly recalculate sticky position on page resize
|
29 |
+
|
30 |
1.8.54: 2022-10-27
|
31 |
- Improvement: Sticky header makes floating cart cut off under some specific circumstances
|
32 |
- Improvement: Ensure special characters in localize data is correctly sanitized
|
static/bundle/account-lazy.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
static/bundle/dashboard.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
static/bundle/options.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.55
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
static/bundle/sticky.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.ctEvents,n=t.n(e),r=window.ctFrontend,i=function(t,e,n){return Math.max(t,Math.min(e,n))},o=function(t,e,n){return e[0]+(e[1]-e[0])/(t[1]-t[0])*(n-t[0])},a=function(t){var e=getComputedStyle(t);return parseFloat(e.getPropertyValue("--height"))},c=function(t){if(t.blcInitialHeight)return t.blcInitialHeight;var e=t.firstElementChild;t.firstElementChild.firstElementChild&&(e=t.firstElementChild.firstElementChild);var n=e.getBoundingClientRect().height;return t.blcInitialHeight=n,n},s=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.blcStickyHeight)return t.blcStickyHeight;var n=c(t),r=getComputedStyle(t),i=getComputedStyle(t.firstElementChild);if(t.closest('[data-sticky*="yes"]')){var o=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth);e||(o=0);var s=t.getBoundingClientRect().height-o;if(s!==n||n>a(t))return t.blcStickyHeight=t.getBoundingClientRect().height,s}var l=100;return t.dataset.row.includes("middle")&&(l=r.getPropertyValue("--sticky-shrink")),l&&(n*=parseFloat(l)/100),n},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return 0},e=document.querySelector(".ct-floating-bar");e&&e.style.setProperty("--header-sticky-height-animated",t())};function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=null,y=function(){d=null},f=function(t){var e,n=t.stickyContainer,r=t.startPosition;(e=n.querySelectorAll('[data-row*="middle"]'),function(t){if(Array.isArray(t))return u(t)}(e)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){if(t.querySelector('[data-id="logo"] .site-logo-container')){var e=t.querySelector('[data-id="logo"] .site-logo-container'),n=function(t){var e=t.logo,n=t.row;if(d)return d;var r=parseFloat(getComputedStyle(e).getPropertyValue("--logo-max-height")||50),i=parseFloat(getComputedStyle(e).getPropertyValue("--logo-sticky-shrink").toString().replace(",",".")||1),o=c(n),a=s(n);return d={initialHeight:r,stickyShrink:i,rowInitialHeight:o,rowStickyHeight:a}}({logo:e,row:t}),a=n.initialHeight,l=n.stickyShrink,u=n.rowInitialHeight,y=n.rowStickyHeight,f=a*l;1!==l&&e.style.setProperty("--logo-shrink-height","".concat(o([r,r+Math.abs(u===y?a-f:u-y)],[1,l],i(r,r+Math.abs(u===y?a-f:u-y),scrollY))*a,"px"))}}))},h=null,m=function(){h=null},p=function(t){var e=t.stickyContainer,n=(t.containerInitialHeight,t.startPosition);e.querySelector('[data-row*="middle"]')&&[e.querySelector('[data-row*="middle"]')].map((function(t){var e=function(t){var e=t.row;if(h)return h;var n=c(e),r=s(e);return h={rowInitialHeight:n,rowStickyHeight:r}}({row:t}),r=e.rowInitialHeight,a=e.rowStickyHeight;if(r!==a){var l;l=o([n,n+Math.abs(r-a)],[r,a],i(n,n+Math.abs(r-a),scrollY)),t.style.setProperty("--shrink-height","".concat(l,"px"))}}))};function g(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var w=function(t){var e=t.stickyContainer,n=v(e.querySelectorAll("[data-row]")).reduce((function(t,e){return t+s(e,!1)}),0);return{stickyContainerHeight:n,stickyContainerHeightAbsolute:n+parseFloat(getComputedStyle(e).top)}},S=null;function A(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var I=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yes";Array.from(t.querySelectorAll("[data-row][data-transparent-row]")).map((function(t){t.dataset.transparentRow=e}))},j=null,H=null,P=null,q=null;n().on("blocksy:sticky:compute",(function(){setTimeout((function(){m(),y(),j=null,H=null,P=null,q=null,Y=null,E()}),100)})),window.wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",(function(t){setTimeout((function(){m(),y(),j=null,H=null,P=null,q=null,Y=null,E()}),500)}));var Y=null,E=function(){if(Y!==scrollY){var t=document.querySelector('[data-device="'.concat((0,r.getCurrentScreen)(),'"] [data-sticky]'));if(t){var e=H;e||(e=H=Array.from(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+e.getBoundingClientRect().height}),0),t.parentNode.style.height="".concat(e,"px"));var n=j;null===n&&(n=function(t){if(-1===t.dataset.sticky.indexOf("shrink")&&-1===t.dataset.sticky.indexOf("auto-hide"))return t.parentNode.getBoundingClientRect().height+200;var e=t.closest("header").getBoundingClientRect().top+scrollY;if(e>0){var n=document.elementFromPoint(0,3);n&&function(t){for(var e=[];t&&t!==document;t=t.parentNode)e.push(t);return e}(n).map((function(t){return getComputedStyle(t).position})).indexOf("fixed")>-1&&(e-=n.getBoundingClientRect().height)}var r=t.parentNode,i=getComputedStyle(document.body),o=parseFloat(i.getPropertyValue("--header-sticky-offset")||0);if(o+=parseFloat(i.getPropertyValue("--frame-size"))||0,1===r.parentNode.children.length||r.parentNode.children[0].classList.contains("ct-sticky-container"))return e>0?e-o:e;var a=Array.from(r.parentNode.children).reduce((function(t,e,n){return t.indexOf(0)>-1||!e.dataset.row?[].concat(O(t),[0]):[].concat(O(t),[e.classList.contains("ct-sticky-container")?0:e.getBoundingClientRect().height])}),[]).reduce((function(t,e){return t+e}),e);return a>0?a-o:a}(t),j=n);var i=P;null===i&&(i=t.closest("[data-device]").getBoundingClientRect().height,P=i);var o=q,c=t.dataset.sticky.split(":").filter((function(t){return"yes"!==t&&"no"!==t&&"fixed"!==t}));o||(o=parseInt(t.getBoundingClientRect().height),q=parseInt(o),l((function(){return-1===c.indexOf("auto-hide")?o>O(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+a(e)}),0)?"".concat(o,"px"):"".concat(O(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+s(e)}),0),"px"):"0px"})));var u=n>0&&Math.abs(window.scrollY-n)<5||window.scrollY>n;c.indexOf("shrink")>-1&&(u=n>0?window.scrollY>=n:window.scrollY>0),setTimeout((function(){u&&-1===document.body.dataset.header.indexOf("shrink")&&(document.body.dataset.header="".concat(document.body.dataset.header,":shrink")),!u&&document.body.dataset.header.indexOf("shrink")>-1&&(document.body.dataset.header=document.body.dataset.header.replace(":shrink",""))}),300);var d=scrollY;c.indexOf("shrink")>-1&&function(t){var e=t.containerInitialHeight,n=t.stickyContainer,r=t.isSticky,i=t.startPosition,o=t.stickyComponents;if(0===i&&0===window.scrollY&&(n.dataset.sticky=["fixed"].concat(g(o)).join(":")),r){if(o.indexOf("yes")>-1)return;-1===n.dataset.sticky.indexOf("yes")&&(I(n,"no"),n.dataset.sticky=["yes"].concat(g(o)).join(":")),f({stickyContainer:n,startPosition:i}),p({stickyContainer:n,containerInitialHeight:e,startPosition:i})}else Array.from(n.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),Array.from(n.querySelectorAll('[data-row*="middle"] .site-logo-container')).map((function(t){return t.removeAttribute("style")})),I(n,"yes"),0===i&&window.scrollY<=0?n.dataset.sticky=["fixed"].concat(g(o)).join(":"):n.dataset.sticky=o.join(":")}({stickyContainer:t,stickyContainerHeight:o,containerInitialHeight:e,isSticky:u,startPosition:n,stickyComponents:c}),c.indexOf("auto-hide")>-1&&function(t){var e=t.currentScrollY,n=t.stickyContainer,r=t.containerInitialHeight,i=t.headerInitialHeight,o=t.startPosition,a=t.isSticky,c=t.stickyComponents;a&&e-t.prevScrollY==0&&l((function(){return"0px"})),a?-1===n.dataset.sticky.indexOf("yes")&&e>2*i+o&&(n.dataset.sticky=["yes"].concat(v(c)).join(":"),f({stickyContainer:n,startPosition:o}),p({stickyContainer:n,containerInitialHeight:r,startPosition:o}),I(n,"no"),document.body.removeAttribute("style")):(Array.from(n.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),Array.from(n.querySelectorAll('[data-row*="middle"] .site-logo-container')).map((function(t){return t.removeAttribute("style")})),n.dataset.sticky=v(c).join(":"),I(n,"yes"),l((function(){return"0px"})),S=null),null===S&&(S=1e3);var s=S+t.prevScrollY-e,u=0;if(e>2*i+o||n.dataset.sticky.indexOf("yes")>-1){if(e<=o)u=0;else if(e>t.prevScrollY){var d=w({stickyContainer:n}).stickyContainerHeightAbsolute;u=Math.abs(s)>d?-d:s}else u=s>0?0:s;n.style.transform="translateY(".concat(u,"px)"),S=u}else n.removeAttribute("style");n.dataset.sticky.indexOf("yes")>-1&&(e<=o||e>t.prevScrollY||(f({stickyContainer:n,startPosition:o}),p({stickyContainer:n,containerInitialHeight:r,startPosition:o}))),l((function(){var t=w({stickyContainer:n}).stickyContainerHeight;return"".concat(t-Math.abs(u),"px")}))}({stickyContainer:t,isSticky:u,startPosition:n,stickyComponents:c,containerInitialHeight:e,stickyContainerHeight:o,headerInitialHeight:i,currentScrollY:d,prevScrollY:Y}),(c.indexOf("slide")>-1||c.indexOf("fade")>-1)&&function(t){var e=t.stickyContainer,n=t.startPosition,r=t.stickyComponents;t.isSticky?(-1===e.dataset.sticky.indexOf("yes")&&(e.dataset.sticky=["yes-start"].concat(A(r)).join(":"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-end","yes")}),200)}),1)),I(e,"no")):-1===e.dataset.sticky.indexOf("yes-hide")&&e.dataset.sticky.indexOf("yes:")>-1&&(Math.abs(window.scrollY-n)>10?(e.dataset.sticky=r.join(":"),setTimeout((function(){Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")}))}),300),I(e,"yes")):(e.dataset.sticky=["yes-hide-start"].concat(A(r)).join(":"),requestAnimationFrame((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){e.dataset.sticky=r.join(":"),setTimeout((function(){Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")}))}),300),I(e,"yes")}),200)}))))}({stickyContainer:t,isSticky:u,startPosition:n,stickyComponents:c}),Y=d}}},M=function(){document.querySelector("header [data-sticky]")&&(window.addEventListener("resize",(function(t){E(t),n().trigger("ct:header:update")}),!1),window.addEventListener("orientationchange",(function(t){E(t),n().trigger("ct:header:update")})),window.addEventListener("scroll",E,!1),window.addEventListener("load",E,!1),E())};document.body.className.indexOf("e-preview")>-1?setTimeout((function(){M()}),500):M(),(0,r.registerDynamicChunk)("blocksy_sticky_header",{mount:function(t){}})}();
|
1 |
+
!function(){"use strict";var t={n:function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.ctEvents,r=t.n(e),n=window.ctFrontend,i=function(t,e,r){return Math.max(t,Math.min(e,r))},o=function(t,e,r){return e[0]+(e[1]-e[0])/(t[1]-t[0])*(r-t[0])},a=function(t){var e=getComputedStyle(t);return parseFloat(e.getPropertyValue("--height"))},c=function(t){if(t.blcInitialHeight)return t.blcInitialHeight;var e=t.firstElementChild;t.firstElementChild.firstElementChild&&(e=t.firstElementChild.firstElementChild);var r=e.getBoundingClientRect().height;return t.blcInitialHeight=r,r},s=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.blcStickyHeight)return t.blcStickyHeight;var r=c(t),n=getComputedStyle(t),i=getComputedStyle(t.firstElementChild);if(t.closest('[data-sticky*="yes"]')){var o=parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth);e||(o=0);var s=t.getBoundingClientRect().height-o;if(s!==r||r>a(t))return t.blcStickyHeight=t.getBoundingClientRect().height,s}var l=100;return t.dataset.row.includes("middle")&&(l=n.getPropertyValue("--sticky-shrink")),l&&(r*=parseFloat(l)/100),r},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return 0},e=document.querySelector(".ct-floating-bar");e&&e.style.setProperty("--header-sticky-height-animated",t())};function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var d=null,y=function(t){var e,r=t.stickyContainer,n=t.startPosition;(e=r.querySelectorAll('[data-row*="middle"]'),function(t){if(Array.isArray(t))return u(t)}(e)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){if(t.querySelector('[data-id="logo"] .site-logo-container')){var e=t.querySelector('[data-id="logo"] .site-logo-container'),r=function(t){var e=t.logo,r=t.row;if(d)return d;var n=parseFloat(getComputedStyle(e).getPropertyValue("--logo-max-height")||50),i=parseFloat(getComputedStyle(e).getPropertyValue("--logo-sticky-shrink").toString().replace(",",".")||1),o=c(r),a=s(r);return d={initialHeight:n,stickyShrink:i,rowInitialHeight:o,rowStickyHeight:a}}({logo:e,row:t}),a=r.initialHeight,l=r.stickyShrink,u=r.rowInitialHeight,y=r.rowStickyHeight,f=a*l;1!==l&&e.style.setProperty("--logo-shrink-height","".concat(o([n,n+Math.abs(u===y?a-f:u-y)],[1,l],i(n,n+Math.abs(u===y?a-f:u-y),scrollY))*a,"px"))}}))},f=null,h=function(t){var e=t.stickyContainer,r=(t.containerInitialHeight,t.startPosition);e.querySelector('[data-row*="middle"]')&&[e.querySelector('[data-row*="middle"]')].map((function(t){var e=function(t){var e=t.row;if(f)return f;var r=c(e),n=s(e);return f={rowInitialHeight:r,rowStickyHeight:n}}({row:t}),n=e.rowInitialHeight,a=e.rowStickyHeight;if(n!==a){var l;l=o([r,r+Math.abs(n-a)],[n,a],i(r,r+Math.abs(n-a),scrollY)),t.style.setProperty("--shrink-height","".concat(l,"px"))}}))};function m(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function g(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var v=function(t){var e=t.stickyContainer,r=g(e.querySelectorAll("[data-row]")).reduce((function(t,e){return t+s(e,!1)}),0);return{stickyContainerHeight:r,stickyContainerHeightAbsolute:r+parseFloat(getComputedStyle(e).top)}},b=null;function w(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return C(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var O=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yes";Array.from(t.querySelectorAll("[data-row][data-transparent-row]")).map((function(t){t.dataset.transparentRow=e}))},x=null,I=null,j=null,H=null,P=function(){f=null,d=null,x=null,I=null,j=null,H=null,q=null};r().on("blocksy:sticky:compute",(function(){setTimeout((function(){P(),Y()}),100)})),window.wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",(function(t){setTimeout((function(){P(),Y()}),500)}));var q=null,Y=function(){if(q!==scrollY){var t=document.querySelector('[data-device="'.concat((0,n.getCurrentScreen)(),'"] [data-sticky]'));if(t){var e=I;e||(e=I=Array.from(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+e.getBoundingClientRect().height}),0),t.parentNode.style.height="".concat(e,"px"));var r=x;null===r&&(r=function(t){if(-1===t.dataset.sticky.indexOf("shrink")&&-1===t.dataset.sticky.indexOf("auto-hide"))return t.parentNode.getBoundingClientRect().height+200;var e=t.closest("header").getBoundingClientRect().top+scrollY;if(e>0){var r=document.elementFromPoint(0,3);r&&function(t){for(var e=[];t&&t!==document;t=t.parentNode)e.push(t);return e}(r).map((function(t){return getComputedStyle(t).position})).indexOf("fixed")>-1&&(e-=r.getBoundingClientRect().height)}var n=t.parentNode,i=getComputedStyle(document.body),o=parseFloat(i.getPropertyValue("--header-sticky-offset")||0);if(o+=parseFloat(i.getPropertyValue("--frame-size"))||0,1===n.parentNode.children.length||n.parentNode.children[0].classList.contains("ct-sticky-container"))return e>0?e-o:e;var a=Array.from(n.parentNode.children).reduce((function(t,e,r){return t.indexOf(0)>-1||!e.dataset.row?[].concat(A(t),[0]):[].concat(A(t),[e.classList.contains("ct-sticky-container")?0:e.getBoundingClientRect().height])}),[]).reduce((function(t,e){return t+e}),e);return a>0?a-o:a}(t),x=r);var i=j;null===i&&(i=t.closest("[data-device]").getBoundingClientRect().height,j=i);var o=H,c=t.dataset.sticky.split(":").filter((function(t){return"yes"!==t&&"no"!==t&&"fixed"!==t}));o||(o=parseInt(t.getBoundingClientRect().height),H=parseInt(o),l((function(){return-1===c.indexOf("auto-hide")?o>A(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+a(e)}),0)?"".concat(o,"px"):"".concat(A(t.querySelectorAll("[data-row]")).reduce((function(t,e){return t+s(e)}),0),"px"):"0px"})));var u=r>0&&Math.abs(window.scrollY-r)<5||window.scrollY>r;c.indexOf("shrink")>-1&&(u=r>0?window.scrollY>=r:window.scrollY>0),setTimeout((function(){u&&-1===document.body.dataset.header.indexOf("shrink")&&(document.body.dataset.header="".concat(document.body.dataset.header,":shrink")),!u&&document.body.dataset.header.indexOf("shrink")>-1&&(document.body.dataset.header=document.body.dataset.header.replace(":shrink",""))}),300);var d=scrollY;c.indexOf("shrink")>-1&&function(t){var e=t.containerInitialHeight,r=t.stickyContainer,n=t.isSticky,i=t.startPosition,o=t.stickyComponents;if(0===i&&0===window.scrollY&&(r.dataset.sticky=["fixed"].concat(m(o)).join(":")),n){if(o.indexOf("yes")>-1)return;-1===r.dataset.sticky.indexOf("yes")&&(O(r,"no"),r.dataset.sticky=["yes"].concat(m(o)).join(":")),y({stickyContainer:r,startPosition:i}),h({stickyContainer:r,containerInitialHeight:e,startPosition:i})}else Array.from(r.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),Array.from(r.querySelectorAll('[data-row*="middle"] .site-logo-container')).map((function(t){return t.removeAttribute("style")})),O(r,"yes"),0===i&&window.scrollY<=0?r.dataset.sticky=["fixed"].concat(m(o)).join(":"):r.dataset.sticky=o.join(":")}({stickyContainer:t,stickyContainerHeight:o,containerInitialHeight:e,isSticky:u,startPosition:r,stickyComponents:c}),c.indexOf("auto-hide")>-1&&function(t){var e=t.currentScrollY,r=t.stickyContainer,n=t.containerInitialHeight,i=t.headerInitialHeight,o=t.startPosition,a=t.isSticky,c=t.stickyComponents;a&&e-t.prevScrollY==0&&l((function(){return"0px"})),a?-1===r.dataset.sticky.indexOf("yes")&&e>2*i+o&&(r.dataset.sticky=["yes"].concat(g(c)).join(":"),y({stickyContainer:r,startPosition:o}),h({stickyContainer:r,containerInitialHeight:n,startPosition:o}),O(r,"no"),document.body.removeAttribute("style")):(Array.from(r.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),Array.from(r.querySelectorAll('[data-row*="middle"] .site-logo-container')).map((function(t){return t.removeAttribute("style")})),r.dataset.sticky=g(c).join(":"),O(r,"yes"),l((function(){return"0px"})),b=null),null===b&&(b=1e3);var s=b+t.prevScrollY-e,u=0;if(e>2*i+o||r.dataset.sticky.indexOf("yes")>-1){if(e<=o)u=0;else if(e>t.prevScrollY){var d=v({stickyContainer:r}).stickyContainerHeightAbsolute;u=Math.abs(s)>d?-d:s}else u=s>0?0:s;r.style.transform="translateY(".concat(u,"px)"),b=u}else r.removeAttribute("style");r.dataset.sticky.indexOf("yes")>-1&&(e<=o||e>t.prevScrollY||(y({stickyContainer:r,startPosition:o}),h({stickyContainer:r,containerInitialHeight:n,startPosition:o}))),l((function(){var t=v({stickyContainer:r}).stickyContainerHeight;return"".concat(t-Math.abs(u),"px")}))}({stickyContainer:t,isSticky:u,startPosition:r,stickyComponents:c,containerInitialHeight:e,stickyContainerHeight:o,headerInitialHeight:i,currentScrollY:d,prevScrollY:q}),(c.indexOf("slide")>-1||c.indexOf("fade")>-1)&&function(t){var e=t.stickyContainer,r=t.startPosition,n=t.stickyComponents;t.isSticky?(-1===e.dataset.sticky.indexOf("yes")&&(e.dataset.sticky=["yes-start"].concat(w(n)).join(":"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-end","yes")}),200)}),1)),O(e,"no")):-1===e.dataset.sticky.indexOf("yes-hide")&&e.dataset.sticky.indexOf("yes:")>-1&&(Math.abs(window.scrollY-r)>10?(e.dataset.sticky=n.join(":"),setTimeout((function(){Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")}))}),300),O(e,"yes")):(e.dataset.sticky=["yes-hide-start"].concat(w(n)).join(":"),requestAnimationFrame((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){e.dataset.sticky=n.join(":"),setTimeout((function(){Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")}))}),300),O(e,"yes")}),200)}))))}({stickyContainer:t,isSticky:u,startPosition:r,stickyComponents:c}),q=d}}},E=function(){document.querySelector("header [data-sticky]")&&(window.addEventListener("resize",(function(t){P(),Y(t),r().trigger("ct:header:update")}),!1),window.addEventListener("orientationchange",(function(t){P(),Y(t),r().trigger("ct:header:update")})),window.addEventListener("scroll",Y,!1),window.addEventListener("load",Y,!1),Y())};document.body.className.indexOf("e-preview")>-1?setTimeout((function(){E()}),500):E(),(0,n.registerDynamicChunk)("blocksy_sticky_header",{mount:function(t){}})}();
|
static/js/frontend/sticky.js
CHANGED
@@ -37,17 +37,20 @@ let cachedContainerInitialHeight = null
|
|
37 |
let cachedHeaderInitialHeight = null
|
38 |
let cachedStickyContainerHeight = null
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
ctEvents.on('blocksy:sticky:compute', () => {
|
41 |
setTimeout(() => {
|
42 |
-
|
43 |
-
clearLogoShrinkCache()
|
44 |
-
|
45 |
-
cachedStartPosition = null
|
46 |
-
cachedContainerInitialHeight = null
|
47 |
-
cachedHeaderInitialHeight = null
|
48 |
-
cachedStickyContainerHeight = null
|
49 |
-
prevScrollY = null
|
50 |
-
|
51 |
compute()
|
52 |
}, 100)
|
53 |
})
|
@@ -57,15 +60,7 @@ if (window.wp && wp.customize && wp.customize.selectiveRefresh) {
|
|
57 |
'partial-content-rendered',
|
58 |
(placement) => {
|
59 |
setTimeout(() => {
|
60 |
-
|
61 |
-
clearLogoShrinkCache()
|
62 |
-
|
63 |
-
cachedStartPosition = null
|
64 |
-
cachedContainerInitialHeight = null
|
65 |
-
cachedHeaderInitialHeight = null
|
66 |
-
cachedStickyContainerHeight = null
|
67 |
-
prevScrollY = null
|
68 |
-
|
69 |
compute()
|
70 |
}, 500)
|
71 |
}
|
@@ -300,6 +295,7 @@ export const mountStickyHeader = () => {
|
|
300 |
window.addEventListener(
|
301 |
'resize',
|
302 |
(event) => {
|
|
|
303 |
compute(event)
|
304 |
ctEvents.trigger('ct:header:update')
|
305 |
},
|
@@ -307,6 +303,7 @@ export const mountStickyHeader = () => {
|
|
307 |
)
|
308 |
|
309 |
window.addEventListener('orientationchange', (event) => {
|
|
|
310 |
compute(event)
|
311 |
ctEvents.trigger('ct:header:update')
|
312 |
})
|
37 |
let cachedHeaderInitialHeight = null
|
38 |
let cachedStickyContainerHeight = null
|
39 |
|
40 |
+
const clearCache = () => {
|
41 |
+
clearShrinkCache()
|
42 |
+
clearLogoShrinkCache()
|
43 |
+
|
44 |
+
cachedStartPosition = null
|
45 |
+
cachedContainerInitialHeight = null
|
46 |
+
cachedHeaderInitialHeight = null
|
47 |
+
cachedStickyContainerHeight = null
|
48 |
+
prevScrollY = null
|
49 |
+
}
|
50 |
+
|
51 |
ctEvents.on('blocksy:sticky:compute', () => {
|
52 |
setTimeout(() => {
|
53 |
+
clearCache()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
compute()
|
55 |
}, 100)
|
56 |
})
|
60 |
'partial-content-rendered',
|
61 |
(placement) => {
|
62 |
setTimeout(() => {
|
63 |
+
clearCache()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
compute()
|
65 |
}, 500)
|
66 |
}
|
295 |
window.addEventListener(
|
296 |
'resize',
|
297 |
(event) => {
|
298 |
+
clearCache()
|
299 |
compute(event)
|
300 |
ctEvents.trigger('ct:header:update')
|
301 |
},
|
303 |
)
|
304 |
|
305 |
window.addEventListener('orientationchange', (event) => {
|
306 |
+
clearCache()
|
307 |
compute(event)
|
308 |
ctEvents.trigger('ct:header:update')
|
309 |
})
|