Commit b7509a7e authored by Simonas's avatar Simonas

Contact forms complete, small fixes

parent 339b5796
......@@ -17,7 +17,7 @@
### DB backup
- `C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysqldump -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro > docker/mariadb/data-004.sql`
- `sudo docker exec -i biuro-staging-mysql mysqldump -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 staging_biuro > docker/mariadb/data-008.sql`
- `sudo docker exec -i biuro-staging-mysql mysqldump -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 staging_biuro > docker/mariadb/data-010.sql`
### DB restore
- `C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysql -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro < docker/mariadb/data-004.sql`
......@@ -112,10 +112,10 @@ Can't share C drive
- docker load --input ourdemo.tar
- docker build -t biuro/web:0.0.16 .
- docker build -t biuro/web:0.0.17 .
- docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
- sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
- docker push biuro/web:0.0.16
- docker push biuro/web:0.0.17
- sudo chown -R www-data:www-data wordpress/wp-content/plugins
......
......@@ -107,6 +107,7 @@ class Biuro_Contacts_Activator {
updated datetime DEFAULT '0000-00-00 00:00:00',
confirm tinyint DEFAULT 0,
referer varchar(255) DEFAULT null,
lead_id int DEFAULT null,
PRIMARY KEY (id)
) $charset_collate;";
......
......@@ -43,7 +43,7 @@ class Biuro_Contacts_Public {
const FIELDS = [
'employees' => ['name', 'phone', 'email', 'agree'],
'employers' => ['name', 'phone', 'email', 'agree'],
'position' => ['name', 'phone', 'email', 'agree', 'city', 'city_id', 'message', 'confirm', 'job_id'],
'position' => ['name', 'phone', 'email', 'agree', 'city', 'city_id', 'message', 'confirm', 'job_id', 'cv'],
];
const DB_NAMES = [
......@@ -150,8 +150,6 @@ class Biuro_Contacts_Public {
$success = ['status' => 'success', 'message' => ''];
$required = ['status' => 'error', 'message' => __('This field is required', 'biuro-contacts')];
// if ($str == 'employees' || $str == 'position'):
switch($key) {
case 'name':
......@@ -210,17 +208,16 @@ class Biuro_Contacts_Public {
return $success;
case 'cv':
case 'city':
case 'city_id':
case 'message':
case 'confirm':
case 'job_id':
//?case 'company':
case 'company':
return $empty;
}
// endif;
return $success;
}
......@@ -422,18 +419,24 @@ class Biuro_Contacts_Public {
}
if ($canSubmit):
$data['referer'] = ($_SESSION['referer'] !== null) ? $_SESSION['referer'] : null;
$insert_id = static::insert_row_to_db($data, array( '%s', '%s', '%s', '%s', '%s' ), 'biuro_employers');
static::sendEmail( static::emailContent($data['name'], 'Biuro Lithuania', $data['phone'], $data['email']), $data['name']);
$return = static::sendPost($data['name'], 'Biuro Lithuania', $data['phone'], $data['email']);
if ($return['LEAD_ID']):
static::update_row_in_db(['lead_id' => $return['LEAD_ID']], $insert_id, ['%d'] , 'biuro_employers');
endif;
$_SESSION[$str . '--step'] = 2;
$_SESSION[$str . '--id'] = $insert_id;
$_SESSION['employers--s'] = 1;
endif;
// static::set_sessions('employers', $_POST);
elseif ($_POST['s'] == "2"):
$data = [
......@@ -445,15 +448,20 @@ class Biuro_Contacts_Public {
$data['referer'] = ($_SESSION['referer'] !== null) ? $_SESSION['referer'] : null;
static::update_row_in_db($data, $_SESSION['employers--id'], ['%s', '%s', '%d', '%s', '%s'] , 'biuro_employers');
$employerData = static::fetchRow($_SESSION['employers--id'], 'biuro_employers');
static::sendEmail( static::emailContent($employerData['name'], 'Biuro Lithuania', $employerData['phone'], $employerData['email'], $data['company'], $data['message']), $employerData['name'] );
if ($employerData['lead_id']):
$return = static::curlPut($employerData['lead_id'], $employerData['name'], 'Biuro Lithuania', $employerData['phone'], $employerData['email'], $data['company'], $data['message']);
endif;
$_SESSION['employers--s'] = 2;
# isvalom klaidos teksta;
unset($_SESSION[$str.'file_error']);
//debug($data);
//exit();
endif;
......@@ -461,6 +469,128 @@ class Biuro_Contacts_Public {
exit;
}
public static function curlPut($leadId, $firstName, $lastName, $phone, $email, $organization, $comment) {
$service_url = 'https://api.insight.ly/v2.2/Leads';
$ch = curl_init($service_url);
$firstName =$firstName;
$lastName = $lastName;
$organization = $organization;
$comment = $comment;
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Authorization: Basic ' . base64_encode('db7f06b9-1d5d-433b-8811-bf32fc614c79')
));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
$data = '{
"LEAD_ID": "'.$leadId.'",
"FIRST_NAME": "'.$firstName.'",
"LAST_NAME": "'.$lastName.'",
"organization_name": "'.$organization.'",
"mobile_phone_number": "'.$phone.'",
"email_address": "'.$email.'",
"Service_Country_L__c": "'.$lastName.'",
"CUSTOMFIELDS": [ {
"CUSTOM_FIELD_ID": "Service_Country_L__c",
"FIELD_VALUE": "'.$lastName.'"
},
{
"CUSTOM_FIELD_ID": "Comments_L__c",
"FIELD_VALUE": "'.$comment.'"
},
]
}';
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$return = curl_exec($ch);
$err = curl_errno($ch);
$msg = curl_error($ch);
curl_close($ch);
return json_decode($return, true);
}
public static function sendPost($firstName, $lastName, $phone, $email) {
$service_url = 'https://api.insight.ly/v2.2/Leads';
$ch = curl_init($service_url);
$firstName = $firstName;
$lastName = $lastName;
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Authorization: Basic ' . base64_encode('db7f06b9-1d5d-433b-8811-bf32fc614c79')
));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
$data = '{
"FIRST_NAME": "'.$firstName.'",
"LAST_NAME": "'.$lastName.'",
"mobile_phone_number": "'.$phone.'",
"email_address": "'.$email.'",
"Service_Country_L__c": "'.$lastName.'",
"CUSTOMFIELDS": [ {
"CUSTOM_FIELD_ID": "Service_Country_L__c",
"FIELD_VALUE": "'.$lastName.'"
}
]
}';
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$return = curl_exec($ch);
$err = curl_errno($ch);
$msg = curl_error($ch);
curl_close($ch);
return json_decode($return, true);
}
public static function sendEmail($message, $name) {
$to = 'pardavimai@biuro.lt';
$subject = 'Biuro employers contact form';
$headers = "From: Biuro <no-reply@biuro.lt>" . "\r\n";
try {
wp_mail( $to, $subject, $message, $headers );
} catch (Exception $e) {
debug($e);
}
}
public static function emailContent($firstName, $lastName, $phone, $email, $organization = null, $comment = null) {
$message = '';
$message .= 'Firstname: ' . $firstName . "\r\n";
$message .= 'Lastname: ' . $lastName . "\r\n";
$message .= 'Phone no.: ' . $phone . "\r\n";
$message .= 'Email: ' . $email . "\r\n";
if ($organization || $comment):
$message .= 'Company: ' . $organization . "\r\n";
$message .= 'Message: ' . $comment . "\r\n";
endif;
return $message;
}
/* --------------------------- position ---------------------------
/**
......@@ -553,7 +683,7 @@ class Biuro_Contacts_Public {
if ( $movefile && ! isset( $movefile['error'] ) ) {
$data['cv'] = static::getValue('cv', $movefile['url']);
} else {
$_SESSION['position_file_error'] = $movefile['error'];
$_SESSION['position--cv-error'] = $movefile['error'];
//po klaidos setinimo reikia redirecto?
}
}
......
......@@ -24,11 +24,23 @@ if ( ! defined( 'WPINC' ) ) die;
$nameValue = $_SESSION['employees--name-value'];
$nameStatus = $_SESSION['employees--name-status'];
$nameMessage = $_SESSION['employees--name-message'];
$phoneValue = $_SESSION['employees--phone-value'];
$phoneStatus = $_SESSION['employees--phone-status'];
$phoneMessage = $_SESSION['employees--phone-message'];
$emailValue = $_SESSION['employees--email-value'];
$emailStatus = $_SESSION['employees--email-status'];
$emailMessage = $_SESSION['employees--email-message'];
$agreeValue = $_SESSION['employees--agree-value'];
$agreeStatus = $_SESSION['employees--agree-status'];
$agreeMessage = $_SESSION['employees--agree-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-name"><?php _e('Name, surname', 'biuro-contacts'); ?></label>
<div class="c-form--input-wrap <?php if ($nameStatus) { echo "c-form--input-wrap--$nameStatus"; } ?>">
<input type="text" class="c-form--input" id="form-name" name="name" value="<?php echo $nameValue; ?>" <?php if ($nameStatus == 'error'): ?> autofocus="autofocus" <?php endif; ?>>
<input type="text" class="c-form--input" id="form-name" name="name" value="<?php echo $nameValue; ?>" <?php if ($nameStatus == 'error' || $phoneStatus != 'error' && $agreeStatus == 'error'): ?> autofocus="autofocus" <?php endif; ?>>
</div>
<?php if ($nameMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $nameStatus; ?>">
......@@ -37,11 +49,6 @@ if ( ! defined( 'WPINC' ) ) die;
<?php endif; ?>
</div><!-- .c-form--row -->
<?php
$phoneValue = $_SESSION['employees--phone-value'];
$phoneStatus = $_SESSION['employees--phone-status'];
$phoneMessage = $_SESSION['employees--phone-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-phone"><?php _e('Phone no.', 'biuro-contacts'); ?></label>
<div class="c-form--input-wrap <?php if ($phoneStatus) { echo "c-form--input-wrap--$phoneStatus"; } ?>">
......@@ -54,11 +61,6 @@ if ( ! defined( 'WPINC' ) ) die;
<?php endif; ?>
</div><!-- .c-form--row -->
<?php
$emailValue = $_SESSION['employees--email-value'];
$emailStatus = $_SESSION['employees--email-status'];
$emailMessage = $_SESSION['employees--email-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-email"><?php _e('Email address', 'biuro-contacts'); ?></label>
<div class="c-form--input-wrap <?php if ($emailStatus) { echo "c-form--input-wrap--$emailStatus"; } ?>">
......@@ -77,11 +79,6 @@ if ( ! defined( 'WPINC' ) ) die;
</div>
</div><!-- .c-form--row -->
<?php
$agreeValue = $_SESSION['employees--agree-value'];
$agreeStatus = $_SESSION['employees--agree-status'];
$agreeMessage = $_SESSION['employees--agree-message'];
?>
<div class="c-form--row">
<div class="c-form--checkbox-wrap">
<input id="form-agree" type="checkbox" class="c-form--checkbox <?php if ($agreeStatus) { echo "c-form--checkbox--$agreeStatus"; } ?>" name="agree" value="1" <?php if ($agreeValue): ?> checked="checked"<?php endif; ?>>
......
......@@ -24,11 +24,23 @@ if ( ! defined( 'WPINC' ) ) die;
$nameValue = $_SESSION['employers--name-value'];
$nameStatus = $_SESSION['employers--name-status'];
$nameMessage = $_SESSION['employers--name-message'];
$phoneValue = $_SESSION['employers--phone-value'];
$phoneStatus = $_SESSION['employers--phone-status'];
$phoneMessage = $_SESSION['employers--phone-message'];
$emailValue = $_SESSION['employers--email-value'];
$emailStatus = $_SESSION['employers--email-status'];
$emailMessage = $_SESSION['employers--email-message'];
$agreeValue = $_SESSION['employers--agree-value'];
$agreeStatus = $_SESSION['employers--agree-status'];
$agreeMessage = $_SESSION['employers--agree-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-name"><?php _e('Name, surname', 'biuro-contacts'); ?></label>
<div class="c-form--input-wrap <?php if ($nameStatus) { echo "c-form--input-wrap--$nameStatus"; } ?>">
<input type="text" class="c-form--input" id="form-name" name="name" value="<?php echo $nameValue; ?>" <?php if ($nameStatus == 'error'): ?> autofocus="autofocus" <?php endif; ?>>
<input type="text" class="c-form--input" id="form-name" name="name" value="<?php echo $nameValue; ?>" <?php if ($nameStatus == 'error' || $phoneStatus != 'error' && $agreeStatus == 'error'): ?> autofocus="autofocus" <?php endif; ?>>
</div>
<?php if ($nameMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $nameStatus; ?>">
......@@ -37,11 +49,6 @@ if ( ! defined( 'WPINC' ) ) die;
<?php endif; ?>
</div><!-- .c-form--row -->
<?php
$phoneValue = $_SESSION['employers--phone-value'];
$phoneStatus = $_SESSION['employers--phone-status'];
$phoneMessage = $_SESSION['employers--phone-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-phone"><?php _e('Phone no.', 'biuro-contacts'); ?></label>
<div class="c-form--input-wrap <?php if ($phoneStatus) { echo "c-form--input-wrap--$phoneStatus"; } ?>">
......@@ -54,11 +61,6 @@ if ( ! defined( 'WPINC' ) ) die;
<?php endif; ?>
</div><!-- .c-form--row -->
<?php
$emailValue = $_SESSION['employers--email-value'];
$emailStatus = $_SESSION['employers--email-status'];
$emailMessage = $_SESSION['employers--email-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-email"><?php _e('Email address', 'biuro-contacts'); ?></label>
<div class="c-form--input-wrap <?php if ($emailStatus) { echo "c-form--input-wrap--$emailStatus"; } ?>">
......@@ -77,11 +79,6 @@ if ( ! defined( 'WPINC' ) ) die;
</div>
</div><!-- .c-form--row -->
<?php
$agreeValue = $_SESSION['employers--agree-value'];
$agreeStatus = $_SESSION['employers--agree-status'];
$agreeMessage = $_SESSION['employers--agree-message'];
?>
<div class="c-form--row">
<div class="c-form--checkbox-wrap">
<input id="form-agree" type="checkbox" class="c-form--checkbox <?php if ($agreeStatus) { echo "c-form--checkbox--$agreeStatus"; } ?>" name="agree" value="1" <?php if ($agreeValue): ?> checked="checked"<?php endif; ?>>
......
......@@ -35,6 +35,16 @@ if ( ! defined( 'WPINC' ) ) die;
$emailStatus = $_SESSION['position--email-status'];
$emailMessage = $_SESSION['position--email-message'];
$agreeValue = $_SESSION['position--agree-value'];
$agreeStatus = $_SESSION['position--agree-status'];
$agreeMessage = $_SESSION['position--agree-message'];
$cvValue = $_SESSION['position--cv-value'];
$cityValue = $_SESSION['position--city-value'];
$cityIDValue = $_SESSION['position--city_id-value'];
$messageValue = $_SESSION['position--message-value'];
$confirmValue = $_SESSION['position--confirm-value'];
if(is_numeric($_SESSION['employees--id']) && $_SESSION['position--s'] === 1) {
$employeeData = Biuro_Contacts_Public::fetchRow($_SESSION['employees--id']);
......@@ -87,14 +97,14 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-form--row">
<label class="c-form--label" for="form-city"><?php _e('City', 'biuro-contacts'); ?></label>
<div class="c-form--input-wrap">
<input type="text" class="c-form--input" id="form-city" name="city" value="">
<input type="text" class="c-form--input" id="form-city" name="city" value="<?php echo $cityValue; ?>">
</div>
</div><!-- .c-form--row -->
<div class="c-form--row">
<label class="c-form--label" for="form-message"><?php _e('Message', 'biuro-contacts'); ?></label>
<div class="c-form--textarea-wrap">
<textarea name="message" id="form-message" cols="30" rows="3" class="c-form--textarea"></textarea>
<textarea name="message" id="form-message" cols="30" rows="3" class="c-form--textarea"><?php echo $messageValue; ?></textarea>
</div>
</div><!-- .c-form--row -->
......@@ -105,11 +115,6 @@ if ( ! defined( 'WPINC' ) ) die;
</div>
</div><!-- .c-form--row -->
<?php
$agreeValue = $_SESSION['position--agree-value'];
$agreeStatus = $_SESSION['position--agree-status'];
$agreeMessage = $_SESSION['position--agree-message'];
?>
<div class="c-form--row">
<div class="c-form--checkbox-wrap">
<input id="form-agree" type="checkbox" class="c-form--checkbox <?php if ($agreeStatus) { echo "c-form--checkbox--$agreeStatus"; } ?>" name="agree" value="1" <?php if ($agreeValue): ?> checked="checked"<?php endif; ?>>
......@@ -124,7 +129,7 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-form--row">
<div class="c-form--checkbox-wrap">
<input id="form-confirm" type="checkbox" class="c-form--checkbox" name="confirm" value="1">
<input id="form-confirm" type="checkbox" class="c-form--checkbox" name="confirm" value="1" <?php if ($confirmValue): ?> checked="checked"<?php endif; ?>>
<label class="c-form--label-checkbox" for="form-confirm"><?php _e('Noster apster lorem ipsum dolor sit amet, consectetur adipisicing elit?', 'biuro-contacts'); ?></label>
</div>
</div><!-- .c-form--row -->
......
......@@ -4,7 +4,9 @@
.c-divisions { display: flex; flex-wrap: wrap; }
.c-division { flex: 0 0 auto; height: 30px; margin: 0 10px 10px 0; padding: 0 20px; border-radius: 3px; background-color: #E8F0FF; color: #004ED4; font-weight: 500; line-height: 30px; white-space: nowrap; text-decoration: none; }
.c-division { flex: 0 0 auto; height: 30px; margin: 0 10px 10px 0; padding: 0 20px; border-radius: 3px; background-color: #E8F0FF; color: #004ED4; font-weight: 500; line-height: 30px; white-space: nowrap; text-decoration: none; cursor: pointer;
&:hover { background-color: #DDE6F5; }
}
/*a.c-division { color: #004ED4; }*/
......
:root{--color--gray:#7e8683;--color--gray-darker:#2a3644;--color--green:#1fb299;--color--green-darker:#149a83;--color--green-dark:#006957;--color--blue-dark:#1d2a3a;--color--gray-light:#f8f8f8;--typo--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Light","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--typo--font-size:1.5rem;--typo--weight-regular:400;--typo--weight-bold:700;--typo--line-height:1.2;--typo--font-face:"Roboto",sans-serif;--layout-width:1210px;--layout-width--small:870px;--layout-width--large:1150px}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}a{color:inherit}body{font-size:1.5rem;font-size:var(--typo--font-size);line-height:1.2;line-height:var(--typo--line-height);color:#2a3644;color:var(--color--gray-darker);font-family:Roboto,sans-serif;font-family:var(--typo--font-face);background:#f8f8f8;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:100vh;padding-top:117px}html{min-height:100%;font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}.l-inner{max-width:1210px;max-width:var(--layout-width);margin-right:auto;margin-left:auto;padding-right:20px;padding-left:20px}.c-jobs--inner,.c-services,.c-trust--inner,.c-values--inner,.l-inner-small{max-width:870px;max-width:var(--layout-width--small);margin-right:auto;margin-left:auto;padding-right:20px;padding-left:20px}.l-header{position:relative;height:70px;margin-bottom:47px;background:#fff}.l-header:before{content:"";position:absolute;top:100%;left:0;width:100%;height:47px;background:#1d2a3a;background:var(--color--blue-dark)}.l-header{position:fixed;top:0;left:0;width:100%;z-index:300}.l-content{max-width:1150px;max-width:var(--layout-width--large);padding-right:20px;padding-left:20px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex}.l-content--position{position:relative;padding:40px 20px}.l-content--position:before{content:"";position:absolute;top:0;left:0;height:244px;width:100%;background:linear-gradient(358.45deg,#3c7e9e,#1fb299)}.l-content--position-inner{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;max-width:970px;margin:0 auto 140px;border-radius:3px;background-color:#fff;-webkit-box-shadow:0 1px 47px 0 #ecf5ff;box-shadow:0 1px 47px 0 #ecf5ff}.l-content--position-inner .l-main{padding:70px 55px 40px 57px}.l-content--heading{display:block;padding-top:40px;padding-bottom:25px}.l-content--heading h1{margin:0;padding:0;color:#2a3644;font-size:25px;font-weight:500;line-height:29px}.l-content--main{width:100%;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;max-width:1070px;padding:35px 20px 90px;margin:0 auto}.l-content--main h1{color:#2a3644;font-size:25px;font-weight:500;line-height:38px}.l-content--main h2{color:#2a3644;font-size:21px;font-weight:500;line-height:30px}.l-content--divisions,.l-content--regions{width:100%;max-width:1040px;padding-right:20px;padding-left:20px;margin:0 auto 200px;display:-webkit-box;display:-ms-flexbox;display:flex}.l-aside--position{background-color:#f6f9ff}.l-aside--divisions,.l-aside--regions{-webkit-box-flex:0;-ms-flex:0 0 385px;flex:0 0 385px;margin:-315px 0 0 55px;z-index:50}.l-main{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%}.l-main--content{background-color:#fff;padding:40px 50px}.l-main--divisions,.l-main--regions{-webkit-box-flex:0;-ms-flex:0 0 600px;flex:0 0 600px}.l-footer{background:#1d2a3a;background:var(--color--blue-dark);color:#fff;padding-top:70px}.l-map{height:330px;margin-bottom:35px}.l-section{padding:30px 0;background:#111d1e url(/wp-content/themes/biuro/i/search-page.png) no-repeat 50% 50%;background-size:cover}.l-section--front-page{height:380px;background:url(/wp-content/themes/biuro/i/front-page.png) no-repeat 50% 50%;background-size:cover;margin-bottom:92px}.l-section--front-page .l-section--inner{width:870px;padding-right:20px;padding-left:20px}.l-section--sales-page{height:380px;background:url(/wp-content/themes/biuro/i/sales-page.png) no-repeat 50% 50%;background-size:cover}.l-section--sales-page .l-section--inner{width:870px;padding-right:20px;padding-left:20px}.l-section--inner{width:1030px;margin:0 auto}.o-btn{display:inline-block;border:0;padding:12px 24px 11px;cursor:pointer;border-radius:3px;font-weight:500;text-decoration:none;font-family:inherit}.o-nav{margin:0;padding:0;list-style:none}.c-btn--header{margin-right:28px;font-size:14px;font-weight:500}.c-btn--main{color:#fff;background:#1fb299;background:var(--color--green)}.c-btn--main:hover{background:#149a83;background:var(--color--green-darker)}.c-btn--alt{padding:10px 15px;background:#e8f0ff;color:#004ed4}.c-btn--alt:after{float:right;margin:6px 0 0 35px;content:"";width:7px;height:7px;border:1px solid #004ed4;border-width:2px 2px 0 0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.c-btn--alt:hover{background-color:#dde6f5}.c-btn--fill{width:100%}.c-btn--search{min-width:180px;border-radius:0 3px 3px 0;text-align:center}.c-btn--search-small{margin:9px;min-width:133px;text-align:center}.c-btn--slim{color:#14a28a;background:none;font-weight:500;text-align:center;border:2px solid #1fb299;border-radius:3px}.c-btn--slim:hover{border-color:#149a83;border-color:var(--color--green-darker);color:#149a83;color:var(--color--green-darker)}.c-cookies-warning{display:none}.c-contact{padding:50px 0}.c-contact--inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-width:980px;margin:0 auto}.c-contact--content{-webkit-box-flex:1;-ms-flex:1 1 40%;flex:1 1 40%;max-width:500px;color:#2a3644;font-weight:500;line-height:29px;padding:75px 0 0 90px}.c-contact--content h3{margin:0 0 15px;font-size:25px;color:#2a3644;font-weight:500}.c-contact--content p{margin:0 0 20px}.c-contact--form{-webkit-box-flex:1;-ms-flex:1 1 40%;flex:1 1 40%;max-width:420px}.c-data-controller{margin-bottom:35px;padding:15px 0 10px;text-align:center;font-size:13px;line-height:1;font-weight:300}.c-data-controller p{margin:0 0 10px}.c-divisions{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.c-division{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;height:30px;margin:0 10px 10px 0;padding:0 20px;border-radius:3px;background-color:#e8f0ff;color:#004ed4;font-weight:500;line-height:30px;white-space:nowrap;text-decoration:none}.c-feedbacks{padding:50px 0 70px;background:linear-gradient(134.06deg,#fff,#cbe2ec)}.c-feedbacks--inner{position:relative;overflow:hidden;width:640px;height:300px;margin:0 auto}.c-feedbacks--heading{color:#2a3644;margin:0 0 40px;padding:0;font-size:25px;font-weight:500;line-height:29px;text-align:center}.c-feedbacks--section{padding-top:40px}.c-feedbacks--section-inner{position:relative;height:140px;width:574px;margin:0 auto;padding:68px 0 0;border-radius:23px;background-color:#fff}.c-footer-separator{margin-bottom:25px;border-color:#fff;border-width:2px 0 0;opacity:.29}.c-form--employees,.c-form--employers,.c-form--position{padding:38px 35px 20px;border-radius:3px;background-color:#fff;-webkit-box-shadow:0 1px 31px -23px #6a7481;box-shadow:0 1px 31px -23px #6a7481}.c-form--position{margin:-40px -15px 0}.c-form--row{position:relative;margin-bottom:20px}.c-form--label{display:block;color:#2a3644;font-size:15px;line-height:18px;margin-bottom:4px;font-weight:500}.c-form--input{width:100%;padding:10px;background:none;border:1px solid #d4d4d4;border-radius:3px}.c-form--input:focus{border-color:#d4d4d4!important}.c-form--textarea{width:100%;padding:10px;background:none;border:1px solid #d4d4d4;border-radius:3px}.c-form--textarea:focus{border-color:#d4d4d4!important}.c-form--submit-wrap{padding:10px 0}.c-form--checkbox-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.c-form--checkbox{position:absolute;top:0;left:-9999px;visibility:hidden}.c-form--checkbox:checked+label:before{border-color:#d4d4d4}.c-form--checkbox:checked+label:after{content:"✔"}.c-form--label-checkbox{position:relative;margin:0 0 0 31px;color:#868f98;font-size:12px;line-height:17px}.c-form--label-checkbox:before{content:"";position:absolute;top:0;left:-31px;height:18px;width:18px;border:1px solid #d4d4d4;border-radius:3px;cursor:pointer}.c-form--label-checkbox:after{content:"";position:absolute;top:-2px;left:-28px;width:20px;height:20px;border-radius:3px;color:#1fb299;color:var(--color--green);font-size:22px;cursor:pointer}.c-heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.c-heading h1{margin:0 0 18px;padding:0;color:#2a3644;font-size:34px;font-weight:700;line-height:51px}.c-heading--front-page,.c-heading--sales-page{height:320px}.c-ico--search{margin:0 3px -3px 0}.c-ico--location{left:18px}.c-ico--area,.c-ico--location{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin-top:-1px}.c-ico--area{left:14px}.c-ico--phone{float:left;margin:3px 10px 0 1px}.c-ico--email{float:left;margin:6px 10px 0 0}.c-ico--address{float:left;margin:3px 12px 0 3px}.c-jobs--headline{min-height:29px;margin:0 0 25px;padding:20px 20px 0;color:#2a3644;font-size:25px;font-weight:500;line-height:29px}.c-logo{width:81px;margin-right:89px;padding:11px 0;text-decoration:none}.c-logo,.c-logo--svg{display:block}.c-modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(42,54,68,.86);z-index:8000}.c-modal--inner{position:absolute;top:50%;left:50%;max-width:94%;width:606px;height:314px;padding:56px 20px 20px;background-color:#fff;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center}.c-modal--inner svg{display:block;margin:0 auto 23px}.c-modal--inner p{margin-bottom:20px}.c-modal--inner .c-btn--main{min-width:208px}.c-nav--main{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px}.c-nav--sub{display:none}.c-phone{white-space:nowrap;margin-right:35px;padding:12px 0 10px;text-decoration:none;color:inherit;font-weight:500;font-size:14px}.c-phone svg{float:left;margin:-6px 5px 0 0}.c-search{display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;background-color:#fff;border-radius:3px}.c-search--col{position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;background-color:#fff}.c-search--col .awesomplete{position:absolute;top:0;right:0;left:0;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.c-search--col ul{top:60px;padding-top:10px}.c-search--col li{padding:10px 15px;margin-bottom:10px;cursor:pointer}.c-search--col li:hover{color:#000}.c-search--col-location{border-right:1px solid rgba(178,182,187,.46);border-radius:3px 0 0 3px}.c-search--input{border:0;padding:0 10px 0 44px;margin:0;height:60px;line-height:60px;background:none}.c-search--input:focus{outline:none}.l-section--front-page .c-search{height:70px;-webkit-box-shadow:6px 10px 48px 0 #d4dbe4;box-shadow:6px 10px 48px 0 #d4dbe4}.l-section--front-page .c-search--input{height:70px;line-height:70px}.c-trust{background:linear-gradient(134.06deg,#70b7d5,#7bcbcf)}.c-trust--inner{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:64px;padding-bottom:64px}.c-trust--heading{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;margin:0;color:#fff}.c-trust--logos{-webkit-box-flex:10;-ms-flex:10 1 auto;flex:10 1 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.c-values{background:linear-gradient(138.69deg,#4eacd9,#2fb8a1);color:#fff}.c-values--inner{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding-top:60px;padding-bottom:40px}.u-fill--inherit{fill:currentColor}.u-hidden{display:none}@media (min-width:48em){.l-content--heading{padding-left:320px}.l-aside{-webkit-box-flex:0;-ms-flex:0 0 280px;flex:0 0 280px}.l-aside--position{-webkit-box-flex:0;-ms-flex:0 0 400px;flex:0 0 400px;padding:70px 40px}.l-nav{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}}
\ No newline at end of file
:root{--color--gray:#7e8683;--color--gray-darker:#2a3644;--color--green:#1fb299;--color--green-darker:#149a83;--color--green-dark:#006957;--color--blue-dark:#1d2a3a;--color--gray-light:#f8f8f8;--typo--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Light","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--typo--font-size:1.5rem;--typo--weight-regular:400;--typo--weight-bold:700;--typo--line-height:1.2;--typo--font-face:"Roboto",sans-serif;--layout-width:1210px;--layout-width--small:870px;--layout-width--large:1150px}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}a{color:inherit}body{font-size:1.5rem;font-size:var(--typo--font-size);line-height:1.2;line-height:var(--typo--line-height);color:#2a3644;color:var(--color--gray-darker);font-family:Roboto,sans-serif;font-family:var(--typo--font-face);background:#f8f8f8;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:100vh;padding-top:117px}html{min-height:100%;font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}.l-inner{max-width:1210px;max-width:var(--layout-width);margin-right:auto;margin-left:auto;padding-right:20px;padding-left:20px}.c-jobs--inner,.c-services,.c-trust--inner,.c-values--inner,.l-inner-small{max-width:870px;max-width:var(--layout-width--small);margin-right:auto;margin-left:auto;padding-right:20px;padding-left:20px}.l-header{position:relative;height:70px;margin-bottom:47px;background:#fff}.l-header:before{content:"";position:absolute;top:100%;left:0;width:100%;height:47px;background:#1d2a3a;background:var(--color--blue-dark)}.l-header{position:fixed;top:0;left:0;width:100%;z-index:300}.l-content{max-width:1150px;max-width:var(--layout-width--large);padding-right:20px;padding-left:20px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex}.l-content--position{position:relative;padding:40px 20px}.l-content--position:before{content:"";position:absolute;top:0;left:0;height:244px;width:100%;background:linear-gradient(358.45deg,#3c7e9e,#1fb299)}.l-content--position-inner{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;max-width:970px;margin:0 auto 140px;border-radius:3px;background-color:#fff;-webkit-box-shadow:0 1px 47px 0 #ecf5ff;box-shadow:0 1px 47px 0 #ecf5ff}.l-content--position-inner .l-main{padding:70px 55px 40px 57px}.l-content--heading{display:block;padding-top:40px;padding-bottom:25px}.l-content--heading h1{margin:0;padding:0;color:#2a3644;font-size:25px;font-weight:500;line-height:29px}.l-content--main{width:100%;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;max-width:1070px;padding:35px 20px 90px;margin:0 auto}.l-content--main h1{color:#2a3644;font-size:25px;font-weight:500;line-height:38px}.l-content--main h2{color:#2a3644;font-size:21px;font-weight:500;line-height:30px}.l-content--divisions,.l-content--regions{width:100%;max-width:1040px;padding-right:20px;padding-left:20px;margin:0 auto 200px;display:-webkit-box;display:-ms-flexbox;display:flex}.l-aside--position{background-color:#f6f9ff}.l-aside--divisions,.l-aside--regions{-webkit-box-flex:0;-ms-flex:0 0 385px;flex:0 0 385px;margin:-315px 0 0 55px;z-index:50}.l-main{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%}.l-main--content{background-color:#fff;padding:40px 50px}.l-main--divisions,.l-main--regions{-webkit-box-flex:0;-ms-flex:0 0 600px;flex:0 0 600px}.l-footer{background:#1d2a3a;background:var(--color--blue-dark);color:#fff;padding-top:70px}.l-map{height:330px;margin-bottom:35px}.l-section{padding:30px 0;background:#111d1e url(/wp-content/themes/biuro/i/search-page.png) no-repeat 50% 50%;background-size:cover}.l-section--front-page{height:380px;background:url(/wp-content/themes/biuro/i/front-page.png) no-repeat 50% 50%;background-size:cover;margin-bottom:92px}.l-section--front-page .l-section--inner{width:870px;padding-right:20px;padding-left:20px}.l-section--sales-page{height:380px;background:url(/wp-content/themes/biuro/i/sales-page.png) no-repeat 50% 50%;background-size:cover}.l-section--sales-page .l-section--inner{width:870px;padding-right:20px;padding-left:20px}.l-section--inner{width:1030px;margin:0 auto}.o-btn{display:inline-block;border:0;padding:12px 24px 11px;cursor:pointer;border-radius:3px;font-weight:500;text-decoration:none;font-family:inherit}.o-nav{margin:0;padding:0;list-style:none}.c-btn--header{margin-right:28px;font-size:14px;font-weight:500}.c-btn--main{color:#fff;background:#1fb299;background:var(--color--green)}.c-btn--main:hover{background:#149a83;background:var(--color--green-darker)}.c-btn--alt{padding:10px 15px;background:#e8f0ff;color:#004ed4}.c-btn--alt:after{float:right;margin:6px 0 0 35px;content:"";width:7px;height:7px;border:1px solid #004ed4;border-width:2px 2px 0 0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.c-btn--alt:hover{background-color:#dde6f5}.c-btn--fill{width:100%}.c-btn--search{min-width:180px;border-radius:0 3px 3px 0;text-align:center}.c-btn--search-small{margin:9px;min-width:133px;text-align:center}.c-btn--slim{color:#14a28a;background:none;font-weight:500;text-align:center;border:2px solid #1fb299;border-radius:3px}.c-btn--slim:hover{border-color:#149a83;border-color:var(--color--green-darker);color:#149a83;color:var(--color--green-darker)}.c-cookies-warning{display:none}.c-contact{padding:50px 0}.c-contact--inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-width:980px;margin:0 auto}.c-contact--content{-webkit-box-flex:1;-ms-flex:1 1 40%;flex:1 1 40%;max-width:500px;color:#2a3644;font-weight:500;line-height:29px;padding:75px 0 0 90px}.c-contact--content h3{margin:0 0 15px;font-size:25px;color:#2a3644;font-weight:500}.c-contact--content p{margin:0 0 20px}.c-contact--form{-webkit-box-flex:1;-ms-flex:1 1 40%;flex:1 1 40%;max-width:420px}.c-data-controller{margin-bottom:35px;padding:15px 0 10px;text-align:center;font-size:13px;line-height:1;font-weight:300}.c-data-controller p{margin:0 0 10px}.c-divisions{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.c-division{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;height:30px;margin:0 10px 10px 0;padding:0 20px;border-radius:3px;background-color:#e8f0ff;color:#004ed4;font-weight:500;line-height:30px;white-space:nowrap;text-decoration:none;cursor:pointer}.c-division:hover{background-color:#dde6f5}.c-feedbacks{padding:50px 0 70px;background:linear-gradient(134.06deg,#fff,#cbe2ec)}.c-feedbacks--inner{position:relative;overflow:hidden;width:640px;height:300px;margin:0 auto}.c-feedbacks--heading{color:#2a3644;margin:0 0 40px;padding:0;font-size:25px;font-weight:500;line-height:29px;text-align:center}.c-feedbacks--section{padding-top:40px}.c-feedbacks--section-inner{position:relative;height:140px;width:574px;margin:0 auto;padding:68px 0 0;border-radius:23px;background-color:#fff}.c-footer-separator{margin-bottom:25px;border-color:#fff;border-width:2px 0 0;opacity:.29}.c-form--employees,.c-form--employers,.c-form--position{padding:38px 35px 20px;border-radius:3px;background-color:#fff;-webkit-box-shadow:0 1px 31px -23px #6a7481;box-shadow:0 1px 31px -23px #6a7481}.c-form--position{margin:-40px -15px 0}.c-form--row{position:relative;margin-bottom:20px}.c-form--label{display:block;color:#2a3644;font-size:15px;line-height:18px;margin-bottom:4px;font-weight:500}.c-form--input{width:100%;padding:10px;background:none;border:1px solid #d4d4d4;border-radius:3px}.c-form--input:focus{border-color:#d4d4d4!important}.c-form--textarea{width:100%;padding:10px;background:none;border:1px solid #d4d4d4;border-radius:3px}.c-form--textarea:focus{border-color:#d4d4d4!important}.c-form--submit-wrap{padding:10px 0}.c-form--checkbox-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.c-form--checkbox{position:absolute;top:0;left:-9999px;visibility:hidden}.c-form--checkbox:checked+label:before{border-color:#d4d4d4}.c-form--checkbox:checked+label:after{content:"✔"}.c-form--label-checkbox{position:relative;margin:0 0 0 31px;color:#868f98;font-size:12px;line-height:17px}.c-form--label-checkbox:before{content:"";position:absolute;top:0;left:-31px;height:18px;width:18px;border:1px solid #d4d4d4;border-radius:3px;cursor:pointer}.c-form--label-checkbox:after{content:"";position:absolute;top:-2px;left:-28px;width:20px;height:20px;border-radius:3px;color:#1fb299;color:var(--color--green);font-size:22px;cursor:pointer}.c-heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.c-heading h1{margin:0 0 18px;padding:0;color:#2a3644;font-size:34px;font-weight:700;line-height:51px}.c-heading--front-page,.c-heading--sales-page{height:320px}.c-ico--search{margin:0 3px -3px 0}.c-ico--location{left:18px}.c-ico--area,.c-ico--location{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin-top:-1px}.c-ico--area{left:14px}.c-ico--phone{float:left;margin:3px 10px 0 1px}.c-ico--email{float:left;margin:6px 10px 0 0}.c-ico--address{float:left;margin:3px 12px 0 3px}.c-jobs--headline{min-height:29px;margin:0 0 25px;padding:20px 20px 0;color:#2a3644;font-size:25px;font-weight:500;line-height:29px}.c-logo{width:81px;margin-right:89px;padding:11px 0;text-decoration:none}.c-logo,.c-logo--svg{display:block}.c-modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(42,54,68,.86);z-index:8000}.c-modal--inner{position:absolute;top:50%;left:50%;max-width:94%;width:606px;height:314px;padding:56px 20px 20px;background-color:#fff;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center}.c-modal--inner svg{display:block;margin:0 auto 23px}.c-modal--inner p{margin-bottom:20px}.c-modal--inner .c-btn--main{min-width:208px}.c-nav--main{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px}.c-nav--sub{display:none}.c-phone{white-space:nowrap;margin-right:35px;padding:12px 0 10px;text-decoration:none;color:inherit;font-weight:500;font-size:14px}.c-phone svg{float:left;margin:-6px 5px 0 0}.c-search{display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;background-color:#fff;border-radius:3px}.c-search--col{position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;background-color:#fff}.c-search--col .awesomplete{position:absolute;top:0;right:0;left:0;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.c-search--col ul{top:60px;padding-top:10px}.c-search--col li{padding:10px 15px;margin-bottom:10px;cursor:pointer}.c-search--col li:hover{color:#000}.c-search--col-location{border-right:1px solid rgba(178,182,187,.46);border-radius:3px 0 0 3px}.c-search--input{border:0;padding:0 10px 0 44px;margin:0;height:60px;line-height:60px;background:none}.c-search--input:focus{outline:none}.l-section--front-page .c-search{height:70px;-webkit-box-shadow:6px 10px 48px 0 #d4dbe4;box-shadow:6px 10px 48px 0 #d4dbe4}.l-section--front-page .c-search--input{height:70px;line-height:70px}.c-trust{background:linear-gradient(134.06deg,#70b7d5,#7bcbcf)}.c-trust--inner{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:64px;padding-bottom:64px}.c-trust--heading{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;margin:0;color:#fff}.c-trust--logos{-webkit-box-flex:10;-ms-flex:10 1 auto;flex:10 1 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.c-values{background:linear-gradient(138.69deg,#4eacd9,#2fb8a1);color:#fff}.c-values--inner{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding-top:60px;padding-bottom:40px}.u-fill--inherit{fill:currentColor}.u-hidden{display:none}@media (min-width:48em){.l-content--heading{padding-left:320px}.l-aside{-webkit-box-flex:0;-ms-flex:0 0 280px;flex:0 0 280px}.l-aside--position{-webkit-box-flex:0;-ms-flex:0 0 400px;flex:0 0 400px;padding:70px 40px}.l-nav{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}}
\ No newline at end of file
......@@ -66,6 +66,9 @@
dynamic_sidebar( 'append_area' );
endif;
?>
<script>
!function(n){"use strict";n.loadCSS||(n.loadCSS=function(){});var o=loadCSS.relpreload={};if(o.support=function(){var e;try{e=n.document.createElement("link").relList.supports("preload")}catch(t){e=!1}return function(){return e}}(),o.bindMediaToggle=function(t){var e=t.media||"all";function a(){t.addEventListener?t.removeEventListener("load",a):t.attachEvent&&t.detachEvent("onload",a),t.setAttribute("onload",null),t.media=e}t.addEventListener?t.addEventListener("load",a):t.attachEvent&&t.attachEvent("onload",a),setTimeout(function(){t.rel="stylesheet",t.media="only x"}),setTimeout(a,3e3)},o.poly=function(){if(!o.support())for(var t=n.document.getElementsByTagName("link"),e=0;e<t.length;e++){var a=t[e];"preload"!==a.rel||"style"!==a.getAttribute("as")||a.getAttribute("data-loadcss")||(a.setAttribute("data-loadcss",!0),o.bindMediaToggle(a))}},!o.support()){o.poly();var t=n.setInterval(o.poly,500);n.addEventListener?n.addEventListener("load",function(){o.poly(),n.clearInterval(t)}):n.attachEvent&&n.attachEvent("onload",function(){o.poly(),n.clearInterval(t)})}"undefined"!=typeof exports?exports.loadCSS=loadCSS:n.loadCSS=loadCSS}("undefined"!=typeof global?global:this);
</script>
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-THF42F"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
......@@ -76,7 +79,7 @@
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-THF42F');</script>
<script src="/wp-content/themes/biuro/js/main-7a54fac0.min.js" async></script>
<script src="/wp-content/themes/biuro/js/main-166a52d0.min.js" async></script>
<?php wp_footer(); ?>
</body>
</html>
......@@ -538,3 +538,17 @@ add_action( 'rest_api_init', function () {
));
});
function setup_mailer( PHPMailer $phpmailer ) {
$phpmailer->Host = 'smtp.office365.com';
$phpmailer->Port = 587; // could be different
$phpmailer->Username = 'no-reply@biuro.lt'; // if required
$phpmailer->Password = 'Fubu7972'; // if required
$phpmailer->SMTPAuth = true; // if required
$phpmailer->SMTPSecure = 'tls'; // enable if required, 'tls' is another possible value
$phpmailer->CharSet = 'UTF-8';
$phpmailer->IsSMTP();
}
add_action( 'phpmailer_init', 'setup_mailer' );
......@@ -32,7 +32,7 @@ define('cityID', $cityID);
?>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<style><?php include 'css/core-8f41b1f6cc.min.css'; ?></style>
<style><?php include 'css/core-bde31b4cd1.min.css'; ?></style>
<link rel="preload" href="/wp-content/themes/biuro/css/main-10660ecc9b.min.css" as="style" onload="this.rel='stylesheet'">
......@@ -113,14 +113,43 @@ global $post;
</svg> +370 649 02392
</a>
<?php
// employees-contacts
if ( get_post_meta( $post->ID, 'section', true) == 'employers'):
$contactsPage = new WP_Query( array(
'numberposts' => 1,
'post_type' => 'page',
'meta_key' => 'page',
'meta_value' => 'employers-contacts'
) );
if ( $contactsPage->have_posts() ) :
while( $contactsPage->have_posts() ) :
$contactsPage->the_post();
?>
<a href="/darbdaviams/kontaktai-darbdaviams/" class="o-btn c-btn--main c-btn--header"><?php _e('Get an offer', 'biuro'); ?></a> <!-- Gaukite pasiūlymą -->
<?php
<a href="<?php echo get_the_permalink(); ?>" class="o-btn c-btn--main c-btn--header"><?php _e('Get an offer', 'biuro'); ?></a>
<?php
endwhile;
endif;
else:
$contactsPage = new WP_Query( array(
'numberposts' => 1,
'post_type' => 'page',
'meta_key' => 'page',
'meta_value' => 'employees-contacts'
) );
if ( $contactsPage->have_posts() ) :
while( $contactsPage->have_posts() ) :
$contactsPage->the_post();
?>
<a href="/darbuotojams/kontaktai/" class="o-btn c-btn--main c-btn--header"><?php _e('Get a job offer', 'biuro'); ?></a> <!-- Gaukite darbo pasiūlymą -->
<?php
<a href="<?php echo get_the_permalink(); ?>" class="o-btn c-btn--main c-btn--header"><?php _e('Get a job offer', 'biuro'); ?></a>
<?php
endwhile;
endif;
endif;
?>
<div class="c-nav--lang-wrap">
......
......@@ -185,19 +185,24 @@ function initDivisionsMap (node, data) {
let divisions = [];
const region = document.querySelector('.js-active-region');
const ID = (region && region.dataset.id) ? region.dataset.id : '';
if (data[ID]) {
divisions = data[ID];
} else {
Object.keys(data).forEach((key) => {
const division = data[key];
if (key.substr(0, 4) === 'city') {
divisions = divisions.concat(division);
}
});
document.querySelectorAll('.js-division').forEach((node) => {
node.addEventListener('click', () => {
const ID = (node && node.dataset.id) ? node.dataset.id : '';
if (data[ID]) {
setMarkers(map, data[ID].filter((d) => { return d.lat && d.lng; }));
} else {
setMarkers(map, divisions.filter((d) => { return d.lat && d.lng; }));
}
});
});
setMarkers(map, divisions.filter((d) => { return d.lat && d.lng; }));
}
......
......@@ -49,12 +49,12 @@ get_header(); ?>
<div class="c-divisions">
<?php
if ( 1 < $divisions->total() ):
/*
$divisionsPage = new WP_Query( array(
'numberposts' => 1,
'post_type' => 'page',
'meta_key' => 'divisions-page',
'meta_value' => 'master'
'meta_key' => 'page',
'meta_value' => 'employees-contacts'
) );
if ( $divisionsPage->have_posts() ) :
......@@ -65,10 +65,13 @@ get_header(); ?>
<?php
endwhile;
else:
*/
?>
<span class="c-division"><?php _e('All', 'biuro'); ?></span>
<span class="js-division c-division"><?php _e('All', 'biuro'); ?></span>
<?php
/*
endif;
*/
wp_reset_query();
endif;
......@@ -77,6 +80,7 @@ get_header(); ?>
$slug = $divisions->display( 'city.slug' );
if ( !in_array($slug, $cities) && $divisions->display( 'name' ) ) :
/*
$page = $divisions->field( 'page-id' );
if ( !empty( $page ) ):
......@@ -84,11 +88,13 @@ get_header(); ?>
<a class="js-division c-division <?php if ( $pageID == $page['ID'] ) { echo 'c-division--active'; } ?>" data-id="<?php echo $slug; ?>" href="<?php echo esc_url( get_permalink( $page['ID'] ) ); ?>"><?php echo $divisions->display( 'city' ); ?></a>
<?php
else:
*/
?>
<span class="c-division"><?php echo $divisions->display( 'city' ); ?></span>
<span class="js-division c-division" data-id="<?php echo $slug; ?>"><?php echo $divisions->display( 'city' ); ?></span>
<?php
/*
endif;
*/
array_push($cities, $slug);
endif;
endwhile;
......
......@@ -42,6 +42,8 @@
<div class="c-share">
<p class="c-share--heading"><?php _e('Suggest a friend', 'biuro'); ?></p>
<div class="c-share--options">
<?php
/*
<a target="_blank" href="https://www.facebook.com/dialog/share?href=<?php echo $requestURL; ?>&redirect_uri=<?php echo $requestURL; ?>&app_id=483299728358858" class="c-share--option c-share--option-facebook">
<svg width="9px" height="18px" class="c-ico--share-facebook">
<use xlink:href="#ico--job-facebook"></use>
......@@ -52,6 +54,8 @@
<use xlink:href="#ico--job-messenger"></use>
</svg>
</a>
*/
?>
<a href="<?php echo $mailto; ?>" class="c-share--option c-share--option-email">
<svg width="17px" height="13px" class="c-ico--share-email">
<use xlink:href="#ico--job-email"></use>
......@@ -63,11 +67,15 @@
<use xlink:href="#ico--job-copy"></use>
</svg>
</a>
<?php
/*
<a href="https://wa.me/whatsappphonenumber/?text=<?php echo urlencode($pod->field( 'title' )); ?>" class="c-share--option c-share--option-phone">
<svg width="17px" height="18px" class="c-ico--share-whatsapp">
<use xlink:href="#ico--job-whatsapp"></use>
</svg>
</a>
*/
?>
</div>
</div>
......
......@@ -17,7 +17,7 @@
return true;
endif;
return ( get_post_meta( $childID, 'divisions-page', true ) && pods( 'division' )->find( array( 'limit' => 1, 'where'=>"page-id.ID = " . $ID ) )->total() ) ? true : false;
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 ):
......
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