Commit 057e6bc5 authored by Simon's avatar Simon

in progress

parent c2f7328c
......@@ -42,11 +42,13 @@ 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'],
];
const DB_NAMES = [
'employees' => ['name', 'phone', 'email'],
'employers' => ['name', 'phone', 'email'],
'position' => ['name', 'phone', 'email', 'city', 'city_id', 'message', 'confirm', 'job_id']
];
......@@ -144,9 +146,10 @@ class Biuro_Contacts_Public {
public static function validate( $str, $key, $value, $post ) {
$empty = ['status' => '', 'message' => ''];
$success = ['status' => 'success', 'message' => ''];
$required = ['status' => 'error', 'message' => 'This field is required'];
$required = ['status' => 'error', 'message' => __('This field is required', 'biuro')];
// if ($str == 'employees' || $str == 'position'):
if ($str == 'employees' || $str == 'position'):
switch($key) {
case 'name':
......@@ -156,7 +159,7 @@ class Biuro_Contacts_Public {
if (!$value && !is_email($post['email'])):
return [
'status' => 'error',
'message' => 'Phone or email field is required'
'message' => __('Phone or email field is required', 'biuro')
];
endif;
......@@ -167,7 +170,7 @@ class Biuro_Contacts_Public {
if ( strlen($value) < 6):
return [
'status' => 'error',
'message' => 'Incorrect phone number'
'message' => __('Incorrect phone number', 'biuro')
];
endif;
......@@ -177,14 +180,14 @@ class Biuro_Contacts_Public {
if (!$post['phone'] && !$value):
return [
'status' => 'error',
'message' => 'Email or phone field is required'
'message' => __('Email or phone field is required', 'biuro')
];
endif;
if (!$post['phone'] && !is_email($value)):
return [
'status' => 'error',
'message' => 'Email format is incorrect'
'message' => __('Email format is incorrect', 'biuro')
];
else:
......@@ -199,7 +202,7 @@ class Biuro_Contacts_Public {
if ($value != "1"):
return [
'status' => 'error',
'message' => 'You have to agree with conditions'
'message' => __('You have to agree with conditions', 'biuro')
];
endif;
......@@ -213,7 +216,7 @@ class Biuro_Contacts_Public {
return $empty;
}
endif;
// endif;
return $success;
}
......@@ -273,32 +276,6 @@ class Biuro_Contacts_Public {
endif;
}
/**
* Processes shortcode biuro-contacts--employers
*
* @param array $attr The attributes from the shortcode
*
* @return mixed $output Output of the buffer
*/
public function employers_form( $attr = array() ) {
$response = false;
ob_start();
if ( isset( $_POST['action-submit'] ) ) :
$response = true;
endif;
include_once('partials/biuro-contacts-public--employers.php');
$output = ob_get_contents();
ob_end_clean();
return $output;
} // employers_form()
/**
* Processes shortcode biuro-contacts--employees
*
......@@ -371,6 +348,115 @@ class Biuro_Contacts_Public {
exit;
}
/* --------------------------- employers ---------------------------
/**
* Processes shortcode biuro-contacts--employers
*
* @param array $attr The attributes from the shortcode
*
* @return mixed $output Output of the buffer
*/
public function employers_form( $attr = array() ) {
ob_start();
include_once('partials/biuro-contacts-public--employers.php');
$output = ob_get_contents();
ob_end_clean();
static::delete_sessions('employers');
return $output;
} // employers_form()
public function employers_post() {
$nonce = $_POST['_wpnonce'];
$referer = $_POST['_wp_http_referer'];
if ( !isset( $nonce ) || !wp_verify_nonce($nonce, 'employers_post_nonce' ) ) {
wp_redirect( $referer );
exit;
}
unset($_SESSION['employers--step']);
$str = 'employers';
if ($_POST['submit'] == "1"):
$canSubmit = true;
$data = [
'created' => current_time('Y-m-d H:i:s')
];
foreach (static::FIELDS[$str] as $key) {
$value = static::getValue($key, $_POST[$key]);
$validation = static::validate($str, $key, $value, $_POST);
if ($validation['status'] == 'error'):
$canSubmit = false;
endif;
if ( in_array($key, static::DB_NAMES[$str])):
$data[$key] = $value;
endif;
$_SESSION[$str . '--' . $key . '-value'] = $value;
$_SESSION[$str . '--' . $key . '-status'] = $validation['status'];
$_SESSION[$str . '--' . $key . '-message'] = $validation['message'];
}
if ($canSubmit):
// $insert_id = static::insert_row_to_db($data, array( '%s', '%s', '%s', '%s' ));
$_SESSION[$str . '--step'] = 2;
$_SESSION[$str . '--id'] = $insert_id;
endif;
// static::set_sessions('employers', $_POST);
elseif ($_POST['submit'] == "2"):
$data = [
'city' => static::getValue('city', $_POST['city']),
'city_id' => static::getValue('city_id', $_POST['city_id']),
'message' => static::getValue('message', $_POST['message']),
'confirm' => static::getValue('confirm', $_POST['confirm']),
'updated' => current_time('Y-m-d H:i:s')
];
// # upload file
// if($_FILES) {
// # gali nusirody: 'mimes' => array('csv' => 'text/csv')
// $movefile = wp_handle_upload($_FILES['cv'], [
// 'test_form' => false,
// //'unique_filename_callback' => 'custom_file_name'
// ]);
// if ( $movefile && ! isset( $movefile['error'] ) ) {
// $data['cv'] = static::getValue('cv', $movefile['url']);
// } else {
// $_SESSION['employee_file_error'] = $movefile['error'];
// }
// }
// static::update_row_in_db($data, $_SESSION['employers--id'], array( '%s', '%d', '%s', '%d', '%s', '%s' ));
debug($data);
exit();
endif;
wp_redirect( $referer );
exit;
}
/* --------------------------- position ---------------------------
/**
* Processes shortcode biuro-contacts--position
*
......@@ -387,6 +473,8 @@ class Biuro_Contacts_Public {
include_once('partials/biuro-contacts-public--position.php');
unset($_SESSION['position--step']);
$output = ob_get_contents();
ob_end_clean();
......@@ -401,19 +489,21 @@ class Biuro_Contacts_Public {
$nonce = $_POST['_wpnonce'];
$referer = $_POST['_wp_http_referer'];
if ( !isset( $nonce ) || !wp_verify_nonce($nonce, 'position_post_nonce' ) ) {
wp_redirect( $referer );
exit;
}
unset($_SESSION['position--step']);
// unset($_SESSION['position--step']);
if ($_POST['submit'] == "1"):
$_SESSION['position--step'] = 2;
elseif ($_POST['submit'] == "2"):
$_SESSION['position--step'] = 2;
$canSubmit = true;
$str = 'position';
......@@ -442,6 +532,8 @@ class Biuro_Contacts_Public {
if ($canSubmit):
unset($_SESSION['position--step']);
# upload file
if($_FILES) {
# gali nusirody: 'mimes' => array('csv' => 'text/csv')
......@@ -460,8 +552,7 @@ class Biuro_Contacts_Public {
$insert_id = static::insert_row_to_db($data, array( '%s', '%s', '%s', '%s', '%s', '%s', '%d', '%s', '%d', '%d', '%s' ));
$_SESSION['employee--id'] = $insert_id;
else:
$_SESSION['position--step'] = 2;
endif;
endif;
......@@ -471,19 +562,6 @@ class Biuro_Contacts_Public {
exit;
}
public function employers_post() {
debug($_POST); //$_POST variables should be accessible now
//Optional: Now you can redirect the user to your confirmation page using wp_redirect()
// ob_start();
// wp_redirect($_POST['_wp_http_referer']);
exit;
// wp_redirect(admin_url('admin.php?page=' . $_POST['_wp_http_referer']));
// die();
//apparently when finished, die(); is required.
}
/**
* @method getContacts
* get contacts data from DB for API endpoint "contacts" endpoint;
......
<?php
/**
* Provide a public-facing view for the plugin
*
* This file is used to markup the public-facing aspects of the plugin.
*
* @link https://www.biuro.lt
* @since 1.0.0
*
* @package Biuro_Contacts
* @subpackage Biuro_Contacts/public/partials
*/
/**
* @link https://codex.wordpress.org/Creating_Options_Pages
* @link https://www.smashingmagazine.com/2016/04/three-approaches-to-adding-configurable-fields-to-your-plugin/
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) die;
?>
<form action="<?php echo esc_url( admin_url('admin-post.php') ); ?>" method="post" enctype="multipart/form-data" class="c-form">
<?php
if ( !$_SESSION['employees-quick--step'] ):
include_once('biuro-contacts-public--employees-quick--step-1.php');
else:
include_once('biuro-contacts-public--employees-quick--step-2.php');
endif;
?>
<input type="hidden" name="action" value="employees_post">
<?php wp_nonce_field('employees_post_nonce'); ?>
</form>
<?php
/**
* Provide a public-facing view for the plugin
*
* This file is used to markup the public-facing aspects of the plugin.
*
* @link https://www.biuro.lt
* @since 1.0.0
*
* @package Biuro_Contacts
* @subpackage Biuro_Contacts/public/partials
*/
/**
* @link https://codex.wordpress.org/Creating_Options_Pages
* @link https://www.smashingmagazine.com/2016/04/three-approaches-to-adding-configurable-fields-to-your-plugin/
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) die;
// Generate a custom nonce value.
$_nonce = wp_create_nonce( 'my_post_form_nonce' );
?>
<form action="<?php echo esc_url( admin_url('admin-post.php') ); ?>" method="post" enctype="multipart/form-data" class="c-form">
<div class="c-form--row">
<label class="c-form--label" for="form-name">Name, Surname*</label>
<div class="c-form--input-wrap">
<input type="text" class="c-form--input <?php if ($response) { echo 'c-form--input--error'; } ?>" id="form-name" name="name" value="">
</div>
<?php if ($response): ?>
<div class="c-form--validation-error">
Name and Surname is required
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<div class="c-form--row">
<label class="c-form--label" for="form-phone">Phone no.*</label>
<div class="c-form--input-wrap">
<input type="tel" class="c-form--input <?php if ($response) { echo 'c-form--input--error'; } ?>" id="form-phone" name="phone" value="">
</div>
<?php if ($response): ?>
<div class="c-form--validation-error">
Phone number is required
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<div class="c-form--row">
<label class="c-form--label" for="form-email">Email address*</label>
<div class="c-form--input-wrap">
<input type="email" class="c-form--input <?php if ($response) { echo 'c-form--input--error'; } ?>" id="form-email" name="email" value="">
</div>
<?php if ($response): ?>
<div class="c-form--validation-error">
Email address is required
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<div class="c-form--row">
<div class="c-form--submit-wrap">
<button type="submit" class="c-form--submit" name="submit" value="1">Submit</button>
</div>
</div><!-- .c-form--row -->
<div class="c-form--row">
<div class="c-form--checkbox-wrap">
<input id="form-agree" type="checkbox" class="c-form--checkbox <?php if ($response) { echo 'c-form--checkbox--error'; } ?>" name="agree" value="1">
<label class="c-form--label-checkbox" for="form-agree">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem possimus, delectus unde enim dolores doloribus, recusandae a veritatis ducimus repudiandae iste eos voluptatum architecto mollitia?</label>
</div>
<?php if ($response): ?>
<div class="c-form--validation-error">
You have to agree with conditions
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<input type="hidden" name="action" value="employers">
<?php wp_nonce_field('employers_nonce', 'employers_nonce'); ?>
</form>
<?php
/**
* Provide a public-facing view for the plugin
*
* This file is used to markup the public-facing aspects of the plugin.
*
* @link https://www.biuro.lt
* @since 1.0.0
*
* @package Biuro_Contacts
* @subpackage Biuro_Contacts/public/partials
*/
/**
* @link https://codex.wordpress.org/Creating_Options_Pages
* @link https://www.smashingmagazine.com/2016/04/three-approaches-to-adding-configurable-fields-to-your-plugin/
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) die;
// Generate a custom nonce value.
$_nonce = wp_create_nonce( 'my_post_form_nonce' );
?>
<form id="CVForm_CVForm" action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method="post" enctype="multipart/form-data" class="contact-form">
<ul class="form">
<li>
<label for="CVForm_CVForm_Name">Name, Surname (mandatory field):</label>
<input type="text" class="text holder-required <?php if ($response) { echo 'error'; } ?>" id="CVForm_CVForm_Name" name="Name" value="">
<?php if ($response) : ?>
<div id="errorname" class="errormessage">"Name, Surname (mandatory field):" is required.</div>
<?php endif; ?>
</li>
<li>
<label for="CVForm_CVForm_Email">E-mail (mandatory field): </label>
<input type="text" class="text holder-required <?php if ($response) { echo 'error'; } ?>" id="CVForm_CVForm_Email" name="Email" value="">
<?php if ($response) : ?>
<div id="erroremail" class="errormessage">"E-mail (mandatory field): " is required.</div>
<?php endif; ?>
</li>
<li>
<label for="CVForm_CVForm_Phone">Telephone number:</label>
<input type="text" class="text" id="CVForm_CVForm_Phone" name="Phone" value="">
</li>
<li>
<label for="CVForm_CVForm_Cvfield">Curriculum vitae:</label>
<input type="file" name="Cvfield" id="CVForm_CVForm_Cvfield"><input type="hidden" name="MAX_FILE_SIZE" value="">
</li>
<li>
<label for="CVForm_CVForm_Additional">Other:</label>
<textarea id="CVForm_CVForm_Additional" name="Additional" rows="5" cols="20"></textarea>
</li>
<li class="last">
<input class="action " id="CVForm_CVForm_action_SendCVForm" type="submit" name="action-submit" value="Send" title="Send" onclick="ga('send', 'event', 'CVForm', 'Button', 'SendCVForm');">
</li>
</ul>
<input class="hidden" type="hidden" id="CVForm_CVForm_offerid" name="offerid" value="14675">
</form>
......@@ -21,12 +21,12 @@ if ( ! defined( 'WPINC' ) ) die;
?>
<?php
$nameValue = $_SESSION['employees-quick--name-value'];
$nameStatus = $_SESSION['employees-quick--name-status'];
$nameMessage = $_SESSION['employees-quick--name-message'];
$nameValue = $_SESSION['employers--name-value'];
$nameStatus = $_SESSION['employers--name-status'];
$nameMessage = $_SESSION['employers--name-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-name">Name, Surname*</label>
<label class="c-form--label" for="form-name"><?php _e('Name, surname', 'biuro'); ?></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; ?>>
</div>
......@@ -38,12 +38,12 @@ if ( ! defined( 'WPINC' ) ) die;
</div><!-- .c-form--row -->
<?php
$phoneValue = $_SESSION['employees-quick--phone-value'];
$phoneStatus = $_SESSION['employees-quick--phone-status'];
$phoneMessage = $_SESSION['employees-quick--phone-message'];
$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">Phone no.*</label>
<label class="c-form--label" for="form-phone"><?php _e('Phone no.', 'biuro'); ?></label>
<div class="c-form--input-wrap <?php if ($phoneStatus) { echo "c-form--input-wrap--$phoneStatus"; } ?>">
<input type="tel" class="c-form--input" id="form-phone" name="phone" value="<?php echo $phoneValue; ?>" <?php if ($nameStatus != 'error' && $phoneStatus == 'error'): ?> autofocus="autofocus" <?php endif; ?>>
</div>
......@@ -55,12 +55,12 @@ if ( ! defined( 'WPINC' ) ) die;
</div><!-- .c-form--row -->
<?php
$emailValue = $_SESSION['employees-quick--email-value'];
$emailStatus = $_SESSION['employees-quick--email-status'];
$emailMessage = $_SESSION['employees-quick--email-message'];
$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">Email address*</label>
<label class="c-form--label" for="form-email"><?php _e('Email address', 'biuro'); ?></label>
<div class="c-form--input-wrap <?php if ($emailStatus) { echo "c-form--input-wrap--$emailStatus"; } ?>">
<input type="email" class="c-form--input" id="form-email" name="email" value="<?php echo $emailValue; ?>">
</div>
......@@ -73,20 +73,19 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-form--row">
<div class="c-form--submit-wrap">
<button type="submit" class="o-btn c-btn--main c-btn--fill" name="submit" value="1">Submit</button>
<button type="submit" class="o-btn c-btn--main c-btn--fill" name="submit" value="1"><?php _e('Submit', 'biuro'); ?></button>
</div>
</div><!-- .c-form--row -->
<?php
$agreeValue = $_SESSION['employees-quick--agree-value'];
$agreeStatus = $_SESSION['employees-quick--agree-status'];
$agreeMessage = $_SESSION['employees-quick--agree-message'];
$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; ?>>
<label class="c-form--label-checkbox" for="form-agree">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem possimus, delectus unde enim dolores doloribus, recusandae a veritatis ducimus repudiandae iste eos voluptatum architecto mollitia?</label>
<label class="c-form--label-checkbox" for="form-agree"><?php _e('Rem possimus, delectus unde enim dolores doloribus, recusandae a veritatis ducimus repudiandae iste eos voluptatum architecto mollitia?', 'biuro'); ?></label>
</div>
<?php if ($agreeMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $agreeStatus; ?>">
......
......@@ -20,35 +20,37 @@
if ( ! defined( 'WPINC' ) ) die;
?>
<div class="c-form--row">
<label class="c-form--label" for="form-city">City</label>
<label class="c-form--label" for="form-city"><?php _e('City', 'biuro'); ?></label>
<div class="c-form--input-wrap">
<input type="text" class="c-form--input" id="form-city" name="city" value="" autofocus="autofocus">
<input type="text" class="c-form--input" id="form-city" name="city" value="">
</div>
</div><!-- .c-form--row -->
<div class="c-form--row">
<label class="c-form--label" for="form-message">Message</label>
<label class="c-form--label" for="form-message"><?php _e('Message', 'biuro'); ?></label>
<div class="c-form--textarea-wrap">
<textarea name="message" id="form-message" cols="30" rows="3" class="c-form--textarea"></textarea>
</div>
</div><!-- .c-form--row -->
<?php /*
<div class="c-form--row">
<label class="c-form--label" for="form-cv">CV</label>
<label class="c-form--label" for="form-cv"><?php _e('CV', 'biuro'); ?></label>
<div class="c-form--input-wrap">
<input type="file" class="c-form--input" id="form-cv" name="cv" value="">
</div>
</div><!-- .c-form--row -->
*/ ?>
<div class="c-form--row">
<div class="c-form--submit-wrap">
<button type="submit" class="c-form--submit" name="submit" value="2">Submit</button>
<button type="submit" class="o-btn c-btn--main c-btn--fill" name="submit" value="2"><?php _e('Submit', 'biuro'); ?></button>
</div>
</div><!-- .c-form--row -->
<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">
<label class="c-form--label-checkbox" for="form-confirm">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem possimus, delectus unde enim dolores doloribus, recusandae?</label>
<label class="c-form--label-checkbox" for="form-confirm"><?php _e('Noster apster lorem ipsum dolor sit amet, consectetur adipisicing elit?', 'biuro'); ?></label>
</div>
</div><!-- .c-form--row -->
......@@ -18,52 +18,18 @@
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) die;
// Generate a custom nonce value.
$_nonce = wp_create_nonce( 'my_post_form_nonce' );
?>
<form id="ContactForm_ContactForm" action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method="post" enctype="application/x-www-form-urlencoded" class="contact-form">
<form action="<?php echo esc_url( admin_url('admin-post.php') ); ?>" method="post" enctype="multipart/form-data" class="c-form c-form--employers">
<p id="ContactForm_ContactForm_error" class="message " style="display: none"></p>
<ul class="form">
<li>
<label for="ContactForm_ContactForm_Company">Company (mandatory field):</label>
<input type="text" class="text holder-required <?php if ($response) { echo 'error'; } ?>" id="ContactForm_ContactForm_Company" name="Company" value="">
<?php if ($response) : ?>
<div id="errorcompany" class="errormessage">"Company (mandatory field):" is required.</div>
<?php endif; ?>
</li>
<li>
<label for="ContactForm_ContactForm_Name">Name (mandatory field):</label>
<input type="text" class="text holder-required <?php if ($response) { echo 'error'; } ?>" id="ContactForm_ContactForm_Name" name="Name" value="">
<?php if ($response) : ?>
<div id="errorname" class="errormessage">"Name (mandatory field):" is required.</div>
<?php endif; ?>
</li>
<li>
<label for="ContactForm_ContactForm_Email">E-mail (mandatory field):</label>
<input type="text" class="text holder-required <?php if ($response) { echo 'error'; } ?>" id="ContactForm_ContactForm_Email" name="Email" value="">
<?php if ($response) : ?>
<div id="erroremail" class="errormessage">"E-mail (mandatory field):" is required.</div>
<?php endif; ?>
</li>
<li>
<label for="ContactForm_ContactForm_Phone">Telephone number:</label>
<input type="text" class="text" id="ContactForm_ContactForm_Phone" name="Phone" value="">
</li>
<li>
<label for="ContactForm_ContactForm_Comments">Your question (mandatory field):</label>
<textarea id="ContactForm_ContactForm_Comments" class="holder-required <?php if ($response) { echo 'error'; } ?>" name="Comments" rows="5" cols="20"></textarea>
<?php if ($response) : ?>
<div id="errorcomments" class="errormessage">"Your question (mandatory field):" is required.</div>
<?php endif; ?>
</li>
<li class="last">
<input class="action " id="ContactForm_ContactForm_action_SendContactForm" type="submit" name="action-submit" value="Send" title="Send" onclick="ga('send', 'event', 'ContactForm', 'Button', 'SendContactForm');">
</li>
</ul>
<?php
if ( !$_SESSION['employers--step'] ):
include_once('biuro-contacts-public--employers--step-1.php');
else:
include_once('biuro-contacts-public--employers--step-2.php');
endif;
?>
<input type="hidden" name="action" value="employers_post">
<?php wp_nonce_field('employers_post_nonce'); ?>
</form>
......@@ -125,7 +125,7 @@ class Biuro_Sections extends WP_Widget {
echo '<div class="c-sections--item">';
if ( ${'title' . $i} != "" ) {
echo '<div class="c-sections--header"><div class="c-sections--ico"></div>' . ${'title' . $i} . '</div>';
echo '<div class="c-sections--header"><div class="c-sections--ico"><svg width="56px" height="56px"><use xlink:href="#ico--section-' . $i . '"></use></svg></div>' . ${'title' . $i} . '</div>';
}
echo '<div class="c-sections--content">';
......
......@@ -106,7 +106,8 @@ class Biuro_Services extends WP_Widget {
for ($i = 1; $i <= 3; $i++):
if ( ${'title' . $i} != "" && ${'content' . $i} != ""):
echo '<div class="c-services--item">';
echo '<div class="c-services--ico"></div>';
echo '<div class="c-services--ico"><svg width="56px" height="56px"><use xlink:href="#ico--service-' . $i . '"></use></svg></div>';
if ( ${'title' . $i} != "" ) {
echo '<p class="c-services--heading">' . ${'title' . $i} . '</p>';
......
......@@ -4,10 +4,15 @@
.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 { height: 380px; background: url(/wp-content/themes/biuro/i/front-page.png) no-repeat 50% 50%; background-size: cover; margin-bottom: 92px;
.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 { height: 380px; background: url(/wp-content/themes/biuro/i/sales-page.png) no-repeat 50% 50%; background-size: cover;
.l-section--inner { width: 870px; padding-right: 20px; padding-left: 20px; }
}
.l-section--inner { width: 1030px; margin: 0 auto; }
/* critical:end */
......@@ -2,29 +2,7 @@
/* critical:start */
.o-btn { display: inline-block; border: 0; padding: 13px 24px 12px; cursor: pointer; border-radius: 3px; font-weight: 500; text-decoration: none; font-family: inherit; }
.c-btn--header { margin-right: 28px; }
.c-btn--main { color: #fff; background: var(--color--green);
&:hover { background: var(--color--green-darker); }
}
.c-btn--alt { padding: 10px 15px; color: #004ED4; background: #e8f0ff; color: #004ED4;
&:after { float: right; margin: 6px 0 0 20px; content: ''; width: 7px; height: 7px; border: 1px solid #004ED4; border-width: 2px 2px 0 0; transform: rotate(45deg); }
}
.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; }
/*.o-nav--item { display: block; }*/
/*.o-nav--link { display: block; }*/
.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; }
/* critical:end */
/*.o-nav { user-select: none; }*/
......@@ -9,6 +9,7 @@ c-: Signify that something is a Component. This is a concrete, implementation-sp
@import 'vendor/swiper.css';
@import '_component--awesomplete.css';
@import '_component--breadcrumbs.css';
@import '_component--btn.css';
@import '_component--cookies-warning.css';
@import '_component--contact.css';
@import '_component--copyright.css';
......@@ -18,6 +19,7 @@ c-: Signify that something is a Component. This is a concrete, implementation-sp
@import '_component--footer-sections.css';
@import '_component--footer-separator.css';
@import '_component--form.css';
@import '_component--ico.css';
@import '_component--job.css';
@import '_component--jobs.css';
@import '_component--jobs-pagination.css';
......
/* ------------- Component: btn ------------- */
/* critical:start */
.c-btn--header { margin-right: 28px; font-size: 14px; font-weight: 500; }
.c-btn--main { color: #fff; background: var(--color--green);
&:hover { background: var(--color--green-darker); }
}
.c-btn--alt { padding: 10px 15px; color: #004ED4; background: #e8f0ff; color: #004ED4;
&:after { float: right; margin: 6px 0 0 35px; content: ''; width: 7px; height: 7px; border: 1px solid #004ED4; border-width: 2px 2px 0 0; transform: rotate(45deg); }
}
.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; }
/* critical:end */
......@@ -7,7 +7,7 @@
.c-contact--inner { display: flex; justify-content: space-between; max-width: 980px; margin: 0 auto; }
.c-contact--content { flex: 1 1 40%; max-width: 500px; color: #2A3644; font-weight: 500; line-height: 29px; padding: 75px 0 0 90px;
h3 { margin: 0 0 15px; font-size: 25px; }
h3 { margin: 0 0 15px; font-size: 25px; color: #2A3644; font-weight: 500; }
p { margin: 0 0 20px; }
}
......
......@@ -6,6 +6,8 @@
.c-form--employees { padding: 38px 35px 20px; border-radius: 3px; background-color: #ffffff; box-shadow: 0 1px 47px 0 #ECF5FF; }
.c-form--employers { padding: 38px 35px 20px; border-radius: 3px; background-color: #ffffff; box-shadow: 0 1px 47px 0 #ECF5FF; }
.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; }
......
/* ------------- Component: ico ------------- */
/* critical:start */
.c-ico--search { margin: 0 3px -3px 0; }
.c-ico--location { position: absolute; top: 50%; left: 18px; transform: translateY(-50%); margin-top: -1px; }
.c-ico--area { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); margin-top: -1px; }
.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; }
/* critical:end */
......@@ -25,7 +25,6 @@
.c-job-contacts {
ul { margin: 0; padding: 0; list-style: none; }
li { line-height: 28px; }
svg { float: left; margin: 4px 8px 0 0; }
a { overflow: hidden; text-decoration: none;
&:hover { color: var(--color--green); }
}
......
......@@ -4,26 +4,19 @@
.c-nav { }
.c-nav--main { display: flex;
/* @media (--max--small) {
margin: 20px 0;
}
@media (--min--small) {
padding-left: 2em;
}*/
}
.c-nav--main { display: flex; font-size: 14px; }
.c-nav--sub { display: none; }
/* critical:end */
.c-nav--main-item { position: relative; height: 70px; margin-right: 26px; padding: 24px 0 0; z-index: 500; }
.c-nav--main-anchor { display: block; padding: 5px 0; text-transform: uppercase; border-bottom: 2px solid transparent; text-decoration: none; color: var(--color--gray); font-weight: 500;
&:hover { border-bottom-color: var(--color--blue-dark); color: var(--color--blue-dark); }
.c-nav--main-item { position: relative; height: 70px; margin-right: 26px; padding: 23px 0 0; z-index: 500; }
.c-nav--main-anchor { display: block; padding: 5px 0 4px; text-transform: uppercase; border-bottom: 2px solid transparent; text-decoration: none; color: var(--color--blue-dark); font-weight: bold; letter-spacing: 1px; opacity: 0.6;
&:hover { opacity: 1; }
}
.c-nav--sub { position: absolute; top: 100%; }
.c-nav--sub-item { margin-right: 45px; }
.c-nav--sub-anchor { display: block; padding: 17px 0; color: #fff; text-transform: uppercase; white-space: nowrap; text-decoration: none; font-weight: 500; line-height: 1;
.c-nav--sub-item { margin-right: 46px; }
.c-nav--sub-anchor { display: block; padding: 16px 0 17px; color: #fff; text-transform: uppercase; white-space: nowrap; text-decoration: none; font-weight: bold; letter-spacing: 1.08px; line-height: 1;
&:hover { color: var(--color--green); }
}
......@@ -36,18 +29,18 @@
.c-nav--lang-wrap { position: relative; width: 70px; height: 32px; }
.c-nav--lang { position: absolute; top: 0; left: 0; width: 100%; background: #fff; border-radius: 3px; z-index: 20;
.c-nav--lang { position: absolute; top: 0; left: 0; width: 100%; background: #fff; border-radius: 3px; z-index: 20; font-weight: 500;
&:hover {
.c-nav--lang-item { display: block; }
}
}
.c-nav--lang-item { padding: 6px 0;
.c-nav--lang-item { padding: 6px 0 6px;
&:nth-child(n+2) { display: none; }
}
.c-nav--lang-anchor { padding-left: 34px; text-decoration: none; display: block; color: #2A3644; font-size: 14px; line-height: 20px; background-repeat: no-repeat; background-position: 6px 0; background-size: 20px 20px;
.c-nav--lang-anchor { padding-left: 34px; text-decoration: none; display: block; color: #2A3644; font-size: 14px; line-height: 24px; background-repeat: no-repeat; background-position: 6px 0; background-size: 20px 20px;
&:hover { text-decoration: underline; }
svg { float: right; margin: 7px 6px 0 0; }
svg { float: right; margin: 9px 6px 0 0; }
}
.c-nav--lang-anchor-lt { background-image: url(/wp-content/themes/biuro/i/lang/lt.png); }
......
......@@ -2,7 +2,7 @@
/* critical:start */
.c-phone { white-space: nowrap; margin-right: 35px; padding: 10px 0; text-decoration: none; color: inherit; font-weight: 500;
.c-phone { white-space: nowrap; margin-right: 35px; padding: 12px 0 10px; text-decoration: none; color: inherit; font-weight: 500; font-size: 14px;
svg { float: left; margin: -6px 5px 0 0; }
}
......
......@@ -2,21 +2,27 @@
/* critical:start */
.c-search { display: flex; height: 60px; background-color: #FFFFFF; border-radius: 3px;
.awesomplete { flex: 1 1 auto; display: flex; flex-direction: column;
> ul { top: 60px; padding-top: 10px; }
.c-search { display: flex; height: 60px; background-color: #FFFFFF; border-radius: 3px; }
.c-search--col { position: relative; flex: 1 1 auto; background-color: #FFFFFF;
.awesomplete { position: absolute; top: 0; right: 0; left: 0; height: 100%; display: flex; flex-direction: column; }
ul { top: 60px; padding-top: 10px; }
li { padding: 10px 15px; margin-bottom: 10px; cursor: pointer;
&:hover { color: #000; }
}
}
}
.c-search--input { border: 0; padding: 0 15px; margin: 0; height: 60px; line-height: 60px; background-color: #FFFFFF;}
.c-search--col-location { border-right: 1px solid rgba(178, 182, 187, 0.46); border-radius: 3px 0 0 3px; }
.c-search--col-keyword { }
.c-search--input { border: 0; padding: 0 10px 0 44px; margin: 0; height: 60px; line-height: 60px; background: none;
&:focus { outline: none; }
}
.c-search--location { border-right: 1px solid rgba(178, 182, 187, 0.46); border-radius: 3px 0 0 3px; }
.c-search--location { }
.c-search--keyword { border-right: 1px solid rgba(178, 182, 187, 0.46); }
.c-search--keyword { }
.l-section--front-page {
.c-search { height: 70px; }
......
......@@ -4,4 +4,6 @@
/* critical:end */
.c-social { /* text-align: center; */ }
.c-social { margin-bottom: 40px; text-align: center; }
.c-social--anchor { text-decoration: none; margin: 0 5px; padding: 0 10px; }
......@@ -8,9 +8,7 @@
.c-trust--heading { flex: 1 1 auto; margin: 0; color: #fff; }
.c-trust--logos { flex: 10 1 auto; display: flex; flex-wrap: wrap; justify-content: space-around;}
.c-trust--logo { border: 1px solid #fff; width: 100px; height: 40px; }
.c-trust--logos { flex: 10 1 auto; display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; }
/* critical:end */
......@@ -18,5 +18,5 @@
.c-nav--sub { display: flex; }
}
.is-nav--main-anchor-active { border-bottom-color: var(--color--blue-dark); color: var(--color--blue-dark); }
.is-nav--main-anchor-active { border-bottom-color: var(--color--blue-dark); opacity: 1; }
.is-nav--sub-anchor-active { color: var(--color--green-darker); }
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -29,15 +29,23 @@
<?php
$social = get_option('wpseo_social');
if ($social['facebook_site']) :
if ($social['facebook_site'] || true) :
?>
<a href="https://www.facebook.com/biuro.lietuva" class="icon icon-blue-dark icon-facebook" title="Facebook" target="_blank" rel="noopener" onclick="dataLayer.push({'event': 'socialClick', 'socialLabel': 'FB click'});"></a>
<a href="https://www.facebook.com/biuro.lietuva" class="c-social--anchor" title="Facebook" target="_blank" rel="noopener" onclick="dataLayer.push({'event': 'socialClick', 'socialLabel': 'FB click'});">
<svg xmlns="http://www.w3.org/2000/svg" width="12px" height="23px" viewBox="0 0 12 23">
<path fill="#FFFFFF" d="M3.309,22.75v-9.84H0V9h3.309V5.906c0-1.633,0.458-2.9,1.375-3.803S6.818,0.75,8.336,0.75 c1.232,0,2.234,0.057,3.008,0.172v3.48H9.281c-0.773,0-1.303,0.172-1.59,0.516C7.462,5.204,7.348,5.663,7.348,6.293V9H11 l-0.516,3.91H7.348v9.84H3.309z"/>
</svg>
</a>
<?php
endif;
if ($social['linkedin_url']) :
if ($social['linkedin_url'] || true) :
?>
<a href="http://www.linkedin.com/company/2824948" class="icon icon-blue-light icon-linkedin" title="Linkedin" target="_blank" rel="noopener" onclick="dataLayer.push({'event': 'socialClick', 'socialLabel': 'LI click'});"></a>
<a href="http://www.linkedin.com/company/2824948" class="c-social--anchor" title="Linkedin" target="_blank" rel="noopener" onclick="dataLayer.push({'event': 'socialClick', 'socialLabel': 'LI click'});">
<svg xmlns="http://www.w3.org/2000/svg" width="23px" height="23px" viewBox="0 0 430.117 430.117">
<path fill="#FFFFFF" d="M430.117,261.543V420.56h-92.188V272.193c0-37.271-13.334-62.707-46.703-62.707 c-25.473,0-40.632,17.142-47.301,33.724c-2.432,5.928-3.058,14.179-3.058,22.477V420.56h-92.219c0,0,1.242-251.285,0-277.32h92.21 v39.309c-0.187,0.294-0.43,0.611-0.606,0.896h0.606v-0.896c12.251-18.869,34.13-45.824,83.102-45.824 C384.633,136.724,430.117,176.361,430.117,261.543z M52.183,9.558C20.635,9.558,0,30.251,0,57.463 c0,26.619,20.038,47.94,50.959,47.94h0.616c32.159,0,52.159-21.317,52.159-47.94C103.128,30.251,83.734,9.558,52.183,9.558z M5.477,420.56h92.184v-277.32H5.477V420.56z"/>
</svg>
</a>
<?php
endif;
?>
......
......@@ -15,7 +15,7 @@
get_header();
?>
<div class="l-section l-section--front-page">
<div class="l-section l-section--front-page">
<div class="l-section--inner">
<?php
while ( have_posts() ) :
......@@ -31,18 +31,18 @@
get_search_form();
?>
</div>
</div>
</div>
<div id="content">
<div id="content">
<main id="main" class="l-main">
<div class="c-jobs">
<div class="c-jobs">
<div class="c-jobs--inner">
<h2 class="c-jobs--headline"><?php _e('Recent job ads', 'biuro'); ?></h2>
<?php
<?php
// Use for search
// https://pods.io/docs/code/pods/find/
......@@ -63,54 +63,54 @@
endif;
$positionsPage = new WP_Query( array(
$positionsPage = new WP_Query( array(
'numberposts' => 1,
'post_type' => 'page',
'meta_key' => 'page',
'meta_value' => 'positions'
) );
) );
if ( $positionsPage->have_posts() ) :
if ( $positionsPage->have_posts() ) :
while( $positionsPage->have_posts() ) :
$positionsPage->the_post();
?>
?>
<div class="c-jobs--more">
<a href="<?php echo get_the_permalink(); ?>" class="o-btn c-btn--alt"><?php _e('More job ads', 'biuro'); ?></a>
</div>
<?php
<?php
endwhile;
endif;
?>
endif;
?>
</div><!-- .c-jobs--inner -->
</div><!-- .c-jobs -->
</div><!-- .c-jobs -->
<div class="c-trust">
<div class="c-trust">
<div class="c-trust--inner">
<h2 class="c-trust--heading"><?php _e('Trust in us', 'biuro'); ?></h2>
<div class="c-trust--logos">
<div class="c-trust--logo"></div>
<div class="c-trust--logo"></div>
<div class="c-trust--logo"></div>
<div class="c-trust--logo"></div>
<img src="/wp-content/themes/biuro/i/trust/coca-cola.png" width="85" height="28" alt="">
<img src="/wp-content/themes/biuro/i/trust/maxima.png" width="96" height="22" alt="">
<img src="/wp-content/themes/biuro/i/trust/dpd.png" width="64" height="29" alt="">
<img src="/wp-content/themes/biuro/i/trust/avon.png" width="71" height="15" alt="">
</div>
</div>
</div>
</div>
<?php
<?php
if ( is_active_sidebar( 'front_page_feedbacks' ) ) :
dynamic_sidebar( 'front_page_feedbacks' );
endif;
?>
<?php
<?php
if ( is_active_sidebar( 'front_page_values' ) ) :
dynamic_sidebar( 'front_page_values' );
endif;
?>
<div class="c-contact">
<div class="c-contact">
<div class="c-contact--inner">
<div class="c-contact--content">
......@@ -119,19 +119,21 @@ endif;
dynamic_sidebar( 'front_page_employees' );
endif;
?>
<div class="c-contact--img"><img src="https://picsum.photos/330/100" alt="" style="display: block;"></div>
<div class="c-contact--img">
<img src="/wp-content/themes/biuro/i/contact.png" alt="" width="328" height="95">
</div>
</div>
<div class="c-contact--form">
<?php
<?php
echo do_shortcode('[biuro-contacts--employees]');
?>
?>
</div>
</div><!-- .c-contact--inner -->
</div><!-- .c-contact -->
</div><!-- .c-contact -->
</main><!-- .l-main -->
</div><!-- #content -->
</div><!-- #content -->
<?php get_footer();
This diff is collapsed.
<svg xmlns="http://www.w3.org/2000/svg" width="25px" height="34px" viewBox="0 0 25 34">
<path fill="#085FF7" d="M11.228,32.459C1.863,18.883,0.125,17.49,0.125,12.5c0-6.835,5.54-12.375,12.375-12.375 S24.875,5.666,24.875,12.5c0,4.99-1.738,6.383-11.103,19.959C13.157,33.347,11.843,33.347,11.228,32.459z M12.5,17.656 c2.848,0,5.156-2.309,5.156-5.156S15.348,7.344,12.5,7.344S7.344,9.652,7.344,12.5S9.652,17.656,12.5,17.656z"/>
</svg>
......@@ -112,7 +112,7 @@ function setMarkers (map, positions) {
var marker = new window.google.maps.Marker({
position: pos,
map: map,
icon: '/wp-content/themes/biuro/i/maps/pin.png',
icon: '/wp-content/themes/biuro/i/ico--map-pin.svg',
title: position.title || ''
});
......
This diff is collapsed.
......@@ -34,7 +34,7 @@ get_header(); ?>
</main><!-- .l-main -->
<aside class="l-aside--regions">
<?php
echo do_shortcode('[biuro-contacts--employees lang="' . pll_current_language() . '"]');
echo do_shortcode('[biuro-contacts--employers lang="' . pll_current_language() . '"]');
?>
</aside>
......
......@@ -56,10 +56,10 @@
<div class="c-trust--inner">
<h2 class="c-trust--heading"><?php _e('Trust in us', 'biuro'); ?></h2>
<div class="c-trust--logos">
<div class="c-trust--logo"></div>
<div class="c-trust--logo"></div>
<div class="c-trust--logo"></div>
<div class="c-trust--logo"></div>
<img src="/wp-content/themes/biuro/i/trust/coca-cola.png" width="85" height="28" alt="">
<img src="/wp-content/themes/biuro/i/trust/maxima.png" width="96" height="22" alt="">
<img src="/wp-content/themes/biuro/i/trust/dpd.png" width="64" height="29" alt="">
<img src="/wp-content/themes/biuro/i/trust/avon.png" width="71" height="15" alt="">
</div>
</div>
</div>
......@@ -78,7 +78,9 @@
dynamic_sidebar( 'sales_page_employers' );
endif;
?>
<div class="c-contact--img"><img src="https://picsum.photos/330/100" alt="" style="display: block;"></div>
<div class="c-contact--img">
<img src="/wp-content/themes/biuro/i/contact.png" alt="" width="328" height="95">
</div>
</div>
<div class="c-contact--form">
......
......@@ -64,6 +64,10 @@
return $a['name'] > $b['name'];
});
?>
<div 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">
<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>
<datalist id="search-cities">
<?php
foreach ( $res as $r ):
......@@ -75,7 +79,7 @@
?>
</datalist>
<input list="search-cities" id="search-city" name="city" value="<?php echo ($searchQuery) ? $searchQuery['city'] : ''; ?>" placeholder="<?php _e('Locations', 'biuro'); ?>" class="c-search--input c-search--location" />
</div><!-- .c-search--col c-search--col-location -->
<?php
$options = array();
......@@ -142,6 +146,10 @@
return $a['name'] > $b['name'];
});
?>
<div 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">
<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>
<datalist id="search-queries">
<?php
foreach ( $options as $option ):
......@@ -151,8 +159,11 @@
endforeach;
?>
</datalist>
<input list="search-queries" id="search-query" name="s" value="<?php echo ($searchQuery) ? $searchQuery['s'] : ''; ?>" placeholder="<?php _e('Keyword', 'biuro'); ?>" class="c-search--input c-search--keyword" />
<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"><?php _e('Search', 'biuro'); ?></button>
</div><!-- .c-search--col c-search--col-keyword -->
<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">
<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"/>
</svg> <?php _e('Search', 'biuro'); ?>
</button>
</form>
......@@ -20,22 +20,22 @@
<ul>
<li>
<a class="gtm-b2c-phone-click" href="tel: 8 379 99254">
<svg xmlns="http://www.w3.org/2000/svg" width="17px" height="18px" viewBox="0 0 21 22">
<path d="M20.0073662,1.61350199 C20.5897947,1.74475969 20.9999499,2.26157937 20.9999499,2.86039004 C20.9999499,13.2496151 12.5794702,21.6249937 2.23534623,21.6249937 C1.63653556,21.6249937 1.11971588,21.2148385 0.984372653,20.6283244 L0.0328044109,16.4980528 C-0.106624349,15.8951166 0.205077636,15.2798837 0.775209486,15.0337905 L5.2212686,13.1265685 C5.74217381,12.9009831 6.35740672,13.0527486 6.71833535,13.4916227 L8.52714413,15.7023356 C11.3695122,14.3078077 13.6786783,11.994556 15.0732063,9.15627347 L12.8624533,7.34750474 C12.4236192,6.98653606 12.2718538,6.37130315 12.4974392,5.850438 L14.4046612,1.4002533 C14.6507543,0.830121445 15.2700728,0.51841946 15.873009,0.65784822 L20.0073662,1.61350199 Z M2.25993953,20.3124969 C11.8780807,20.3002002 19.6751564,12.5072501 19.6833675,2.88910892 L15.598197,1.9457518 L13.7114827,6.35079539 L16.6974051,8.79121926 C14.7122776,13.0240297 12.4112825,15.3331958 8.16208992,17.3265745 L5.72166605,14.3406521 L1.3165824,16.2273664 L2.25993953,20.3124969 Z"></path>
<svg xmlns="http://www.w3.org/2000/svg" width="19px" height="20px" viewBox="0 0 19 20" class="c-ico--phone">
<path fill="#2A3644" d="M18.102,1.269C18.629,1.388,19,1.856,19,2.398c0,9.4-7.619,16.977-16.977,16.977 c-0.542,0-1.009-0.371-1.132-0.902L0.03,14.736c-0.126-0.546,0.156-1.102,0.672-1.325l4.023-1.726 c0.471-0.204,1.028-0.067,1.354,0.33l1.637,2c2.572-1.262,4.661-3.355,5.923-5.923l-2-1.636c-0.397-0.327-0.534-0.883-0.33-1.354 l1.726-4.026c0.223-0.516,0.783-0.798,1.328-0.672L18.102,1.269z M2.045,18.188c8.702-0.011,15.757-7.062,15.764-15.764L14.113,1.57 l-1.707,3.986l2.702,2.208c-1.796,3.83-3.878,5.919-7.722,7.722l-2.208-2.702l-3.986,1.707L2.045,18.188z"/>
</svg> 8 379 99254
</a>
</li>
<li>
<a class="gtm-b2c-email-click" href="mailto:kaunascv@biuro.lt">
<svg xmlns="http://www.w3.org/2000/svg" width="17px" height="18px" viewBox="0 0 21 22">
<path d="M20.0073662,1.61350199 C20.5897947,1.74475969 20.9999499,2.26157937 20.9999499,2.86039004 C20.9999499,13.2496151 12.5794702,21.6249937 2.23534623,21.6249937 C1.63653556,21.6249937 1.11971588,21.2148385 0.984372653,20.6283244 L0.0328044109,16.4980528 C-0.106624349,15.8951166 0.205077636,15.2798837 0.775209486,15.0337905 L5.2212686,13.1265685 C5.74217381,12.9009831 6.35740672,13.0527486 6.71833535,13.4916227 L8.52714413,15.7023356 C11.3695122,14.3078077 13.6786783,11.994556 15.0732063,9.15627347 L12.8624533,7.34750474 C12.4236192,6.98653606 12.2718538,6.37130315 12.4974392,5.850438 L14.4046612,1.4002533 C14.6507543,0.830121445 15.2700728,0.51841946 15.873009,0.65784822 L20.0073662,1.61350199 Z M2.25993953,20.3124969 C11.8780807,20.3002002 19.6751564,12.5072501 19.6833675,2.88910892 L15.598197,1.9457518 L13.7114827,6.35079539 L16.6974051,8.79121926 C14.7122776,13.0240297 12.4112825,15.3331958 8.16208992,17.3265745 L5.72166605,14.3406521 L1.3165824,16.2273664 L2.25993953,20.3124969 Z"></path>
<svg xmlns="http://www.w3.org/2000/svg"width="20px" height="15px" viewBox="0 0 20 15" class="c-ico--email">
<path fill="#2A3644" d="M17.641,0.75c0.983,0,1.781,0.798,1.781,1.781v10.688c0,0.983-0.798,1.781-1.781,1.781H2.203 c-0.983,0-1.781-0.798-1.781-1.781V2.531c0-0.983,0.798-1.781,1.781-1.781H17.641z M2.203,1.938c-0.327,0-0.594,0.267-0.594,0.594 v1.536C2.422,4.754,3.584,5.7,7.198,8.569c0.623,0.497,1.863,1.696,2.724,1.681c0.861,0.015,2.097-1.184,2.724-1.681 c3.614-2.869,4.776-3.815,5.589-4.501V2.531c0-0.327-0.267-0.594-0.594-0.594H2.203z M17.641,13.813 c0.327,0,0.594-0.267,0.594-0.594V5.611c-0.846,0.694-2.182,1.766-4.85,3.885c-0.779,0.623-2.112,1.952-3.462,1.941 C8.564,11.445,7.22,10.105,6.46,9.497c-2.668-2.119-4.004-3.191-4.85-3.885v7.607c0,0.327,0.267,0.594,0.594,0.594H17.641z"/>
</svg> kaunascv@biuro.lt
</a>
</li>
<li>
<a href="https://maps.google.com/?q=Gedimino g. 47 - 301, Kaunas" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="17px" height="18px" viewBox="0 0 21 22">
<path d="M20.0073662,1.61350199 C20.5897947,1.74475969 20.9999499,2.26157937 20.9999499,2.86039004 C20.9999499,13.2496151 12.5794702,21.6249937 2.23534623,21.6249937 C1.63653556,21.6249937 1.11971588,21.2148385 0.984372653,20.6283244 L0.0328044109,16.4980528 C-0.106624349,15.8951166 0.205077636,15.2798837 0.775209486,15.0337905 L5.2212686,13.1265685 C5.74217381,12.9009831 6.35740672,13.0527486 6.71833535,13.4916227 L8.52714413,15.7023356 C11.3695122,14.3078077 13.6786783,11.994556 15.0732063,9.15627347 L12.8624533,7.34750474 C12.4236192,6.98653606 12.2718538,6.37130315 12.4974392,5.850438 L14.4046612,1.4002533 C14.6507543,0.830121445 15.2700728,0.51841946 15.873009,0.65784822 L20.0073662,1.61350199 Z M2.25993953,20.3124969 C11.8780807,20.3002002 19.6751564,12.5072501 19.6833675,2.88910892 L15.598197,1.9457518 L13.7114827,6.35079539 L16.6974051,8.79121926 C14.7122776,13.0240297 12.4112825,15.3331958 8.16208992,17.3265745 L5.72166605,14.3406521 L1.3165824,16.2273664 L2.25993953,20.3124969 Z"></path>
<svg xmlns="http://www.w3.org/2000/svg" width="15px" height="21px" viewBox="0 0 15 21" class="c-ico--address">
<path fill="#2A3644" 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> Gedimino g. 47 – 301, Kaunas
</a>
</li>
......
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