Commit 00f21b60 authored by Simon's avatar Simon

Merge branch 'release-1.12.2'

parents 74bacf52 db88f722
* text=auto eol=lf
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
## Production ## Production
- build CSS & JS assets - `C:\web\dev.biuro\ npm run build` - build CSS & JS assets - `C:\web\dev.biuro\ npm run build`
- build new image `docker build -t biuro/web:1.12.1 .` (update version number) - build new image `docker build -t biuro/web:1.12.2 .` (update version number)
- login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs` - login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
- push image to docker repository - `docker push biuro/web:1.12.1` - push image to docker repository - `docker push biuro/web:1.12.2`
## Production ## Production
- update biuro/web image version in .env file (staging or www) - update biuro/web image version in .env file (staging or www)
......
This diff is collapsed.
{ {
"name": "biuro", "name": "biuro",
"version": "1.12.1", "version": "1.12.2",
"description": "Biuro WP theme", "description": "Biuro WP theme",
"scripts": { "scripts": {
"dev": "gulp --require @babel/register --gulpfile tasks", "dev": "gulp --require @babel/register --gulpfile tasks",
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
"@babel/preset-env": "^7.5.5", "@babel/preset-env": "^7.5.5",
"@babel/register": "^7.5.5", "@babel/register": "^7.5.5",
"@babel/runtime": "^7.5.5", "@babel/runtime": "^7.5.5",
"autoprefixer": "^9.6.1", "autoprefixer": "^9.7.3",
"babel-loader": "^8.0.6", "babel-loader": "^8.0.6",
"browser-sync": "^2.26.7", "browser-sync": "^2.26.7",
"connect-modrewrite": "^0.10.2", "connect-modrewrite": "^0.10.2",
"css-mqpacker": "^7.0.0", "css-mqpacker": "^7.0.0",
"cssnano": "^4.1.10", "cssnano": "^4.1.10",
"del": "^5.0.0", "del": "^5.0.0",
"eslint": "^6.1.0", "eslint": "^6.7.2",
"eslint-config-standard": "^13.0.1", "eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.2", "eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^9.1.0", "eslint-plugin-node": "^9.1.0",
......
...@@ -46,7 +46,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -46,7 +46,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $nameMessage; ?> <?php echo $nameMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-phone"><?php _e('Phone no.', 'biuro-contacts'); ?></label> <label class="c-form--label" for="form-phone"><?php _e('Phone no.', 'biuro-contacts'); ?></label>
...@@ -58,7 +58,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -58,7 +58,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $phoneMessage; ?> <?php echo $phoneMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div id="agree"></div> <div id="agree"></div>
...@@ -72,7 +72,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -72,7 +72,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $emailMessage; ?> <?php echo $emailMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--submit-wrap"> <div class="c-form--submit-wrap">
...@@ -88,7 +88,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -88,7 +88,7 @@ if ( ! defined( 'WPINC' ) ) die;
endif; endif;
?> ?>
</div> </div>
</div><!-- .c-form--row --> </div>
<?php <?php
/* /*
...@@ -102,7 +102,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -102,7 +102,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $agreeMessage; ?> <?php echo $agreeMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
*/ */
?> ?>
...@@ -113,4 +113,4 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -113,4 +113,4 @@ if ( ! defined( 'WPINC' ) ) die;
<?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?> <?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?>
<input type="hidden" name="agree" value="1"> <input type="hidden" name="agree" value="1">
</div> </div>
</div><!-- .c-form--row --> </div>
...@@ -39,18 +39,18 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -39,18 +39,18 @@ if ( ! defined( 'WPINC' ) ) die;
<input list="form-cities" type="text" class="c-form--input" id="form-city" name="city" value=""> <input list="form-cities" type="text" class="c-form--input" id="form-city" name="city" value="">
<input type="hidden" id="form-city-id" name="city_id" value=""> <input type="hidden" id="form-city-id" name="city_id" value="">
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-message"><?php _e('Message', 'biuro-contacts'); ?></label> <label class="c-form--label" for="form-message"><?php _e('Message', 'biuro-contacts'); ?></label>
<div class="c-form--textarea-wrap"> <div class="c-form--textarea-wrap">
<textarea name="message" id="form-message" cols="30" rows="3" class="c-form--textarea" placeholder="<?php _e("For example: I'm looking for a job in manufacturing", 'biuro-contacts'); ?>"></textarea> <textarea name="message" id="form-message" cols="30" rows="3" class="c-form--textarea" placeholder="<?php _e("For example: I'm looking for a job in manufacturing", 'biuro-contacts'); ?>"></textarea>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--input-file-wrap"> <div class="c-form--input-file-wrap">
<input type="file" class="js-form--input-file c-form--input-file" id="form-cv" name="cv" value="" accept="application/pdf, application/doc, application/docx, application/rtf, application/txt, application/odf, application/msword, image/jpg, image/jpeg, image/png"> <input type="file" class="js-form--input-file c-form--input-file" id="form-cv" name="cv" accept="application/pdf, application/doc, application/docx, application/rtf, application/txt, application/odf, application/msword, image/jpg, image/jpeg, image/png">
<button class="c-form--input-file-btn"> <button class="c-form--input-file-btn">
<svg width="16px" height="21px" class="c-ico--attachment"> <svg width="16px" height="21px" class="c-ico--attachment">
<use xlink:href="#ico--attachment"></use> <use xlink:href="#ico--attachment"></use>
...@@ -58,13 +58,13 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -58,13 +58,13 @@ if ( ! defined( 'WPINC' ) ) die;
<span class="js-form--input-file-text c-form--input-file-text"><?php _e('CV', 'biuro-contacts'); ?></span> <span class="js-form--input-file-text c-form--input-file-text"><?php _e('CV', 'biuro-contacts'); ?></span>
</button> </button>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--submit-wrap"> <div class="c-form--submit-wrap">
<button type="submit" class="o-btn c-btn--main c-btn--fill" name="s" value="2"><?php _e('Submit', 'biuro-contacts'); ?></button> <button type="submit" class="o-btn c-btn--main c-btn--fill" name="s" value="2"><?php _e('Submit', 'biuro-contacts'); ?></button>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--label-recaptcha"> <div class="c-form--label-recaptcha">
<?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?> <?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?>
......
...@@ -47,7 +47,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -47,7 +47,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $nameMessage; ?> <?php echo $nameMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-phone"><?php _e('Phone no.', 'biuro-contacts'); ?></label> <label class="c-form--label" for="form-phone"><?php _e('Phone no.', 'biuro-contacts'); ?></label>
...@@ -59,7 +59,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -59,7 +59,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $phoneMessage; ?> <?php echo $phoneMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div id="agree"></div> <div id="agree"></div>
...@@ -73,13 +73,13 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -73,13 +73,13 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $emailMessage; ?> <?php echo $emailMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--submit-wrap"> <div class="c-form--submit-wrap">
<button type="submit" class="o-btn c-btn--main c-btn--fill" name="s" value="1"><?php _e('Submit', 'biuro-contacts'); ?></button> <button type="submit" class="o-btn c-btn--main c-btn--fill" name="s" value="1"><?php _e('Submit', 'biuro-contacts'); ?></button>
</div> </div>
</div><!-- .c-form--row --> </div>
<?php <?php
/* /*
...@@ -93,7 +93,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -93,7 +93,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $agreeMessage; ?> <?php echo $agreeMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
*/ */
?> ?>
...@@ -104,4 +104,4 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -104,4 +104,4 @@ if ( ! defined( 'WPINC' ) ) die;
<?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?> <?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?>
<input type="hidden" name="agree" value="1"> <input type="hidden" name="agree" value="1">
</div> </div>
</div><!-- .c-form--row --> </div>
...@@ -24,20 +24,20 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -24,20 +24,20 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-form--input-wrap"> <div class="c-form--input-wrap">
<input type="text" class="c-form--input" id="form-company" name="company" value="" autofocus="autofocus"> <input type="text" class="c-form--input" id="form-company" name="company" value="" autofocus="autofocus">
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-message"><?php _e('Message', 'biuro-contacts'); ?></label> <label class="c-form--label" for="form-message"><?php _e('Message', 'biuro-contacts'); ?></label>
<div class="c-form--textarea-wrap"> <div class="c-form--textarea-wrap">
<textarea name="message" id="form-message" cols="30" rows="10" class="c-form--textarea"></textarea> <textarea name="message" id="form-message" cols="30" rows="10" class="c-form--textarea"></textarea>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--submit-wrap"> <div class="c-form--submit-wrap">
<button type="submit" class="o-btn c-btn--main c-btn--fill" name="s" value="2"><?php _e('Submit', 'biuro-contacts'); ?></button> <button type="submit" class="o-btn c-btn--main c-btn--fill" name="s" value="2"><?php _e('Submit', 'biuro-contacts'); ?></button>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--label-recaptcha"> <div class="c-form--label-recaptcha">
<?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?> <?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?>
......
...@@ -31,5 +31,5 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -31,5 +31,5 @@ if ( ! defined( 'WPINC' ) ) die;
<?php <?php
endif; endif;
?> ?>
</div><!-- .c-form--row --> </div>
...@@ -71,7 +71,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -71,7 +71,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $nameMessage; ?> <?php echo $nameMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
...@@ -84,7 +84,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -84,7 +84,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $phoneMessage; ?> <?php echo $phoneMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
...@@ -97,7 +97,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -97,7 +97,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $emailMessage; ?> <?php echo $emailMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-city"><?php _e('City', 'biuro-contacts'); ?></label> <label class="c-form--label" for="form-city"><?php _e('City', 'biuro-contacts'); ?></label>
...@@ -119,7 +119,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -119,7 +119,7 @@ if ( ! defined( 'WPINC' ) ) die;
<input list="form-cities" type="text" class="c-form--input" id="form-city" name="city" value="<?php echo $cityValue; ?>"> <input list="form-cities" type="text" class="c-form--input" id="form-city" name="city" value="<?php echo $cityValue; ?>">
<input type="hidden" id="form-city-id" name="city_id" value="<?php echo $cityIDValue; ?>"> <input type="hidden" id="form-city-id" name="city_id" value="<?php echo $cityIDValue; ?>">
</div> </div>
</div><!-- .c-form--row --> </div>
<div id="agree"></div> <div id="agree"></div>
...@@ -128,11 +128,11 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -128,11 +128,11 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-form--textarea-wrap"> <div class="c-form--textarea-wrap">
<textarea name="message" id="form-message" cols="30" rows="3" class="c-form--textarea" placeholder="<?php _e("For example: I'm looking for a job in manufacturing", 'biuro-contacts'); ?>"><?php echo $messageValue; ?></textarea> <textarea name="message" id="form-message" cols="30" rows="3" class="c-form--textarea" placeholder="<?php _e("For example: I'm looking for a job in manufacturing", 'biuro-contacts'); ?>"><?php echo $messageValue; ?></textarea>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--input-file-wrap"> <div class="c-form--input-file-wrap">
<input type="file" class="js-form--input-file c-form--input-file" id="form-cv" name="cv" value="" accept="application/pdf, application/doc, application/docx, application/rtf, application/txt, application/odf, application/msword, image/jpg, image/jpeg, image/png"> <input type="file" class="js-form--input-file c-form--input-file" id="form-cv" name="cv" accept="application/pdf, application/doc, application/docx, application/rtf, application/txt, application/odf, application/msword, image/jpg, image/jpeg, image/png">
<button class="c-form--input-file-btn"> <button class="c-form--input-file-btn">
<svg width="16px" height="21px" class="c-ico--attachment"> <svg width="16px" height="21px" class="c-ico--attachment">
<use xlink:href="#ico--attachment"></use> <use xlink:href="#ico--attachment"></use>
...@@ -145,20 +145,20 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -145,20 +145,20 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $cvMessage; ?> <?php echo $cvMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--label-infobox"> <div class="c-form--label-infobox">
<?php _e('We process your personal data to offer you jobs. More information at <a href="https://biuro.eu/privacy-en.html" target="_blank" rel="noopener">Personal Data Protection Policy.</a>', 'biuro-contacts'); ?> <?php _e('We process your personal data to offer you jobs. More information at <a href="https://biuro.eu/privacy-en.html" target="_blank" rel="noopener">Personal Data Protection Policy.</a>', 'biuro-contacts'); ?>
<input type="hidden" name="agree" value="1"> <input type="hidden" name="agree" value="1">
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--submit-wrap"> <div class="c-form--submit-wrap">
<button type="submit" class="o-btn c-btn--main c-btn--fill" name="s" value="2"><?php _e('Apply', 'biuro-contacts'); ?></button> <button type="submit" class="o-btn c-btn--main c-btn--fill" name="s" value="2"><?php _e('Apply', 'biuro-contacts'); ?></button>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--label-recaptcha"> <div class="c-form--label-recaptcha">
<?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?> <?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?>
......
...@@ -83,7 +83,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -83,7 +83,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $nameMessage; ?> <?php echo $nameMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-phone"><?php _e('Your Phone no.', 'biuro-contacts'); ?></label> <label class="c-form--label" for="form-phone"><?php _e('Your Phone no.', 'biuro-contacts'); ?></label>
...@@ -95,7 +95,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -95,7 +95,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $phoneMessage; ?> <?php echo $phoneMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-email"><?php _e('Your Email address', 'biuro-contacts'); ?></label> <label class="c-form--label" for="form-email"><?php _e('Your Email address', 'biuro-contacts'); ?></label>
...@@ -107,7 +107,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -107,7 +107,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $emailMessage; ?> <?php echo $emailMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-city"><?php _e('Your City', 'biuro-contacts'); ?></label> <label class="c-form--label" for="form-city"><?php _e('Your City', 'biuro-contacts'); ?></label>
...@@ -129,7 +129,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -129,7 +129,7 @@ if ( ! defined( 'WPINC' ) ) die;
<input list="form-cities" type="text" class="c-form--input" id="form-city" name="city" value="<?php echo $cityValue; ?>"> <input list="form-cities" type="text" class="c-form--input" id="form-city" name="city" value="<?php echo $cityValue; ?>">
<input type="hidden" id="form-city-id" name="city_id" value="<?php echo $cityIDValue; ?>"> <input type="hidden" id="form-city-id" name="city_id" value="<?php echo $cityIDValue; ?>">
</div> </div>
</div><!-- .c-form--row --> </div>
</div><!-- .c-form--col --> </div><!-- .c-form--col -->
...@@ -149,7 +149,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -149,7 +149,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $recommendNameMessage; ?> <?php echo $recommendNameMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
...@@ -162,7 +162,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -162,7 +162,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $recommendPhoneMessage; ?> <?php echo $recommendPhoneMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
...@@ -175,7 +175,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -175,7 +175,7 @@ if ( ! defined( 'WPINC' ) ) die;
<?php echo $recommendEmailMessage; ?> <?php echo $recommendEmailMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="recommend-form-city"><?php _e('Friend City', 'biuro-contacts'); ?></label> <label class="c-form--label" for="recommend-form-city"><?php _e('Friend City', 'biuro-contacts'); ?></label>
...@@ -197,7 +197,7 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -197,7 +197,7 @@ if ( ! defined( 'WPINC' ) ) die;
<input list="form-cities" type="text" class="c-form--input" id="recommend-form-city" name="recommend_city" value="<?php echo $recommendCityValue; ?>"> <input list="form-cities" type="text" class="c-form--input" id="recommend-form-city" name="recommend_city" value="<?php echo $recommendCityValue; ?>">
<input type="hidden" id="recommend-form-city-id" name="recommend_city_id" value="<?php echo $recommendCityIDValue; ?>"> <input type="hidden" id="recommend-form-city-id" name="recommend_city_id" value="<?php echo $recommendCityIDValue; ?>">
</div> </div>
</div><!-- .c-form--row --> </div>
</div><!-- .c-form--col --> </div><!-- .c-form--col -->
</div><!-- .c-form--cols --> </div><!-- .c-form--cols -->
...@@ -218,13 +218,13 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -218,13 +218,13 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-form--label-infobox"> <div class="c-form--label-infobox">
<?php _e('I allow, that my personal data will be used for communicating during the pre-contractual relationship. For more detailed information view our <a href="https://biuro.eu/privacy-en.html" target="_blank" rel="noopener">Personal Data Protection Policy.</a>', 'biuro-contacts'); ?> <?php _e('I allow, that my personal data will be used for communicating during the pre-contractual relationship. For more detailed information view our <a href="https://biuro.eu/privacy-en.html" target="_blank" rel="noopener">Personal Data Protection Policy.</a>', 'biuro-contacts'); ?>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--submit-wrap u-align--center"> <div class="c-form--submit-wrap u-align--center">
<button type="submit" class="o-btn c-btn--main c-btn--max-fill" name="s" value="1"><?php _e('Recommend', 'biuro-contacts'); ?></button> <button type="submit" class="o-btn c-btn--main c-btn--max-fill" name="s" value="1"><?php _e('Recommend', 'biuro-contacts'); ?></button>
</div> </div>
</div><!-- .c-form--row --> </div>
<div class="c-form--label-recaptcha"> <div class="c-form--label-recaptcha">
<?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?> <?php _e('This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.', 'biuro-contacts'); ?>
......
...@@ -131,7 +131,7 @@ class Biuro_Feedbacks extends WP_Widget { ...@@ -131,7 +131,7 @@ class Biuro_Feedbacks extends WP_Widget {
echo '<picture>'; echo '<picture>';
echo '<source srcset="/wp-content/themes/biuro/i/feedbacks/' . $img . '.webp" type="image/webp">'; echo '<source srcset="/wp-content/themes/biuro/i/feedbacks/' . $img . '.webp" type="image/webp">';
echo '<img loading="lazy" src="/wp-content/themes/biuro/i/feedbacks/' . $img . '.png" width="85px" height="83px" alt="' . ${'name' . $i} . '" class="c-feedbacks--img">'; echo '<img loading="lazy" src="/wp-content/themes/biuro/i/feedbacks/' . $img . '.png" width="85" height="83" alt="' . ${'name' . $i} . '" class="c-feedbacks--img">';
echo '</picture>'; echo '</picture>';
} }
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
} }
} }
.c-form--success { margin: -28px -20px 20px; padding: 28px 20px 20px; border-radius: 3px 3px 0 0; text-align: center; color: #27b199; font-style: 18px; line-height: 25px; background: #e5fdf9; font-weight: 500; .c-form--success { margin: -28px -20px 20px; padding: 28px 20px 20px; border-radius: 3px 3px 0 0; text-align: center; color: #27b199; line-height: 25px; background: #e5fdf9; font-weight: 500;
@media (--min--medium) { @media (--min--medium) {
margin: -38px -35px 20px; padding: 28px 35px 20px; margin: -38px -35px 20px; padding: 28px 35px 20px;
} }
......
...@@ -50,6 +50,10 @@ ...@@ -50,6 +50,10 @@
} }
} }
[href="https://maps.google.com/?q="] {
display: none !important;
}
/* critical:end */ /* critical:end */
.c-job-facebook { max-width: 320px; margin: 0 auto; overflow: hidden; .c-job-facebook { max-width: 320px; margin: 0 auto; overflow: hidden;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
.c-jobs--inner-custom { max-width: 990px; margin-right: auto; margin-left: auto; padding-right: 10px; padding-left: 10px; } .c-jobs--inner-custom { max-width: 990px; margin-right: auto; margin-left: auto; padding-right: 10px; padding-left: 10px; }
.c-jobs--table { margin: 0 0 20px; } .c-jobs--table { margin: 0 0 20px; padding: 0; }
.c-jobs--headline {margin: 0 0 25px; padding: 20px 20px 0; .c-jobs--headline {margin: 0 0 25px; padding: 20px 20px 0;
@media (--max--medium) { @media (--max--medium) {
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
?> ?>
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=<?php echo $tagManager; ?>"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=<?php echo $tagManager; ?>" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<?php <?php
endif; endif;
?> ?>
<script src="/wp-content/themes/biuro/js/main-4d30a78f.min.js" async></script> <script src="/wp-content/themes/biuro/js/main-3772c487.min.js" async></script>
<script src="/wp-content/themes/biuro/js/vendor/modernizr-custom.js" async></script> <script src="/wp-content/themes/biuro/js/vendor/modernizr-custom.js" async></script>
<?php <?php
......
<?php <?php
/** /**
* The front page template file * The front page template file
* *
* If the user has selected a static page for their homepage, this is what will * If the user has selected a static page for their homepage, this is what will
* appear. * appear.
* Learn more: https://codex.wordpress.org/Template_Hierarchy * Learn more: https://codex.wordpress.org/Template_Hierarchy
* *
* @package WordPress * @package WordPress
* @subpackage Biuro * @subpackage Biuro
* @since 1.0 * @since 1.0
* @version 1.0 * @version 1.0
*/ */
get_header(); get_header();
?> ?>
<div class="l-section l-section--front-page"> <div class="l-section l-section--front-page">
<div class="l-section--inner"> <div class="l-section--inner">
<?php <?php
while ( have_posts() ) : while ( have_posts() ) :
?> ?>
<div class="c-heading c-heading--front-page"> <div class="c-heading c-heading--front-page">
<?php <?php
the_post(); the_post();
the_content(); the_content();
?> ?>
</div> </div>
<?php <?php
endwhile; endwhile;
get_search_form(); get_search_form();
?> ?>
</div> </div>
</div> </div>
<div id="content"> <div id="content">
<main id="main" class="l-main"> <main id="main" class="l-main">
<div class="c-jobs"> <div class="c-jobs">
<div class="c-jobs--inner"> <div class="c-jobs--inner">
<h2 class="c-jobs--headline"><?php _e('Recent job ads', 'biuro'); ?></h2> <h2 class="c-jobs--headline"><?php _e('Recent job ads', 'biuro'); ?></h2>
<?php <?php
// Use for search // Use for search
// https://pods.io/docs/code/pods/find/ // https://pods.io/docs/code/pods/find/
$where = 'valid.meta_value > "' . date('Y-m-d', strtotime('-1 days')) . '"'; $where = 'valid.meta_value > "' . date('Y-m-d', strtotime('-1 days')) . '"';
// WP Pods fix for multisite // WP Pods fix for multisite
global $wpdb; global $wpdb;
$params = array( $params = array(
'orderby' => 'date DESC', 'orderby' => 'date DESC',
'where' => $where, 'where' => $where,
'limit' => 5 'limit' => 5
); );
if (get_current_blog_id() != 1): if (get_current_blog_id() != 1):
$langs = pll_the_languages(array('raw'=>1)); $langs = pll_the_languages(array('raw'=>1));
$langID = $langs[pll_current_language('slug')]['id']; $langID = $langs[pll_current_language('slug')]['id'];
$where = $where . ' AND ( `langs`.`object_id` IS NOT NULL )'; $where = $where . ' AND ( `langs`.`object_id` IS NOT NULL )';
$params['join'] = ' LEFT JOIN `' . $wpdb->prefix . 'term_relationships` AS `langs` ON `langs`.`object_id` = `t`.`ID` AND `langs`.`term_taxonomy_id` = ' . $langID; $params['join'] = ' LEFT JOIN `' . $wpdb->prefix . 'term_relationships` AS `langs` ON `langs`.`object_id` = `t`.`ID` AND `langs`.`term_taxonomy_id` = ' . $langID;
$params['where'] = $where; $params['where'] = $where;
endif; endif;
// END WP Pods fix for multisite // END WP Pods fix for multisite
$jobs = pods( 'job', $params ); $jobs = pods( 'job', $params );
if ( 0 < $jobs->total() ): if ( 0 < $jobs->total() ):
get_template_part( 'template-parts/jobs/jobs', 'list' ); get_template_part( 'template-parts/jobs/jobs', 'list' );
else: else:
get_template_part( 'template-parts/jobs/jobs', 'none' ); get_template_part( 'template-parts/jobs/jobs', 'none' );
endif; endif;
global $positionsPage; global $positionsPage;
if ($positionsPage && 0 < $jobs->total()): if ($positionsPage && 0 < $jobs->total()):
?> ?>
<div class="c-jobs--more"> <div class="c-jobs--more">
<a href="<?php echo $positionsPage; ?>" class="o-btn c-btn--alt"><?php _e('More job ads', 'biuro'); ?></a> <a href="<?php echo $positionsPage; ?>" class="o-btn c-btn--alt"><?php _e('More job ads', 'biuro'); ?></a>
</div> </div>
<?php <?php
endif; endif;
?> ?>
</div><!-- .c-jobs--inner --> </div>
</div><!-- .c-jobs --> </div><!-- .c-jobs -->
<?php <?php
include 'template-parts/trust.php'; include 'template-parts/trust.php';
?> ?>
<?php <?php
if ( is_active_sidebar( 'front_page_feedbacks' ) ) : if ( is_active_sidebar( 'front_page_feedbacks' ) ) :
dynamic_sidebar( 'front_page_feedbacks' ); dynamic_sidebar( 'front_page_feedbacks' );
endif; endif;
?> ?>
<?php <?php
if ( is_active_sidebar( 'front_page_values' ) ) : if ( is_active_sidebar( 'front_page_values' ) ) :
dynamic_sidebar( 'front_page_values' ); dynamic_sidebar( 'front_page_values' );
endif; endif;
?> ?>
<div class="c-contact"> <div class="c-contact">
<div class="c-contact--inner"> <div class="c-contact--inner">
<div class="c-contact--content"> <div class="c-contact--content">
<?php <?php
if ( is_active_sidebar( 'front_page_employees' ) ) : if ( is_active_sidebar( 'front_page_employees' ) ) :
dynamic_sidebar( 'front_page_employees' ); dynamic_sidebar( 'front_page_employees' );
endif; endif;
?> ?>
<div class="c-contact--img"> <div class="c-contact--img">
<picture> <picture>
<source srcset="/wp-content/themes/biuro/i/contact.webp" type="image/webp"> <source srcset="/wp-content/themes/biuro/i/contact.webp" type="image/webp">
<img loading="lazy" src="/wp-content/themes/biuro/i/contact.png" alt="" width="328" height="95"> <img loading="lazy" src="/wp-content/themes/biuro/i/contact.png" alt="" width="328" height="95">
</picture> </picture>
</div> </div>
</div> </div>
<div class="c-contact--form"> <div class="c-contact--form">
<?php <?php
echo do_shortcode('[biuro-contacts--employees]'); echo do_shortcode('[biuro-contacts--employees]');
?> ?>
</div> </div>
</div><!-- .c-contact--inner --> </div>
</div><!-- .c-contact --> </div><!-- .c-contact -->
</main><!-- .l-main --> </main><!-- .l-main -->
</div><!-- #content --> </div><!-- #content -->
<?php get_footer(); <?php get_footer();
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
// $time_start = microtime(true); // $time_start = microtime(true);
function debug($arr) { function debug($arr) {
echo '<div style="position: fixed; top: 0; left: 0; border: 1px solid red; padding: 25px; background: #fff; z-index: 99999; height: 100vh; overflow-y: auto;" >';
echo '<pre>'; echo '<pre>';
print_r( $arr ); print_r( $arr );
echo '</pre>'; echo '</pre>';
echo '</div>';
} }
function delog($str, $label = 'Label') { function delog($str, $label = 'Label') {
...@@ -939,8 +941,6 @@ function getResults($taxonomy, $term = '', $termID = '', $langID = '') { ...@@ -939,8 +941,6 @@ function getResults($taxonomy, $term = '', $termID = '', $langID = '') {
$today = date('Y-m-d'); $today = date('Y-m-d');
$order = ($taxonomy == 'city') ? 'no DESC' : 'total DESC'; $order = ($taxonomy == 'city') ? 'no DESC' : 'total DESC';
$langID = 2;
$condition = ($term && $termID) ? " AND `" . $term . "`.`term_id` = " . $termID : ''; $condition = ($term && $termID) ? " AND `" . $term . "`.`term_id` = " . $termID : '';
$structure = ($term && $termID) ? " LEFT JOIN `{$prefix}term_relationships` AS `rel_term2` ON `rel_term2`.`object_id` = `t`.`ID` $structure = ($term && $termID) ? " LEFT JOIN `{$prefix}term_relationships` AS `rel_term2` ON `rel_term2`.`object_id` = `t`.`ID`
INNER JOIN `{$prefix}term_taxonomy` AS `rel_tt_term2` ON `rel_tt_term2`.`taxonomy` = '" . $term . "' AND `rel_tt_term2`.`term_taxonomy_id` = `rel_term2`.`term_taxonomy_id` INNER JOIN `{$prefix}term_taxonomy` AS `rel_tt_term2` ON `rel_tt_term2`.`taxonomy` = '" . $term . "' AND `rel_tt_term2`.`term_taxonomy_id` = `rel_term2`.`term_taxonomy_id`
......
<?php <!DOCTYPE html>
// global $time_start;
// $time_start = microtime(true);
// delog((microtime(true) - $time_start), 'Lorem ipsum');
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js"> <html <?php language_attributes(); ?> class="no-js">
<head> <head>
<meta charset="<?php bloginfo( 'charset' ); ?>"> <meta charset="<?php bloginfo( 'charset' ); ?>">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" /> <meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php wp_title(''); ?> | Biuro</title> <title><?php wp_title(''); ?> | Biuro</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
...@@ -31,7 +27,7 @@ ...@@ -31,7 +27,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-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" > <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-c844a271cc.min.css'; ?></style> <style><?php include 'css/core-0cdb3b2c07.min.css'; ?></style>
<script> <script>
document.documentElement.classList.replace('no-js', 'js'); document.documentElement.classList.replace('no-js', 'js');
...@@ -40,13 +36,13 @@ ...@@ -40,13 +36,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-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" 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-7c323da9f9.min.css" as="style" onload="this.rel='stylesheet'"> <link rel="preload" href="/wp-content/themes/biuro/css/main-d24fbfd883.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preconnect" href="https://www.gstatic.com"> <link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com"> <link rel="preconnect" href="https://fonts.gstatic.com">
<noscript> <noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-7c323da9f9.min.css"> <link rel="stylesheet" href="/wp-content/themes/biuro/css/main-d24fbfd883.min.css">
</noscript> </noscript>
<?php wp_head(); ?> <?php wp_head(); ?>
......
<?php <!DOCTYPE html>
// global $time_start;
// $time_start = microtime(true);
// delog((microtime(true) - $time_start), 'Lorem ipsum');
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js"> <html <?php language_attributes(); ?> class="no-js">
<head> <head>
<meta charset="<?php bloginfo( 'charset' ); ?>"> <meta charset="<?php bloginfo( 'charset' ); ?>">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" /> <meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php wp_title(''); ?> | Biuro</title> <title><?php wp_title(''); ?> | Biuro</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
...@@ -31,7 +27,7 @@ ...@@ -31,7 +27,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-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" > <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-c844a271cc.min.css'; ?></style> <style><?php include 'css/core-0cdb3b2c07.min.css'; ?></style>
<script> <script>
document.documentElement.classList.replace('no-js', 'js'); document.documentElement.classList.replace('no-js', 'js');
...@@ -40,13 +36,13 @@ ...@@ -40,13 +36,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-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" 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-7c323da9f9.min.css" as="style" onload="this.rel='stylesheet'"> <link rel="preload" href="/wp-content/themes/biuro/css/main-d24fbfd883.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preconnect" href="https://www.gstatic.com"> <link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com"> <link rel="preconnect" href="https://fonts.gstatic.com">
<noscript> <noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-7c323da9f9.min.css"> <link rel="stylesheet" href="/wp-content/themes/biuro/css/main-d24fbfd883.min.css">
</noscript> </noscript>
<?php wp_head(); ?> <?php wp_head(); ?>
...@@ -77,7 +73,7 @@ ...@@ -77,7 +73,7 @@
</nav> </nav>
<?php <?php
$blogID = get_current_blog_id(); $blogID = get_current_blog_id();
$inEmployers = get_post_meta( $post->ID, 'section', true) == 'employers'; $inEmployers = (is_page() && get_post_meta( $post->ID, 'section', true) == 'employers') ? true : false;
$phone = '+37064902392'; $phone = '+37064902392';
$phoneUI = '+370 649 02392'; $phoneUI = '+370 649 02392';
...@@ -147,7 +143,7 @@ ...@@ -147,7 +143,7 @@
<?php <?php
get_template_part( 'template-parts/menus/menu', 'language' ); get_template_part( 'template-parts/menus/menu', 'language' );
?> ?>
</div><!-- .c-nav--lang-wrap --> </div>
<span class="js-toggle--nav l-nav--close"> <span class="js-toggle--nav l-nav--close">
<svg width="13px" height="13px"> <svg width="13px" height="13px">
...@@ -155,6 +151,6 @@ ...@@ -155,6 +151,6 @@
</svg> </svg>
</span> </span>
</div><!-- .l-nav--wrap --> </div>
</div> </div>
</header> </header>
<?php <?php
/** /**
* Template Name: Sales page * Template Name: Sales page
* *
* The sales page template file * The sales page template file
* Learn more: https://codex.wordpress.org/Template_Hierarchy * Learn more: https://codex.wordpress.org/Template_Hierarchy
* *
* @package WordPress * @package WordPress
* @subpackage Biuro * @subpackage Biuro
* @since 1.0 * @since 1.0
* @version 1.0 * @version 1.0
*/ */
get_header(); get_header();
?> ?>
<div class="l-section l-section--sales-page"> <div class="l-section l-section--sales-page">
<div class="l-section--inner"> <div class="l-section--inner">
<?php <?php
while ( have_posts() ) : while ( have_posts() ) :
?> ?>
<div class="c-heading c-heading--sales-page"> <div class="c-heading c-heading--sales-page">
<?php <?php
the_post(); the_post();
the_content(); the_content();
?> ?>
</div> </div>
<?php <?php
endwhile; endwhile;
?> ?>
</div> </div>
</div> </div>
<div id="content"> <div id="content">
<main id="main" class="l-main"> <main id="main" class="l-main">
<?php <?php
if ( is_active_sidebar( 'sales_page_services' ) ) : if ( is_active_sidebar( 'sales_page_services' ) ) :
dynamic_sidebar( 'sales_page_services' ); dynamic_sidebar( 'sales_page_services' );
endif; endif;
?> ?>
<?php <?php
if ( is_active_sidebar( 'sales_page_values' ) ) : if ( is_active_sidebar( 'sales_page_values' ) ) :
dynamic_sidebar( 'sales_page_values' ); dynamic_sidebar( 'sales_page_values' );
endif; endif;
?> ?>
<?php <?php
if ( is_active_sidebar( 'sales_page_sections' ) ) : if ( is_active_sidebar( 'sales_page_sections' ) ) :
dynamic_sidebar( 'sales_page_sections' ); dynamic_sidebar( 'sales_page_sections' );
endif; endif;
?> ?>
<?php <?php
include 'template-parts/trust.php'; include 'template-parts/trust.php';
?> ?>
<?php <?php
if ( is_active_sidebar( 'sales_page_feedbacks' ) ) : if ( is_active_sidebar( 'sales_page_feedbacks' ) ) :
dynamic_sidebar( 'sales_page_feedbacks' ); dynamic_sidebar( 'sales_page_feedbacks' );
endif; endif;
?> ?>
<div class="c-contact"> <div class="c-contact">
<div class="c-contact--inner"> <div class="c-contact--inner">
<div class="c-contact--content"> <div class="c-contact--content">
<?php <?php
if ( is_active_sidebar( 'sales_page_employers' ) ) : if ( is_active_sidebar( 'sales_page_employers' ) ) :
dynamic_sidebar( 'sales_page_employers' ); dynamic_sidebar( 'sales_page_employers' );
endif; endif;
?> ?>
<div class="c-contact--img"> <div class="c-contact--img">
<picture> <picture>
<source srcset="/wp-content/themes/biuro/i/contact.webp" type="image/webp"> <source srcset="/wp-content/themes/biuro/i/contact.webp" type="image/webp">
<img loading="lazy" src="/wp-content/themes/biuro/i/contact.png" alt="" width="328" height="95"> <img loading="lazy" src="/wp-content/themes/biuro/i/contact.png" alt="" width="328" height="95">
</picture> </picture>
</div> </div>
</div> </div>
<div class="c-contact--form"> <div class="c-contact--form">
<?php <?php
echo do_shortcode('[biuro-contacts--employers]'); echo do_shortcode('[biuro-contacts--employers]');
?> ?>
</div> </div>
</div><!-- .c-contact--inner --> </div>
</div><!-- .c-contact --> </div><!-- .c-contact -->
</main><!-- .l-main --> </main><!-- .l-main -->
</div><!-- #content --> </div><!-- #content -->
<?php get_footer(); <?php get_footer();
...@@ -83,7 +83,7 @@ get_header(); ?> ...@@ -83,7 +83,7 @@ get_header(); ?>
if ( $searchQuery ) : if ( $searchQuery ) :
if ( $searchQuery['city'] ) : if ( isset($searchQuery['city']) ) :
$city = get_term_by( 'name', preg_replace('/[\+]/', ' ', $searchQuery['city']), 'city' ); $city = get_term_by( 'name', preg_replace('/[\+]/', ' ', $searchQuery['city']), 'city' );
if ( $city ) : if ( $city ) :
...@@ -91,7 +91,7 @@ get_header(); ?> ...@@ -91,7 +91,7 @@ get_header(); ?>
endif; endif;
endif; endif;
if ( $searchQuery['s'] ) : if ( isset($searchQuery['s']) ) :
$field = get_term_by( 'name', preg_replace('/[\+]/', ' ', $searchQuery['s']), 'field' ); $field = get_term_by( 'name', preg_replace('/[\+]/', ' ', $searchQuery['s']), 'field' );
$type = get_term_by( 'name', preg_replace('/[\+]/', ' ', $searchQuery['s']), 'type' ); $type = get_term_by( 'name', preg_replace('/[\+]/', ' ', $searchQuery['s']), 'type' );
......
...@@ -31,7 +31,7 @@ $langID = $langs[pll_current_language('slug')]['id']; ...@@ -31,7 +31,7 @@ $langID = $langs[pll_current_language('slug')]['id'];
?> ?>
<form id="search" class="c-search" action="<?php echo home_url(); ?>" method="get"> <form id="search" class="c-search" action="<?php echo home_url(); ?>" method="get">
<div for="search-city" class="c-search--col c-search--col-location"> <label for="search-city" class="c-search--col c-search--col-location">
<svg xmlns="http://www.w3.org/2000/svg" width="15px" height="21px" viewBox="0 0 15 21" class="c-ico--location"> <svg xmlns="http://www.w3.org/2000/svg" width="15px" height="21px" viewBox="0 0 15 21" class="c-ico--location">
<path fill="#B8BCC1" d="M7.5,4.25c2.068,0,3.75,1.682,3.75,3.75s-1.682,3.75-3.75,3.75S3.75,10.068,3.75,8 S5.432,4.25,7.5,4.25z M7.5,10.5C8.878,10.5,10,9.379,10,8S8.878,5.5,7.5,5.5C6.121,5.5,5,6.622,5,8C5,9.379,6.121,10.5,7.5,10.5z M7.5,0.5C11.642,0.5,15,3.858,15,8c0,3.024-1.054,3.868-6.729,12.096c-0.373,0.538-1.169,0.538-1.542,0C1.054,11.868,0,11.024,0,8 C0,3.858,3.358,0.5,7.5,0.5z M7.5,19.013c5.442-7.87,6.25-8.494,6.25-11.013c0-1.669-0.65-3.239-1.831-4.419 C10.739,2.4,9.169,1.75,7.5,1.75S4.261,2.4,3.081,3.581C1.9,4.761,1.25,6.331,1.25,8C1.25,10.519,2.059,11.144,7.5,19.013z"/> <path fill="#B8BCC1" d="M7.5,4.25c2.068,0,3.75,1.682,3.75,3.75s-1.682,3.75-3.75,3.75S3.75,10.068,3.75,8 S5.432,4.25,7.5,4.25z M7.5,10.5C8.878,10.5,10,9.379,10,8S8.878,5.5,7.5,5.5C6.121,5.5,5,6.622,5,8C5,9.379,6.121,10.5,7.5,10.5z M7.5,0.5C11.642,0.5,15,3.858,15,8c0,3.024-1.054,3.868-6.729,12.096c-0.373,0.538-1.169,0.538-1.542,0C1.054,11.868,0,11.024,0,8 C0,3.858,3.358,0.5,7.5,0.5z M7.5,19.013c5.442-7.87,6.25-8.494,6.25-11.013c0-1.669-0.65-3.239-1.831-4.419 C10.739,2.4,9.169,1.75,7.5,1.75S4.261,2.4,3.081,3.581C1.9,4.761,1.25,6.331,1.25,8C1.25,10.519,2.059,11.144,7.5,19.013z"/>
</svg> </svg>
...@@ -58,9 +58,9 @@ $langID = $langs[pll_current_language('slug')]['id']; ...@@ -58,9 +58,9 @@ $langID = $langs[pll_current_language('slug')]['id'];
<use xlink:href="#ico--up"></use> <use xlink:href="#ico--up"></use>
</svg> </svg>
</span> </span>
</div><!-- .c-search--col c-search--col-location --> </label>
<div for="search-query" class="c-search--col c-search--col-keyword"> <label for="search-query" class="c-search--col c-search--col-keyword">
<svg xmlns="http://www.w3.org/2000/svg" width="20px" height="19px" viewBox="0 0 20 19" class="c-ico--area"> <svg xmlns="http://www.w3.org/2000/svg" width="20px" height="19px" viewBox="0 0 20 19" class="c-ico--area">
<path fill="#B8BCC1" d="M18.125,4.5C19.16,4.5,20,5.339,20,6.375v10c0,1.036-0.839,1.875-1.875,1.875H1.875 C0.839,18.25,0,17.411,0,16.375v-10C0,5.339,0.839,4.5,1.875,4.5H6.25V1.688c0-0.518,0.42-0.937,0.937-0.937h5.625 c0.518,0,0.938,0.42,0.938,0.937V4.5H18.125z M7.5,2v2.5h5V2H7.5z M18.75,16.375V10.75H12.5v1.562c0,0.518-0.42,0.937-0.938,0.937 H8.437c-0.518,0-0.938-0.42-0.938-0.937V10.75H1.25v5.625C1.25,16.72,1.53,17,1.875,17h16.25C18.47,17,18.75,16.72,18.75,16.375z M8.75,12h2.5v-1.25h-2.5V12z M18.75,9.5V6.375c0-0.345-0.28-0.625-0.625-0.625H1.875C1.53,5.75,1.25,6.03,1.25,6.375V9.5H18.75z"/> <path fill="#B8BCC1" d="M18.125,4.5C19.16,4.5,20,5.339,20,6.375v10c0,1.036-0.839,1.875-1.875,1.875H1.875 C0.839,18.25,0,17.411,0,16.375v-10C0,5.339,0.839,4.5,1.875,4.5H6.25V1.688c0-0.518,0.42-0.937,0.937-0.937h5.625 c0.518,0,0.938,0.42,0.938,0.937V4.5H18.125z M7.5,2v2.5h5V2H7.5z M18.75,16.375V10.75H12.5v1.562c0,0.518-0.42,0.937-0.938,0.937 H8.437c-0.518,0-0.938-0.42-0.938-0.937V10.75H1.25v5.625C1.25,16.72,1.53,17,1.875,17h16.25C18.47,17,18.75,16.72,18.75,16.375z M8.75,12h2.5v-1.25h-2.5V12z M18.75,9.5V6.375c0-0.345-0.28-0.625-0.625-0.625H1.875C1.53,5.75,1.25,6.03,1.25,6.375V9.5H18.75z"/>
</svg> </svg>
...@@ -88,7 +88,7 @@ $langID = $langs[pll_current_language('slug')]['id']; ...@@ -88,7 +88,7 @@ $langID = $langs[pll_current_language('slug')]['id'];
<use xlink:href="#ico--up"></use> <use xlink:href="#ico--up"></use>
</svg> </svg>
</span> </span>
</div><!-- .c-search--col c-search--col-keyword --> </label>
<button class="o-btn c-btn--main <?php if ( is_front_page() ): ?>c-btn--search<?php else: ?>c-btn--search-small<?php endif; ?>" type="submit" value="1"> <button class="o-btn c-btn--main <?php if ( is_front_page() ): ?>c-btn--search<?php else: ?>c-btn--search-small<?php endif; ?>" type="submit" value="1">
<svg xmlns="http://www.w3.org/2000/svg" width="17px" height="17px" viewBox="0 0 17 17" class="c-ico--search"> <svg xmlns="http://www.w3.org/2000/svg" width="17px" height="17px" viewBox="0 0 17 17" class="c-ico--search">
<path fill="#FFFFFF" d="M16.884,15.694c0.156,0.156,0.156,0.408,0,0.564l-0.75,0.75c-0.156,0.156-0.408,0.156-0.564,0 l-4.031-4.031c-0.073-0.076-0.116-0.176-0.116-0.282v-0.438c-1.212,1.046-2.789,1.68-4.516,1.68C3.091,13.938,0,10.846,0,7.031 s3.091-6.906,6.906-6.906c3.815,0,6.906,3.091,6.906,6.906c0,1.727-0.634,3.304-1.68,4.516h0.438c0.106,0,0.206,0.04,0.282,0.116 L16.884,15.694z M6.906,12.344c2.935,0,5.313-2.377,5.313-5.312S9.841,1.719,6.906,1.719c-2.935,0-5.313,2.377-5.313,5.312 S3.971,12.344,6.906,12.344z"/> <path fill="#FFFFFF" d="M16.884,15.694c0.156,0.156,0.156,0.408,0,0.564l-0.75,0.75c-0.156,0.156-0.408,0.156-0.564,0 l-4.031-4.031c-0.073-0.076-0.116-0.176-0.116-0.282v-0.438c-1.212,1.046-2.789,1.68-4.516,1.68C3.091,13.938,0,10.846,0,7.031 s3.091-6.906,6.906-6.906c3.815,0,6.906,3.091,6.906,6.906c0,1.727-0.634,3.304-1.68,4.516h0.438c0.106,0,0.206,0.04,0.282,0.116 L16.884,15.694z M6.906,12.344c2.935,0,5.313-2.377,5.313-5.312S9.841,1.719,6.906,1.719c-2.935,0-5.313,2.377-5.313,5.312 S3.971,12.344,6.906,12.344z"/>
......
...@@ -70,25 +70,37 @@ get_header(); ...@@ -70,25 +70,37 @@ get_header();
'pageURL' => '', 'pageURL' => '',
); );
$terms = get_post_meta($ID, "_yoast_wpseo_primary_{$str}"); $termID = get_post_meta($ID, "_yoast_wpseo_primary_{$str}", true);
if (isset($terms) && isset($terms[0])) { if (isset($termID)) {
$pages = getOptions($str); $pages = getOptions($str);
$termID = $terms[0];
$options = array_filter($pages, function ($pages) use ($termID) { return ($pages['termID'] == $termID); } ); $options = array_filter($pages, function ($pages) use ($termID) { return ($pages['termID'] == $termID); } );
foreach ($options as &$page) : if (count($options) > 0):
if (isset($page['name'])):
$res['name'] = $page['name']; foreach ($options as &$page) :
endif; if (isset($page['name'])):
$res['name'] = $page['name'];
endif;
if (isset($page['pageID'])):
$res['pageURL'] = get_page_link( $page['pageID'] );
else:
$res['pageURL'] = ($str == 'city') ? '/?city=' . $res['name'] . '&s=' : '/?city=&s=' . $res['name'];
endif;
endforeach;
if (isset($page['pageID'])): else:
$res['pageURL'] = get_page_link( $page['pageID'] );
else: $page = get_term_meta( $termID, 'page-id', true);
$res['pageURL'] = ($str == 'city') ? '/?city=' . $res['name'] . '&s=' : '/?city=&s=' . $res['name'];
if (isset($page)):
$res['name'] = $page['post_title'];
$res['pageURL'] = get_page_link( $page['ID'] );
endif; endif;
endforeach;
endif;
} }
return $res; return $res;
...@@ -159,9 +171,7 @@ get_header(); ...@@ -159,9 +171,7 @@ get_header();
if ($field['name'] != ''): if ($field['name'] != ''):
if ($city['name'] != ''): if ($city['name'] != ''):
?> echo '<li class="c-categories--sep">/</li>';
<li class="c-categories--sep">/</li>
<?php
endif; endif;
?> ?>
<li> <li>
...@@ -247,17 +257,21 @@ get_header(); ...@@ -247,17 +257,21 @@ get_header();
?> </div> ?> </div>
<?php <?php
echo '<b>' . __('Salary', 'biuro') . ':</b> '; if (!$pod->field( 'hide-salary' )):
if ($pod->field( 'salary_from' ) > 0): echo '<b>' . __('Salary', 'biuro') . ':</b> ';
echo __('from', 'biuro') . ' ' . $pod->field( 'salary_from' ) . ' ';
endif;
if ($pod->field( 'salary_to' ) > 0): if ($pod->field( 'salary_from' ) > 0):
echo __('to', 'biuro') . ' ' . $pod->field( 'salary_to' ) . ' '; echo __('from', 'biuro') . ' ' . $pod->field( 'salary_from' ) . ' ';
endif; endif;
if ($pod->field( 'salary_to' ) > 0):
echo __('to', 'biuro') . ' ' . $pod->field( 'salary_to' ) . ' ';
endif;
_e('(neto)', 'biuro'); _e('(neto)', 'biuro');
endif;
endif; endif;
endif; endif;
...@@ -304,7 +318,7 @@ get_header(); ...@@ -304,7 +318,7 @@ get_header();
?> ?>
</aside><!-- .l-aside --> </aside><!-- .l-aside -->
</div><!-- .l-content--position-inner --> </div><!-- .l-content -position-inner -->
</div><!-- #content --> </div><!-- #content -->
......
...@@ -3,6 +3,6 @@ Theme Name: Biuro ...@@ -3,6 +3,6 @@ Theme Name: Biuro
Author: Biuro Author: Biuro
Author URI: https://www.biuro.lt/ Author URI: https://www.biuro.lt/
Description: Biuro multiregion theme Description: Biuro multiregion theme
Version: 1.12.1 Version: 1.12.2
Text Domain: biuro Text Domain: biuro
*/ */
...@@ -35,7 +35,7 @@ function showPosted($published, $valid) { ...@@ -35,7 +35,7 @@ function showPosted($published, $valid) {
?> ?>
<table cellspacing="0" cellpadding="0" class="c-jobs--table"> <table class="c-jobs--table">
<?php <?php
while ( $jobs->fetch() ) : while ( $jobs->fetch() ) :
$ID = $jobs->display( 'ID' ); $ID = $jobs->display( 'ID' );
......
...@@ -18,11 +18,10 @@ ...@@ -18,11 +18,10 @@
return false; return false;
endif; endif;
if ($childID == $ID): return ($childID == $ID) ? true : false;
return true;
endif;
return ( get_post_meta( $childID, 'page', true ) == "employees-contacts" && pods( 'division' )->find( array( 'limit' => 1, 'where'=>"page-id.ID = " . $ID ) )->total() ) ? true : false; // used to be used for Contacts sub pages
// return ( get_post_meta( $childID, 'page', true ) == "employees-contacts" && pods( 'division' )->find( array( 'limit' => 1, 'where'=>"page-id.ID = " . $ID ) )->total() ) ? true : false;
} }
foreach( $menu_items as $menu_item ): foreach( $menu_items as $menu_item ):
...@@ -40,12 +39,14 @@ ...@@ -40,12 +39,14 @@
endif; endif;
endforeach; endforeach;
global $post;
$main .= '<ul class="o-nav c-nav--main">'; $main .= '<ul class="o-nav c-nav--main">';
foreach($items as $item) : foreach($items as $item) :
$children = array_key_exists('children', $item); $children = array_key_exists('children', $item);
$url = ($children) ? $item['children'][0]->url : $item['props']->url; $url = ($children) ? $item['children'][0]->url : $item['props']->url;
$sectionCSS = ( get_post_meta( $post->ID, 'section', true) == get_post_meta( $item['props']->object_id, 'section', true )) ? 'is-nav--main-item-active' : ''; $sectionCSS = (is_page() && get_post_meta( $post->ID, 'section', true) == get_post_meta( $item['props']->object_id, 'section', true )) ? 'is-nav--main-item-active' : '';
$main .= '<li class="c-nav--main-item ' . $sectionCSS . '">'; $main .= '<li class="c-nav--main-item ' . $sectionCSS . '">';
$classCSS = ($item['active']) ? 'is-nav--main-anchor-active' : ''; $classCSS = ($item['active']) ? 'is-nav--main-anchor-active' : '';
......
<?php <?php
if (isset($_GET['pg'])): if (isset($_GET['pg'])):
return; return;
endif; endif;
global $query_string; global $query_string;
wp_parse_str( $query_string, $searchQuery ); wp_parse_str( $query_string, $searchQuery );
if ( is_search()) : if ( is_search()) :
if ( $searchQuery['city'] && !$searchQuery['s'] ) : if ( isset($searchQuery['city']) && !isset($searchQuery['s']) ) :
$term = get_term_by( 'name', $searchQuery['city'], 'city' ); $term = get_term_by( 'name', $searchQuery['city'], 'city' );
if ( $term ) : if ( $term ) :
$page = get_term_meta( $term->term_id, 'page-id', true); $page = get_term_meta( $term->term_id, 'page-id', true);
if ( $page ) : if ( $page ) :
?> ?>
<link rel="canonical" hreflang="<?php echo pll_current_language('slug'); ?>" href="<?php echo get_page_link( $page['ID'] ); ?>" /> <link rel="canonical" hreflang="<?php echo pll_current_language('slug'); ?>" href="<?php echo get_page_link( $page['ID'] ); ?>" />
<?php <?php
return; return;
endif; endif;
endif; endif;
elseif ( !$searchQuery['city'] && $searchQuery['s'] ) : elseif ( !isset($searchQuery['city']) && isset($searchQuery['s']) ) :
$term = get_term_by( 'name', $searchQuery['s'], 'field' ); $term = get_term_by( 'name', $searchQuery['s'], 'field' );
if ( !$term ) : if ( !$term ) :
$term = get_term_by( 'name', $searchQuery['s'], 'type' ); $term = get_term_by( 'name', $searchQuery['s'], 'type' );
endif; endif;
if ( $term ) : if ( $term ) :
$page = get_term_meta( $term->term_id, 'page-id', true); $page = get_term_meta( $term->term_id, 'page-id', true);
if ( $page ) : if ( $page ) :
?> ?>
<link rel="canonical" hreflang="<?php echo pll_current_language('slug'); ?>" href="<?php echo get_page_link( $page['ID'] ); ?>" /> <link rel="canonical" hreflang="<?php echo pll_current_language('slug'); ?>" href="<?php echo get_page_link( $page['ID'] ); ?>" />
<?php <?php
return; return;
endif; endif;
endif; endif;
elseif ( !$searchQuery['city'] || !$searchQuery['s'] ) : elseif ( !isset($searchQuery['city']) || !isset($searchQuery['s']) ) :
?> ?>
<meta name="robots" content="noindex" /> <meta name="robots" content="noindex" />
<?php <?php
endif; endif;
elseif ( get_post_type() == 'page' ): elseif ( get_post_type() == 'page' ):
if ( get_post_meta( get_the_ID(), 'built_in_taxonomies_city', true ) || get_post_meta( get_the_ID(), 'built_in_taxonomies_type', true ) || get_post_meta( get_the_ID(), 'built_in_taxonomies_field', true ) ) : if ( get_post_meta( get_the_ID(), 'built_in_taxonomies_city', true ) || get_post_meta( get_the_ID(), 'built_in_taxonomies_type', true ) || get_post_meta( get_the_ID(), 'built_in_taxonomies_field', true ) ) :
?> ?>
<link rel="canonical" hreflang="<?php echo pll_current_language('slug'); ?>" href="<?php echo get_permalink(); ?>" /> <link rel="canonical" hreflang="<?php echo pll_current_language('slug'); ?>" href="<?php echo get_permalink(); ?>" />
<?php <?php
endif; endif;
endif; endif;
# !/usr/bin/env sh # !/usr/bin/env sh
sleep 120; sleep 15;
echo "WP CLI init"; echo "WP CLI init";
wp core update --force; wp core update --force;
......
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