Commit c2f7328c authored by Simon's avatar Simon

in progress

parent f1353d41
......@@ -172,11 +172,14 @@ class Biuro_Contacts {
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
$this->loader->add_action('admin_post_employees_post', $plugin_public, 'employees_post');
$this->loader->add_action('admin_post_nopriv_employees_post', $plugin_public, 'employees_post');
$this->loader->add_action('admin_post_employees_quick_post', $plugin_public, 'employees_quick_post');
$this->loader->add_action('admin_post_nopriv_employees_quick_post', $plugin_public, 'employees_quick_post');
$this->loader->add_action('admin_post_employers_quick_post', $plugin_public, 'employers_quick_post');
$this->loader->add_action('admin_post_nopriv_employers_quick_post', $plugin_public, 'employers_quick_post');
$this->loader->add_action('admin_post_employers_post', $plugin_public, 'employers_post');
$this->loader->add_action('admin_post_nopriv_employers_post', $plugin_public, 'employers_post');
$this->loader->add_action('admin_post_position_post', $plugin_public, 'position_post');
$this->loader->add_action('admin_post_nopriv_position_post', $plugin_public, 'position_post');
// $this->loader->add_action( 'init', $plugin_public, 'register_shortcodes' );
......@@ -187,15 +190,9 @@ class Biuro_Contacts {
*
* @link https://github.com/DevinVinson/WordPress-Plugin-Boilerplate/issues/262
*/
$this->loader->add_shortcode( "biuro-contacts--employees-quick", $plugin_public, "employees_quick_form", $priority = 10, $accepted_args = 2 );
$this->loader->add_shortcode( "biuro-contacts--employers-quick", $plugin_public, "employers_quick_form", $priority = 10, $accepted_args = 2 );
// add_shortcode( 'biuro-contacts--employees-quick', array( $this, 'employees_quick_form' ) );
// add_shortcode( 'biuro-contacts--employers-quick', array( $this, 'employers_quick_form' ) );
// add_shortcode( 'biuro-contacts--employees', array( $this, 'employees_form' ) );
// add_shortcode( 'biuro-contacts--employers', array( $this, 'employers_form' ) );
// add_shortcode( 'biuro-contacts--position', array( $this, 'position_form' ) );
$this->loader->add_shortcode( "biuro-contacts--employees", $plugin_public, "employees_form", $priority = 10, $accepted_args = 2 );
$this->loader->add_shortcode( "biuro-contacts--employers", $plugin_public, "employers_form", $priority = 10, $accepted_args = 2 );
$this->loader->add_shortcode( "biuro-contacts--position", $plugin_public, "position_form", $priority = 10, $accepted_args = 2 );
}
/**
......
......@@ -30,6 +30,6 @@ if ( ! defined( 'WPINC' ) ) die;
include_once('biuro-contacts-public--employees-quick--step-2.php');
endif;
?>
<input type="hidden" name="action" value="employees_quick_post">
<?php wp_nonce_field('employees_quick_post_nonce'); ?>
<input type="hidden" name="action" value="employees_post">
<?php wp_nonce_field('employees_post_nonce'); ?>
</form>
......@@ -78,6 +78,6 @@ $_nonce = wp_create_nonce( 'my_post_form_nonce' );
<?php endif; ?>
</div><!-- .c-form--row -->
<input type="hidden" name="action" value="employers_quick">
<?php wp_nonce_field('employers_quick_nonce', 'employers_quick_nonce'); ?>
<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>
<?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;
?>
<?php
$nameValue = $_SESSION['employees--name-value'];
$nameStatus = $_SESSION['employees--name-status'];
$nameMessage = $_SESSION['employees--name-message'];
?>
<div class="c-form--row">
<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>
<?php if ($nameMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $nameStatus; ?>">
<?php echo $nameMessage; ?>
</div>
<?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'); ?></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>
<?php if ($phoneMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $phoneStatus; ?>">
<?php echo $phoneMessage; ?>
</div>
<?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'); ?></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>
<?php if ($emailMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $emailStatus; ?>">
<?php echo $emailMessage; ?>
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<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"><?php _e('Submit', 'biuro'); ?></button>
</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; ?>>
<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; ?>">
<?php echo $agreeMessage; ?>
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<?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;
?>
<div class="c-form--row">
<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">
</div>
</div><!-- .c-form--row -->
<div class="c-form--row">
<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 -->
<div class="c-form--row">
<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="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"><?php _e('Noster apster lorem ipsum dolor sit amet, consectetur adipisicing elit?', 'biuro'); ?></label>
</div>
</div><!-- .c-form--row -->
......@@ -18,51 +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="ContactFormEmployee_ContactFormEmployee" action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method="post" enctype="multipart/form-data" 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--employees">
<ul class="form">
<li>
<label for="ContactFormEmployee_ContactFormEmployee_Name">Name (mandatory field):</label>
<input type="text" class="text holder-required <?php if ($response) { echo 'error'; } ?>" id="ContactFormEmployee_ContactFormEmployee_Name" name="Name" value="">
<?php if ($response) : ?>
<div id="errorname" class="errormessage">"Name (mandatory field):" is required.</div>
<?php endif; ?>
</li>
<li>
<label for="ContactFormEmployee_ContactFormEmployee_Email">E-mail (mandatory field):</label>
<input type="text" class="text holder-required <?php if ($response) { echo 'error'; } ?>" id="ContactFormEmployee_ContactFormEmployee_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="ContactFormEmployee_ContactFormEmployee_Phone">Telephone number:</label>
<input type="text" class="text" id="ContactFormEmployee_ContactFormEmployee_Phone" name="Phone" value="">
</li>
<li>
<label for="ContactFormEmployee_ContactFormEmployee_Phone">City:</label>
<select id="ContactFormEmployee_ContactFormEmployee_City" name="City"><option selected="selected" value="">Choose the nearest city</option><option value="31">Vilnius</option><option value="32">Kaunas</option><option value="33">Klaipėda</option><option value="34">Šilutė</option><option value="35">Utena</option><option value="36">Panevėžys</option><option value="37">Šiauliai</option><option value="38">Plungė</option><option value="41">Marijampolė</option><option value="44">Ukmergė</option></select>
</li>
<li>
<label for="ContactFormEmployee_ContactFormEmployee_Comments">Your question (mandatory field):</label>
<textarea id="ContactFormEmployee_ContactFormEmployee_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>
<label for="ContactFormEmployee_ContactFormEmployee_Cvfield">Curriculum vitae:</label>
<input type="file" name="Cvfield" id="ContactFormEmployee_ContactFormEmployee_Cvfield"><input type="hidden" name="MAX_FILE_SIZE" value="">
</li>
<li class="last">
<input class="action " id="ContactFormEmployee_ContactFormEmployee_action_SendContactForm" type="submit" name="action-submit" value="Send" title="Send" onclick="ga('send', 'event', 'ContactFormEmployee', 'Button', 'SendContactFormEmployee');">
</li>
</ul>
<?php
if ( !$_SESSION['employees--step'] ):
include_once('biuro-contacts-public--employees--step-1.php');
else:
include_once('biuro-contacts-public--employees--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;
?>
<div class="c-form--row">
<button type="submit" class="o-btn c-btn--main c-btn--fill" name="submit" value="1"><?php _e('Candidate', 'biuro'); ?></button>
</div><!-- .c-form--row -->
<?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;
?>
<?php
$nameValue = $_SESSION['position--name-value'];
$nameStatus = $_SESSION['position--name-status'];
$nameMessage = $_SESSION['position--name-message'];
?>
<div class="c-form--row">
<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>
<?php if ($nameMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $nameStatus; ?>">
<?php echo $nameMessage; ?>
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<?php
$phoneValue = $_SESSION['position--phone-value'];
$phoneStatus = $_SESSION['position--phone-status'];
$phoneMessage = $_SESSION['position--phone-message'];
?>
<div class="c-form--row">
<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>
<?php if ($phoneMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $phoneStatus; ?>">
<?php echo $phoneMessage; ?>
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<?php
$emailValue = $_SESSION['position--email-value'];
$emailStatus = $_SESSION['position--email-status'];
$emailMessage = $_SESSION['position--email-message'];
?>
<div class="c-form--row">
<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>
<?php if ($emailMessage): ?>
<div class="c-form--validation c-form--validation-<?php echo $emailStatus; ?>">
<?php echo $emailMessage; ?>
</div>
<?php endif; ?>
</div><!-- .c-form--row -->
<div class="c-form--row">
<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="">
</div>
</div><!-- .c-form--row -->
<div class="c-form--row">
<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 -->
<div class="c-form--row">
<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 -->
<?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; ?>>
<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; ?>">
<?php echo $agreeMessage; ?>
</div>
<?php endif; ?>
</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"><?php _e('Noster apster lorem ipsum dolor sit amet, consectetur adipisicing elit?', 'biuro'); ?></label>
</div>
</div><!-- .c-form--row -->
<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="2"><?php _e('Candidate', 'biuro'); ?></button>
</div>
</div><!-- .c-form--row -->
......@@ -18,42 +18,19 @@
*/
// 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 action="<?php echo esc_url( admin_url('admin-post.php') ); ?>" method="post" enctype="multipart/form-data" class="c-form c-form--position">
<?php
if ( !$_SESSION['position--step'] ):
include_once('biuro-contacts-public--position--step-1.php');
else:
include_once('biuro-contacts-public--position--step-2.php');
endif;
?>
<input type="hidden" name="job_id" value="<?php echo $job_id; ?>">
<input type="hidden" name="action" value="position_post">
<?php wp_nonce_field('position_post_nonce'); ?>
</form>
......@@ -7,7 +7,7 @@ body {
line-height: var(--typo--line-height);
color: var(--color--gray-darker);
font-family: var( --typo--font-face);
background: var(--color--gray-light);
background: #f8f8f8;
display: flex;
flex-direction: column;
......
......@@ -11,16 +11,9 @@ l-: layout classes
@import '_layout--aside.css';
@import '_layout--main.css';
@import '_layout--footer.css';
@import '_layout--map.css';
@import '_layout--nav.css';
@import '_layout--section.css';
/* critical:start */
.l-section { padding: 30px 0; background: #222; }
.l-section--front-page { height: 380px; background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(190,122,106,1) 73%, rgba(244,194,164,1) 100%); margin-bottom: 92px; }
.l-section--sales-page { height: 380px; background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(177,170,149,1) 100%); }
.l-section--inner { width: 1030px; margin: 0 auto; }
/* critical:end */
......@@ -11,7 +11,10 @@
@media (--min--small) {
flex: 0 0 420px; padding-left: 100px;
}
}
.l-aside--divisions { flex: 0 0 385px; margin: -315px 0 0 55px; z-index: 50; }
.l-aside--regions { flex: 0 0 385px; margin: -315px 0 0 55px; z-index: 50; }
/* critical:end */
......@@ -21,15 +21,12 @@
}
}
.l-content--main { flex: 1 1 auto; max-width: 1070px; padding: 35px 20px 90px; margin: 0 auto;
.l-content--main { width: 100%; flex: 1 1 auto; max-width: 1070px; padding: 35px 20px 90px; margin: 0 auto;
h1 { color: #2A3644; font-size: 25px; font-weight: 500; line-height: 38px; }
h2 { color: #2A3644; font-size: 21px; font-weight: 500; line-height: 30px; }
}
/*.l-content--heading { flex: 1 1 100%; }*/
/* critical:end */
.l-content--divisions { width: 100%; max-width: 1040px; padding-right: 20px; padding-left: 20px; margin: 0 auto 200px; display: flex; }
/** { border: 1px solid #000; }*/
/*.l-content { box-shadow: inset 0 0 0 1px green; }*/
.l-content--regions { width: 100%; max-width: 1040px; padding-right: 20px; padding-left: 20px; margin: 0 auto 200px; display: flex; }
......@@ -2,12 +2,16 @@
/* critical:start */
.l-main {
@media (--min--small) {
flex: 1 1 100%;
}
.l-main { flex: 1 1 100%;
/* @media (--min--small) {
}*/
}
.l-main--content { background-color: #FFFFFF; padding: 40px 50px; }
.l-main--divisions { flex: 0 0 600px; }
.l-main--regions { flex: 0 0 600px; }
/* critical:end */
/* ------------- Layout: map ------------- */
/* critical:start */
.l-map { height: 330px; margin-bottom: 35px; }
/* critical:end */
/* ------------- Layout: section ------------- */
/* critical:start */
.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--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: 1030px; margin: 0 auto; }
/* critical:end */
......@@ -2,10 +2,10 @@
/* critical:start */
/* critical:end */
.c-divisions { display: flex; flex-wrap: wrap; }
.c-divisions--list { display: flex; flex-wrap: wrap; margin-bottom: 16px; }
.c-division { flex: 0 0 auto; height: 30px; margin: 0 10px 10px 0; padding: 0 20px; border-radius: 3px; background-color: #E8F0FF; color: gray; font-weight: 500; line-height: 30px; white-space: nowrap; text-decoration: none; }
.c-divisions--list-item { margin-right: 10px; padding: 0 12px; font-weight: var(--typo--weight-regular); line-height: 1.5; cursor: pointer; }
a.c-division { color: #004ED4; }
.is-divisions--list-item-active { background: #ccc; font-weight: var(--typo--weight-bold); }
/* critical:end */
......@@ -2,7 +2,9 @@
/* critical:start */
.c-form { padding: 38px 35px 20px; border-radius: 3px; background-color: #ffffff; box-shadow: 0 1px 47px 0 #ECF5FF; }
.c-form { }
.c-form--employees { 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; }
......
: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;background:var(--color--gray-light);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}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-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;padding:50px 70px;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--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{-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-main--content{background-color:#fff;padding:40px 50px}.l-footer{background:#1d2a3a;background:var(--color--blue-dark);color:#fff;padding-top:70px}.l-section{padding:30px 0;background:#222}.l-section--front-page{height:380px;background:-webkit-gradient(linear,left top,right top,from(#fff),color-stop(73%,#be7a6a),to(#f4c2a4));background:linear-gradient(90deg,#fff,#be7a6a 73%,#f4c2a4);margin-bottom:92px}.l-section--sales-page{height:380px;background:-webkit-gradient(linear,left top,right top,from(#fff),to(#b1aa95));background:linear-gradient(90deg,#fff,#b1aa95)}.l-section--inner{width:1030px;margin:0 auto}.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:#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 20px;content:"";width:7px;height:7px;border:1px solid #004ed4;border-width:2px 2px 0 0;-webkit-transform:rotate(45deg);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{margin:0;padding:0;list-style:none}.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}.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-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{padding:38px 35px 20px;border-radius:3px;background-color:#fff;-webkit-box-shadow:0 1px 47px 0 #ecf5ff;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}.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-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-nav--main{display:-webkit-box;display:-ms-flexbox;display:flex}.c-nav--sub{display:none}.c-phone{white-space:nowrap;margin-right:35px;padding:10px 0;text-decoration:none;color:inherit;font-weight:500}.c-phone svg{float:left;margin:-6px 5px 0 0}.c-search{height:60px;background-color:#fff;border-radius:3px}.c-search,.c-search .awesomplete{display:-webkit-box;display:-ms-flexbox;display:flex}.c-search .awesomplete{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.c-search .awesomplete>ul{top:60px;padding-top:10px}.c-search .awesomplete li{padding:10px 15px;margin-bottom:10px;cursor:pointer}.c-search .awesomplete li:hover{color:#000}.c-search--input{border:0;padding:0 15px;margin:0;height:60px;line-height:60px;background-color:#fff}.c-search--location{border-radius:3px 0 0 3px}.c-search--keyword,.c-search--location{border-right:1px solid rgba(178,182,187,.46)}.l-section--front-page .c-search{height:70px}.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}.c-trust--logo{border:1px solid #fff;width:100px;height:40px}.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 h1{padding-left:300px}.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 420px;flex:0 0 420px;padding-left:100px}.l-main{-ms-flex:1 1 100%;flex:1 1 100%}.l-main,.l-nav{-webkit-box-flex:1}.l-nav{-ms-flex:1 1 auto;flex:1 1 auto}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
</main><!-- .l-main -->
<?php
if ( get_page_template_slug() == 'search.php' || is_search() ):
?>
</div><!-- .l-content -->
<?php
endif;
if ( !is_search() && get_post_type() == 'job' ):
?>
<aside class="l-aside--position">
<?php
get_template_part( 'template-parts/layout/aside', 'job' );
?>
</aside><!-- .l-aside -->
</div><!-- .l-content--position-inner -->
<?php
endif;
?>
</div><!-- .l-content -->
<footer class="l-footer">
<div class="l-inner">
......@@ -113,7 +92,7 @@ document.querySelectorAll('.js-job-action').forEach(function (node) {
});
</script>
<script src="/wp-content/themes/biuro/js/main-dd8a9e47.min.js" async></script>
<script src="/wp-content/themes/biuro/js/main.min.js" async></script>
<?php wp_footer(); ?>
</body>
</html>
......@@ -15,14 +15,27 @@
get_header();
?>
<div class="l-section l-section--front-page">
<div class="l-section--inner">
<?php
// while ( have_posts() ) :
while ( have_posts() ) :
?>
<div class="c-heading c-heading--front-page">
<?php
the_post();
the_content();
?>
</div>
<?php
endwhile;
get_search_form();
?>
</div>
</div>
// the_post();
// the_content();
// endwhile;
?>
<div id="content">
<main id="main" class="l-main">
<div class="c-jobs">
<div class="c-jobs--inner">
......@@ -110,12 +123,15 @@ endif;
</div>
<div class="c-contact--form">
<?php
echo do_shortcode('[biuro-contacts--employees-quick]');
?>
<?php
echo do_shortcode('[biuro-contacts--employees]');
?>
</div>
</div><!-- .c-contact--inner -->
</div><!-- .c-contact -->
</main><!-- .l-main -->
</div><!-- #content -->
<?php get_footer();
......@@ -32,16 +32,16 @@ define('cityID', $cityID);
?>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<style><?php include 'css/core-c4c9e8d9d3.min.css'; ?></style>
<style><?php include 'css/core.min.css'; ?></style>
<link rel="preload" href="/wp-content/themes/biuro/css/main-1fcfec4092.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/fonts/pt_sans_narrow.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/wp-content/themes/biuro/fonts/pt_sans_narrow_bold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/wp-content/themes/biuro/fonts/bebas-neue.woff2" as="font" type="font/woff2" crossorigin>
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-1fcfec4092.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css">
</noscript>
<?php wp_head(); ?>
......@@ -90,79 +90,3 @@ global $post;
</div>
</div>
</header>
<?php
if ( is_search() || get_post_type() != 'job' ):
?>
<div class="l-section <?php if ( is_front_page() ): ?> l-section--front-page <?php elseif (get_page_template_slug() == 'sales-page.php'): ?> l-section--sales-page <?php endif; ?>">
<div class="l-section--inner">
<?php
if ( is_front_page() || get_page_template_slug() == 'sales-page.php' ):
while ( have_posts() ) :
?>
<div class="c-heading <?php if ( is_front_page() ): ?> c-heading--front-page <?php elseif (get_page_template_slug() == 'sales-page.php'): ?> c-heading--sales-page <?php endif; ?>">
<?php
the_post();
the_content();
?>
</div>
<?php
endwhile;
endif;
// if ( is_search() ):
// wp_parse_str( $query_string, $searchQuery );
// endif;
if (get_page_template_slug() != 'sales-page.php'):
get_search_form();
endif;
?>
</div>
</div>
<?php
/*
<div class="l-inner" style="box-shadow: inset 0 0 0 1px blue; <?php if ( is_front_page() ): ?> padding-top: 5em; padding-bottom: 5em; <?php else:; ?> padding-top: 1em; padding-bottom: 1em; <?php endif; ?>">
get_search_form();
// get_template_part( 'template-parts/layout/breadcrumb' );
</div>
*/
endif;
?>
<div id="content" <?php if ( !is_search() && get_post_type() == 'job' ): ?> class="l-content--position" <?php elseif ( !is_front_page() && get_page_template_slug() == '' && get_post_type() == 'page' ): ?>class="l-content--main" <?php endif; ?>>
<?php
if ( get_page_template_slug() == 'search.php' || is_search() ):
?>
<div class="l-content l-content--heading">
<?php
while ( have_posts() ) :
the_post();
the_content();
endwhile;
?>
</div>
<div class="l-content">
<aside class="l-aside">
<?php
get_template_part( 'template-parts/layout/aside', 'job-list' );
?>
</aside><!-- .l-aside -->
<?php
endif;
if ( !is_search() && get_post_type() == 'job' ):
?>
<div class="l-content--position-inner">
<?php
endif;
?>
<main id="main" class="l-main <?php if ( !is_front_page() && get_page_template_slug() == '' && get_post_type() == 'page' ): ?> l-main--content <?php endif; ?>">
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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