Commit c2e69507 authored by Simon's avatar Simon

release 1.21.3

parent 78e69a98
......@@ -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.21.1 .` (update version number)
- build new image `docker build -t biuro/web:1.21.3 .` (update version number)
- login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
- push image to docker repository - `docker push biuro/web:1.21.1`
- push image to docker repository - `docker push biuro/web:1.21.3`
## Production
- update biuro/web image version in .env file (staging or www)
......
......@@ -253,8 +253,12 @@ get_header();
$videoURL = $pod->field('video_url');
if ($videoURL):
if (strpos($videoURL, "&") !== false):
$videoURL = substr($videoURL, 0, strpos($videoURL, "&"));
endif;
?>
<iframe type="text/html" width="458" height="258" src="<?php echo str_replace(['youtube.com/watch?v=', 'youtube.com/watch/'], 'youtube.com/embed/', $videoURL); ?>" frameborder="0"></iframe>
<iframe type="text/html" width="458" height="258" src="<?php echo str_replace(['youtube.com/watch?v=', 'youtube.com/watch/', 'youtu.be/', 'youtube.com/embed/'], 'youtube.com/embed/', $videoURL); ?>" frameborder="0"></iframe>
<?php
endif;
......
......@@ -3,6 +3,6 @@ Theme Name: Biuro
Author: Biuro
Author URI: https://www.biuro.lt/
Description: Biuro multiregion theme
Version: 1.21.1
Version: 1.21.3
Text Domain: biuro
*/
......@@ -33,18 +33,32 @@ function showPosted($published, $valid) {
endif;
}
$ads = [];
$blogID = get_current_blog_id();
$sourceURL = 'biuro.lt';
$label = __('Additional works in Lithuania!', 'biuro');
if ($blogID == 2):
$sourceURL = 'biuro.lv';
$label = __('Additional works in Latvia!', 'biuro');
elseif ($blogID == 3):
$sourceURL = 'biuro.ee';
$label = __('Additional works in Estonia!', 'biuro');
endif;
$workisURL = "https://www.workis.online/employees?utm_source=$sourceURL&utm_medium=banner&utm_campaign=Homepage%20jobs%20pin";
?>
<table class="c-jobs--table">
<tr class="c-jobs--row-workis">
<td class="c-jobs--col c-jobs--col-position">
<a class="c-jobs--anchor" href="https://www.workis.online/employees?utm_source=biuro.lt&utm_medium=banner&utm_campaign=Homepage%20jobs%20pin" target="_blank" rel="noopener"><?php _e('Additional works in Lithuania!', 'biuro'); ?></a>
<a class="c-jobs--anchor" href="<?php echo $workisURL; ?>" target="_blank" rel="noopener"><?php echo $label; ?></a>
</td>
<td class="c-jobs--col c-jobs--col-city">
&nbsp;
</td>
<td class="c-jobs--col c-jobs--col-valid">
<a href="https://www.workis.online/employees" target="_blank" rel="noopener">
<a href="<?php echo $workisURL; ?>" target="_blank" rel="noopener">
<picture class="c-jobs--workis-picture">
<source srcset="/wp-content/themes/biuro/i/workis.webp" type="image/webp">
<img src="/wp-content/themes/biuro/i/workis.png" width="71" height="21" alt="Workis" loading="lazy">
......
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