Commit ee9ef7a2 authored by Simon's avatar Simon

release 1.22.1

parent f4381606
......@@ -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.22.0 .` (update version number)
- build new image `docker build -t biuro/web:1.22.1 .` (update version number)
- login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
- push image to docker repository - `docker push biuro/web:1.22.0`
- push image to docker repository - `docker push biuro/web:1.22.1`
## Production
- update biuro/web image version in .env file (staging or www)
......
......@@ -9,7 +9,7 @@
}
.l-content--position-banner {
max-width: 1096px;
max-width: 966px;
margin: 10px auto 20px;
@media (--min--medium) {
......@@ -17,6 +17,10 @@
}
}
.l-content--position-banner--wide {
max-width: 1096px;
}
.l-content--position { position: relative; padding: 10px 10px 0;
@media (--min--medium) {
padding: 40px 20px;
......
......@@ -78,6 +78,10 @@
@media (--min--xxx-small) {
left: 30px;
}
img {
border-radius: 50%;
}
}
.c-jobs-manager--member-name {
......
......@@ -23,6 +23,7 @@
margin: 0 auto 16px;
border-radius: 50%;
background: #c4c4c4;
overflow: hidden;
}
.c-member--info {
......
This diff is collapsed.
This diff is collapsed.
......@@ -30,7 +30,7 @@
<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-37788b01fc.min.css'; ?></style>
<style><?php include 'css/core-7662d27dec.min.css'; ?></style>
<script>
document.documentElement.classList.replace('no-js', 'js');
......@@ -39,13 +39,13 @@
<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-8bae5e9909.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main-bbc0ec2b25.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-8bae5e9909.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-bbc0ec2b25.min.css">
</noscript>
<?php wp_head(); ?>
......
......@@ -41,7 +41,7 @@
<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-37788b01fc.min.css'; ?></style>
<style><?php include 'css/core-7662d27dec.min.css'; ?></style>
<script>
document.documentElement.classList.replace('no-js', 'js');
......@@ -50,13 +50,13 @@
<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-8bae5e9909.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main-bbc0ec2b25.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-8bae5e9909.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-bbc0ec2b25.min.css">
</noscript>
<?php
......
......@@ -33,13 +33,22 @@ get_header();
endif;
$managers = get_the_terms($pod->ID, 'member');
$manager = $managers[0];
$member;
$isManagerVisible = $manager && $manager->term_id && $biuroSettings->field('job_page_contacts') === 'manager' ? true : false;
foreach ($managers as &$term):
$m = pods( 'member', $term->term_id );
if ($m->field('enabled')):
$member = $m;
break;
endif;
endforeach;
$isManagerVisible = $member && $biuroSettings->field('job_page_contacts') === 'manager' ? true : false;
if ($recommendPage && $biuroSettings->field('job_page_recommend_friend') == 'top'):
?>
<div class="l-content--position-banner">
<div class="l-content--position-banner <?php echo $isManagerVisible ? 'l-content--position-banner--wide' : ''; ?>">
<a class="c-recommend c-recommend-top" href="<?php echo $recommendPage; ?>">
<span class="c-recommend--headline"><?php _e('Recommend a friend - receive <strong>50 Eur!</strong>', 'biuro'); ?></span>
<span class="c-recommend--anchor"><?php _e('Find out more', 'biuro'); ?></span>
......
......@@ -3,6 +3,6 @@ Theme Name: Biuro
Author: Biuro
Author URI: https://www.biuro.lt/
Description: Biuro multiregion theme
Version: 1.22.0
Version: 1.22.1
Text Domain: biuro
*/
......@@ -93,7 +93,7 @@
global $recommendPage;
global $biuroSettings;
global $isManagerVisible;
global $manager;
global $member;
if ($recommendPage && $biuroSettings->field('job_page_recommend_friend') == 'aside'):
?>
......@@ -107,7 +107,6 @@
if ($biuroSettings->field('job_page_contacts') != 'hidden'):
if ($isManagerVisible):
$member = pods( 'member', $manager->term_id );
?>
<div class="c-jobs-manager">
<div class="c-jobs-manager--message">
......@@ -130,12 +129,8 @@
<picture class="c-jobs-manager--member-photo">
<?php
$photo = $member->field('photo');
if ($photo['guid']):
?>
<img src="<?php echo $photo['guid']; ?>" alt="" loading="lazy" />
<?php
endif;
?>
<img src="<?php echo $photo['guid'] ? $photo['guid'] : '/wp-content/themes/biuro/i/member-placeholder.png'; ?>" alt="" loading="lazy" />
</picture>
<p class="c-jobs-manager--member-name"><?php echo $member->field('name'); ?></p>
<p class="c-jobs-manager--member-position"><?php echo $member->field('position'); ?></p>
......
......@@ -64,13 +64,7 @@
?>
<div class="c-member">
<picture class="c-member--photo">
<?php
if ($photo['guid']):
?>
<img src="<?php echo $photo['guid']; ?>" alt="" loading="lazy" />
<?php
endif;
?>
<img src="<?php echo $photo['guid'] ? $photo['guid'] : '/wp-content/themes/biuro/i/member-placeholder.png'; ?>" alt="<?php echo $member->name; ?>" loading="lazy" />
</picture>
<h4 class="c-member--info c-member--name" title="<?php echo $member->name; ?>"><?php echo $member->name; ?></h4>
<div class="c-member--info c-member--position" title="<?php echo $position; ?>"><?php echo $position; ?></div>
......
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