Commit 8667af0c authored by Simonas's avatar Simonas

in progress

parent ac29efd4
......@@ -143,13 +143,11 @@ class Biuro_Contacts_Activator {
email varchar(128) DEFAULT '',
city varchar(255) DEFAULT null,
city_id int DEFAULT null,
allow tinyint DEFAULT 0,
recommend_name tinytext,
recommend_phone varchar(128) DEFAULT '',
recommend_email varchar(128) DEFAULT '',
recommend_city varchar(255) DEFAULT null,
recommend_city_id int DEFAULT null,
recommend_allow tinyint DEFAULT 0,
referer text DEFAULT null,
request text DEFAULT null,
PRIMARY KEY (id)
......
......@@ -44,14 +44,14 @@ class Biuro_Contacts_Public {
'employees' => ['name', 'phone', 'email'],
'employers' => ['name', 'phone', 'email'],
'position' => ['name', 'phone', 'email', 'city', 'city_id', 'message', 'confirm', 'job_id', 'cv'],
'recommend' => ['name', 'phone', 'email', 'city', 'city_id', 'allow', 'recommend_name', 'recommend_phone', 'recommend_email', 'recommend_city', 'recommend_city_id', 'recommend_allow'],
'recommend' => ['name', 'phone', 'email', 'city', 'city_id', 'recommend_name', 'recommend_phone', 'recommend_email', 'recommend_city', 'recommend_city_id'],
];
const DB_NAMES = [
'employees' => ['name', 'phone', 'email'],
'employers' => ['name', 'phone', 'email'],
'position' => ['name', 'phone', 'email', 'city', 'city_id', 'message', 'confirm', 'job_id'],
'recommend' => ['name', 'phone', 'email', 'city', 'city_id', 'allow', 'recommend_name', 'recommend_phone', 'recommend_email', 'recommend_city', 'recommend_city_id', 'recommend_allow'],
'recommend' => ['name', 'phone', 'email', 'city', 'city_id', 'recommend_name', 'recommend_phone', 'recommend_email', 'recommend_city', 'recommend_city_id'],
];
const BIURO_INSIGHTLY =[
......@@ -267,28 +267,6 @@ class Biuro_Contacts_Public {
return $success;
case 'allow':
if ($value != "1"):
return [
'status' => 'error',
'message' => 'You agree with something',
'translation' => __('You agree with something', 'biuro-contacts')
];
endif;
return $success;
case 'recommend_allow':
if ($value != "1"):
return [
'status' => 'error',
'message' => 'Your friend agrees with conditions',
'translation' => __('Your friend agrees with conditions', 'biuro-contacts')
];
endif;
return $success;
case 'cv':
case 'city':
case 'city_id':
......@@ -325,8 +303,6 @@ class Biuro_Contacts_Public {
case 'agree':
case 'city_id':
case 'recommend_city_id':
case 'allow':
case 'recommend_allow':
case 'job_id':
case 'confirm':
return filter_var($value, FILTER_VALIDATE_INT) ? $value : 0;
......@@ -1103,7 +1079,7 @@ class Biuro_Contacts_Public {
$data['referer'] = ($_SESSION['referer'] !== null) ? $_SESSION['referer'] : null;
$data['request'] = ($_SESSION['request'] !== null) ? $_SESSION['request'] : null;
$insert_id = static::insert_row_to_db($data, array( '%s', '%s', '%s', '%s', '%s', '%d', '%d', '%s', '%s', '%s', '%s', '%d', '%d', '%s', '%s' ), 'biuro_recommend');
$insert_id = static::insert_row_to_db($data, array( '%s', '%s', '%s', '%s', '%s', '%d', '%s', '%s', '%s', '%s', '%d', '%s', '%s' ), 'biuro_recommend');
$_SESSION[$str . '--id'] = $insert_id;
$_SESSION[$str . '--s'] = 1;
......
......@@ -36,6 +36,7 @@ c-: Signify that something is a Component. This is a concrete, implementation-sp
@import '_component--modal.css';
@import '_component--nav.css';
@import '_component--phone.css';
@import '_component--recommend-friend.css';
@import '_component--search.css';
@import '_component--sections.css';
@import '_component--services.css';
......
......@@ -28,6 +28,7 @@
}
.c-btn--fill { width: 100%; }
.c-btn--max-fill { width: 100%; max-width: 320px; }
.c-btn--search { min-width: 180px; border-radius: 0 3px 3px 0; text-align: center;
@media (--max--medium) {
......
......@@ -25,18 +25,33 @@
}
}
.c-form--recommend { padding: 28px 20px 20px; border-radius: 3px; background-color: #ffffff; box-shadow: 0 1px 31px -23px #6A7481;
.c-form--recommend { border-radius: 3px; background-color: #ffffff; box-shadow: 0 1px 31px -23px #6A7481;
@media (--min--medium) {
padding: 38px 35px 20px;
padding: 0 33px 20px;
}
}
.c-form--cols {
@media (--min--medium) {
display: flex; margin: 0 -33px;
}
}
.c-form--col { flex: 1 1 50%; }
.c-form--col--about { /* margin: 0 -33px; */ padding: 42px 24px 0 33px; background: linear-gradient(180deg, #A1FFF0 0%, rgba(255,255,255,0) 168px); }
.c-form--col--about-friend { /*margin: 0 -33px;*/ padding: 42px 33px 0 24px; background: linear-gradient(180deg, #CFE1FC 0%, rgba(255,255,255,0) 168px); }
.c-form--success { margin: -28px -20px 20px; padding: 28px 20px 20px; border-radius: 3px 3px 0 0; text-align: center; color: #27b199; font-style: 18px; line-height: 25px; background: #e5fdf9; font-weight: 500;
@media (--min--medium) {
margin: -38px -35px 20px; padding: 28px 35px 20px;
}
}
.c-form--headline { text-transform: uppercase; margin-bottom: 30px; font-weight: 500; font-size: 18px; }
.c-form--headline--about { color: #14B399; }
.c-form--headline--about-friend { color: #004ED7; }
.c-form--row { position: relative; margin-bottom: 20px; }
.c-form--row-sticky {
......@@ -96,7 +111,7 @@
}
}
.c-form--validation { background-color: #ffffff; margin-top: 5px; padding: 10px 15px; border: 1px solid; font-size: 13px; line-height: 20px;
.c-form--validation { background-color: #ffffff; margin-top: 5px; padding: 10px 15px; border: 1px solid; font-size: 13px; line-height: 20px; z-index: 20;
@media (--min--medium) {
position: absolute; top: 50%; right: 100%; min-width: 200px; margin-top: 11px; transform: translate(-30px, -50%);
}
......@@ -105,7 +120,8 @@
}
}
.c-form--validation-static { background-color: #ffffff; margin-top: -10px; padding: 10px 15px; border: 1px solid; line-height: 20px; font-size: 14px; }
.c-form--validation-fixed { background-color: #ffffff; margin-top: 5px; padding: 10px 15px; border: 1px solid; font-size: 13px; line-height: 20px; }
.c-form--validation-static { background-color: #ffffff; margin-top: -10px; padding: 10px 15px; border: 1px solid; line-height: 20px; font-size: 14px; }
......
......@@ -38,7 +38,6 @@
h1 { max-width: 230px; color: #fff; font-size: 21px; line-height: 32px; padding: 0 20px;
@media (--min--medium) {
max-width: 500px; font-size: 31px; line-height: 45px;
/*max-width: 117px; color: #fff;*/
}
}
@media (--max--medium) {
......@@ -49,4 +48,15 @@
}
}
.c-heading--recommend-friend {
h1 { max-width: 230px; color: #fff; font-size: 21px; line-height: 32px; padding: 0 20px;
@media (--min--medium) {
max-width: 500px; font-size: 31px; line-height: 45px;
}
span {
display: inline-block; background: blue; font-weight: bold; padding: 3px 10px 1px; border-radius: 4px;
}
}
}
/* critical:end */
/* ------------- Component: recommend friend ------------- */
/* critical:start */
.c-recommend-friend { padding: 10px 0;
@media (--max--medium) {
max-width: 440px; margin: 0 auto;
}
@media (--min--medium) {
padding: 30px 0 40px;
}
}
.c-recommend-friend--inner { max-width: 1170px; padding: 0 10px; margin: 0 auto;
@media (--min--medium) {
display: flex; justify-content: space-between;
}
}
.c-recommend-friend--content { color: #2A3644; font-weight: 500; line-height: 29px; padding: 15px 0 20px 15px;
@media (--min--medium) {
flex: 1 1 40%; max-width: 500px; padding: 0 0 0 90px;
}
img { max-width: 100%; height: auto; }
}
.c-recommend-friend--img { margin-top: 40px; }
.c-recommend-friend--form { max-width: 604px;
@media (--min--medium) {
flex: 1 1 40%; margin-top: -200px;
}
}
/* critical:end */
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.
......@@ -19,7 +19,7 @@
<?php
while ( have_posts() ) :
?>
<div class="c-heading--landing-1">
<div class="c-heading--recommend-friend">
<?php
the_post();
the_content();
......@@ -34,16 +34,16 @@
<div id="content">
<main id="main" class="l-main">
<div class="c-contact-landing-1">
<div class="c-contact-landing-1--inner">
<div class="c-recommend-friend">
<div class="c-recommend-friend--inner">
<div class="c-contact-landing-1--content">
<div class="c-recommend-friend--content">
<?php
if ( is_active_sidebar( 'landing_page_employees_1' ) ) :
dynamic_sidebar( 'landing_page_employees_1' );
endif;
?>
<div class="c-contact-landing-1--img">
<div class="c-recommend-friend--img">
<picture>
<source srcset="/wp-content/themes/biuro/i/contact.webp" type="image/webp">
<img loading="lazy" src="/wp-content/themes/biuro/i/contact.png" alt="" width="328" height="95">
......@@ -51,14 +51,14 @@
</div>
</div>
<div class="c-contact-landing-1--form">
<div class="c-recommend-friend--form">
<?php
echo do_shortcode('[biuro-contacts--recommend]');
?>
</div>
</div><!-- .c-contact-landing-1--inner -->
</div><!-- .c-contact-landing-1 -->
</div><!-- .c-recommend-friend--inner -->
</div><!-- .c-recommend-friend -->
<?php
/*
......
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