Commit 93b3369f authored by Simon's avatar Simon

release 1.6.4

parent 0518b575
......@@ -20,9 +20,9 @@
## Production
- build CSS & JS assets - `C:\web\dev.biuro\ npm run build`
- build new image `docker build -t biuro/web:1.6.2 .` (update version number)
- build new image `docker build -t biuro/web:1.6.4 .` (update version number)
- login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
- push image to docker repository - `docker push biuro/web:1.6.2`
- push image to docker repository - `docker push biuro/web:1.6.4`
## Production
- update biuro/web image version in .env file (staging or www)
......
{
"name": "biuro",
"version": "1.6.2",
"version": "1.6.4",
"description": "Biuro WP theme",
"scripts": {
"dev": "gulp --require @babel/register --gulpfile tasks",
......
......@@ -2,11 +2,11 @@
/* critical:start */
.c-tooltip { pointer-events: none; opacity: 0; }
.c-tooltip { position: absolute; pointer-events: none; opacity: 0; }
/* critical:end */
.c-tooltip { position: absolute; top: 46px; right: 0; max-width: 80vw; padding: 16px 10px 17px; border-radius: 3px; background-color: #fff; box-shadow: -2px 0 14px 0 rgba(217,214,214,0.5); white-space: nowrap; z-index: 10; transition: opacity 0.22s ease-in-out;
.c-tooltip { top: 46px; right: 0; max-width: 80vw; padding: 16px 10px 17px; border-radius: 3px; background-color: #fff; box-shadow: -2px 0 14px 0 rgba(217,214,214,0.5); white-space: nowrap; z-index: 10; transition: opacity 0.22s ease-in-out;
@media (--min--xx-small) {
left: 50%; transform: translate(-50%, 0); right: auto; padding: 16px 28px 17px; top: 50px;
}
......@@ -16,5 +16,3 @@
}
}
}
.c-tooltip { }
......@@ -149,7 +149,7 @@
<?php
endif;
?>
<script src="/wp-content/themes/biuro/js/main-71235177.min.js" async></script>
<script src="/wp-content/themes/biuro/js/main-d5fdceb0.min.js" async></script>
<?php
// global $time_start;
......
......@@ -31,15 +31,15 @@
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff2" crossorigin="anonymous" >
<style><?php include 'css/core-5e504054d9.min.css'; ?></style>
<style><?php include 'css/core-da62169aa6.min.css'; ?></style>
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2" crossorigin="anonymous" >
<link rel="preload" href="/wp-content/themes/biuro/css/main-8c3b678c6d.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main-eb5b470541.min.css" as="style" onload="this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-8c3b678c6d.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-eb5b470541.min.css">
</noscript>
<?php wp_head(); ?>
......
......@@ -31,15 +31,15 @@
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff2" crossorigin="anonymous" >
<style><?php include 'css/core-5e504054d9.min.css'; ?></style>
<style><?php include 'css/core-da62169aa6.min.css'; ?></style>
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2" crossorigin="anonymous" >
<link rel="preload" href="/wp-content/themes/biuro/css/main-8c3b678c6d.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main-eb5b470541.min.css" as="style" onload="this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-8c3b678c6d.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-eb5b470541.min.css">
</noscript>
<?php wp_head(); ?>
......
......@@ -753,6 +753,13 @@ const whatsapp = document.querySelector('.js-share-whatsapp');
if (whatsapp) {
whatsapp.addEventListener('click', (e) => {
e.preventDefault();
window.open('https://wa.me/?text=' + encodeURIComponent(window.location.href), '_blank');
const ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('android') > -1) {
window.open('whatsapp://send?text=' + encodeURIComponent(window.location.href), '_blank');
} else {
window.open('https://wa.me/?text=' + encodeURIComponent(window.location.href), '_blank');
}
});
}
......@@ -3,6 +3,6 @@ Theme Name: Biuro
Author: Biuro
Author URI: https://www.biuro.lt/
Description: Biuro multiregion theme
Version: 1.6.2
Version: 1.6.4
Text Domain: biuro
*/
......@@ -48,7 +48,7 @@
<use xlink:href="#ico--job-facebook"></use>
</svg>
</a>
<a target="_blank" rel="noopener" href="https://www.facebook.com/dialog/send?app_id=463001014486058&amp;link=<?php echo $requestURL; ?>&redirect_uri=<?php echo $requestURL; ?>" class="gtm-share-click c-share--option c-share--option-messenger" data-label="Messenger">
<a target="_blank" rel="noopener" href="https://www.facebook.com/dialog/share?app_id=463001014486058&amp;display=popup&amp;link=<?php echo $requestURL; ?>&redirect_uri=<?php echo $requestURL; ?>" class="gtm-share-click c-share--option c-share--option-messenger" data-label="Messenger">
<svg width="15px" height="15px" class="c-ico--share-messenger">
<use xlink:href="#ico--job-messenger"></use>
</svg>
......@@ -63,7 +63,7 @@
<use xlink:href="#ico--job-copy"></use>
</svg>
<div id="copy-tooltip" class="c-tooltip">
Nuoroda nukopijuota į iškarpinę
<?php _e('The link copied to the clipboard', 'biuro'); ?>
</div>
</a>
<a target="_blank" rel="noopener" href="https://wa.me/?text=<?php echo urlencode($requestURL); ?>" class="js-share-whatsapp gtm-share-click c-share--option c-share--option-phone" data-label="WhatsApp">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment