Commit 773793dd authored by Simon's avatar Simon

Merge branch 'design' into dev

parents 890b1459 fd9dad89
...@@ -43,6 +43,10 @@ ...@@ -43,6 +43,10 @@
#### Polylang #### Polylang
#### Yoast SEO #### Yoast SEO
### Basic Auth
- biuro_wp_api
- LabAiGeRsKodsu89wapI
### SEO ### SEO
- [Biuro SEO auditas](https://docs.google.com/document/d/1FiwVoiLvGGmi9V-HPBgJ3gsh3wGswt27csgvfdTU24w/edit?usp=sharing) - [Biuro SEO auditas](https://docs.google.com/document/d/1FiwVoiLvGGmi9V-HPBgJ3gsh3wGswt27csgvfdTU24w/edit?usp=sharing)
- [Biuro raktinių žodžių analizė](https://docs.google.com/spreadsheets/d/1ggnqKuGxFFkLgI6NDZq4PXpRY_whdHX0kjZj7pCP_fk/edit?ts=5b5eaa62#gid=0) - [Biuro raktinių žodžių analizė](https://docs.google.com/spreadsheets/d/1ggnqKuGxFFkLgI6NDZq4PXpRY_whdHX0kjZj7pCP_fk/edit?ts=5b5eaa62#gid=0)
...@@ -108,7 +112,7 @@ Can't share C drive ...@@ -108,7 +112,7 @@ Can't share C drive
- docker load --input ourdemo.tar - docker load --input ourdemo.tar
- docker build -t biuro/web:0.0.9 . - docker build -t biuro/web:0.0.10 .
- docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs - docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
- sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs - sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
- docker push biuro/web:0.0.9 - docker push biuro/web:0.0.9
......
This diff is collapsed.
...@@ -35,8 +35,8 @@ export function server () { ...@@ -35,8 +35,8 @@ export function server () {
bs.init({ bs.init({
logPrefix: 'Biuro', logPrefix: 'Biuro',
socket: { socket: {
// domain: 'localhost:443' domain: 'dev.biuro.lt:2000'
domain: 'https://10.0.75.1:3000/' // domain: 'https://10.0.75.1:3000/'
// // port: 2000 // // port: 2000
}, },
// proxy: { // proxy: {
...@@ -45,13 +45,14 @@ export function server () { ...@@ -45,13 +45,14 @@ export function server () {
// }, // },
proxy: { proxy: {
target: 'https://dev.biuro.lt/', target: 'https://dev.biuro.lt/',
proxyRes: [ // target: 'dev.biuro.lt:443',
function (proxyRes, req, res) { // proxyRes: [
// console.log(proxyRes.headers); // function (proxyRes, req, res) {
console.log(req); // // console.log(proxyRes.headers);
} // console.log(req);
], // }
ws: true // ],
ws: false
}, },
// httpModule: http2, // httpModule: http2,
https: { https: {
...@@ -64,7 +65,7 @@ export function server () { ...@@ -64,7 +65,7 @@ export function server () {
// ], // ],
ghostMode: false, ghostMode: false,
open: false, open: false,
// port: 2000, port: 2000,
// server: false, // server: false,
ui: false, ui: false,
// notify: false, // notify: false,
......
...@@ -100,77 +100,4 @@ class Biuro_Contacts_Admin { ...@@ -100,77 +100,4 @@ class Biuro_Contacts_Admin {
} }
// date DEFAULT '0000-00-00 00:00:00',
// name tinytext,
// surname tinytext,
// email varchar(128) DEFAULT '',
// phone varchar(128) DEFAULT '',
// city varchar(255) DEFAULT '',
// comment longtext DEFAULT '',
// cv text DEFAULT '',
public function get_rows_from_db_as_associative_array() {
global $wpdb;
$sql = "SELECT * FROM `" . $wpdb->prefix . "biuro_employees` ORDER BY id DESC";
return $wpdb->get_results( $sql, ARRAY_A );
}
public function insert_row_to_db() {
global $wpdb;
$table = $wpdb->prefix . 'biuro_employees';
$data = array(
'db_field_tinytext' => 'SOME TEXT',
'db_field_datetime' => date( 'Y-m-d H:i:s' ),
'db_field_varchar' => 'SOME OTHER TEXT',
'db_field_mediumint' => 123,
'db_field_text' => 'LONGER TEXT',
);
$format = array( '%s','%s', '%s', '%d', '%s' );
$wpdb->insert( $table, $data, $format );
return $wpdb->insert_id;
}
public function update_row_in_db() {
global $wpdb;
$table = $wpdb->prefix . 'biuro_employees';
$data = array(
'db_field_tinytext' => 'SOME TEXT',
'db_field_datetime' => date( 'Y-m-d H:i:s' ),
'db_field_varchar' => 'SOME OTHER TEXT',
'db_field_mediumint' => 123,
'db_field_text' => 'LONGER TEXT',
);
$format = array( '%s','%s', '%s', '%d', '%s' );
$where = array(
'ID' => 1
);
$where_format = array(
'%d'
);
return $wpdb->insert( $table, $data, $where, $format, $where_format );
}
public function delete_row_from_db() {
global $wpdb;
$table = $wpdb->prefix . 'biuro_employees';
$where = array(
'ID' => 1
);
$where_format = array(
'%d'
);
return $wpdb->delete( $table, $where, $where_format );
}
public function use_prepare_db_query() {
global $wpdb;
$sql = "UPDATE $wpdb->posts SET post_parent = %d WHERE ID = %d AND post_status = %s";
return $wpdb->query( $wpdb->prepare( $sql, 7, 15, 'static' ) );
}
} }
...@@ -52,7 +52,7 @@ class Biuro_Contacts_Activator { ...@@ -52,7 +52,7 @@ class Biuro_Contacts_Activator {
global $wpdb; global $wpdb;
$table_name = $wpdb->prefix . "biuro_employees"; $table_name = $wpdb->prefix . "biuro_employees";
$plugin_name_db_version = get_option( 'biuro-contacts_db_version', '1.0' ); $version = get_option( 'biuro-contacts_db_version', '1.0' );
if( $wpdb->get_var( "show tables like '{$table_name}'" ) != $table_name || if( $wpdb->get_var( "show tables like '{$table_name}'" ) != $table_name ||
version_compare( $version, '1.0' ) < 0 ) { version_compare( $version, '1.0' ) < 0 ) {
...@@ -61,13 +61,16 @@ class Biuro_Contacts_Activator { ...@@ -61,13 +61,16 @@ class Biuro_Contacts_Activator {
id mediumint(9) NOT NULL AUTO_INCREMENT, id mediumint(9) NOT NULL AUTO_INCREMENT,
created datetime DEFAULT '0000-00-00 00:00:00', created datetime DEFAULT '0000-00-00 00:00:00',
name tinytext, name tinytext,
surname tinytext,
email varchar(128) DEFAULT '', email varchar(128) DEFAULT '',
phone varchar(128) DEFAULT '', phone varchar(128) DEFAULT '',
city varchar(255) DEFAULT '', city varchar(255) DEFAULT null,
comment longtext DEFAULT '', city_id int DEFAULT null,
cv text DEFAULT '', message longtext DEFAULT null,
PRIMARY KEY (id) cv text DEFAULT null,
updated datetime DEFAULT '0000-00-00 00:00:00',
confirm tinyint DEFAULT 0,
job_id int DEFAULT null,
PRIMARY KEY (id)
) $charset_collate;"; ) $charset_collate;";
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
......
...@@ -172,11 +172,14 @@ class Biuro_Contacts { ...@@ -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_styles' );
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); $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_employers_post', $plugin_public, 'employers_post');
$this->loader->add_action('admin_post_nopriv_employees_quick_post', $plugin_public, 'employees_quick_post'); $this->loader->add_action('admin_post_nopriv_employers_post', $plugin_public, 'employers_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_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' ); // $this->loader->add_action( 'init', $plugin_public, 'register_shortcodes' );
...@@ -187,15 +190,9 @@ class Biuro_Contacts { ...@@ -187,15 +190,9 @@ class Biuro_Contacts {
* *
* @link https://github.com/DevinVinson/WordPress-Plugin-Boilerplate/issues/262 * @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--employees", $plugin_public, "employees_form", $priority = 10, $accepted_args = 2 );
$this->loader->add_shortcode( "biuro-contacts--employers-quick", $plugin_public, "employers_quick_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 );
// 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' ) );
} }
/** /**
......
...@@ -20,54 +20,52 @@ ...@@ -20,54 +20,52 @@
if ( ! defined( 'WPINC' ) ) die; 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 <?php
$nameValue = get_transient( 'employees-quick--name-value' ); $nameValue = $_SESSION['employees--name-value'];
$nameStatus = get_transient( 'employees-quick--name-status' ); $nameStatus = $_SESSION['employees--name-status'];
$nameMessage = get_transient( 'employees-quick--name-message' ); $nameMessage = $_SESSION['employees--name-message'];
?> ?>
<div class="c-form--row"> <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"> <div class="c-form--input-wrap <?php if ($nameStatus) { echo "c-form--input-wrap--$nameStatus"; } ?>">
<input type="text" class="c-form--input <?php if ($nameStatus) { echo "c-form--input--$nameStatus"; } ?>" id="form-name" name="name" value="<?php echo $nameValue; ?>"> <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> </div>
<?php if ($nameMessage): ?> <?php if ($nameMessage): ?>
<div class="c-form--validation-<?php echo $nameStatus; ?>"> <div class="c-form--validation c-form--validation-<?php echo $nameStatus; ?>">
<?php echo $nameMessage; ?> <?php echo $nameMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<?php <?php
$phoneValue = get_transient( 'employees-quick--phone-value' ); $phoneValue = $_SESSION['employees--phone-value'];
$phoneStatus = get_transient( 'employees-quick--phone-status' ); $phoneStatus = $_SESSION['employees--phone-status'];
$phoneMessage = get_transient( 'employees-quick--phone-message' ); $phoneMessage = $_SESSION['employees--phone-message'];
?> ?>
<div class="c-form--row"> <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"> <div class="c-form--input-wrap <?php if ($phoneStatus) { echo "c-form--input-wrap--$phoneStatus"; } ?>">
<input type="tel" class="c-form--input <?php if ($phoneStatus) { echo "c-form--input--$phoneStatus"; } ?>" id="form-phone" name="phone" value="<?php echo $phoneValue; ?>"> <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> </div>
<?php if ($phoneMessage): ?> <?php if ($phoneMessage): ?>
<div class="c-form--validation-<?php echo $phoneStatus; ?>"> <div class="c-form--validation c-form--validation-<?php echo $phoneStatus; ?>">
<?php echo $phoneMessage; ?> <?php echo $phoneMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<?php <?php
$emailValue = get_transient( 'employees-quick--email-value' ); $emailValue = $_SESSION['employees--email-value'];
$emailStatus = get_transient( 'employees-quick--email-status' ); $emailStatus = $_SESSION['employees--email-status'];
$emailMessage = get_transient( 'employees-quick--email-message' ); $emailMessage = $_SESSION['employees--email-message'];
?> ?>
<div class="c-form--row"> <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"> <div class="c-form--input-wrap <?php if ($emailStatus) { echo "c-form--input-wrap--$emailStatus"; } ?>">
<input type="email" class="c-form--input <?php if ($emailStatus) { echo "c-form--input--$emailStatus"; } ?>" id="form-email" name="email" value="<?php echo $emailValue; ?>"> <input type="email" class="c-form--input" id="form-email" name="email" value="<?php echo $emailValue; ?>">
</div> </div>
<?php if ($emailMessage): ?> <?php if ($emailMessage): ?>
<div class="c-form--validation-<?php echo $emailStatus; ?>"> <div class="c-form--validation c-form--validation-<?php echo $emailStatus; ?>">
<?php echo $emailMessage; ?> <?php echo $emailMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
...@@ -75,28 +73,23 @@ if ( ! defined( 'WPINC' ) ) die; ...@@ -75,28 +73,23 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--submit-wrap"> <div class="c-form--submit-wrap">
<button type="submit" class="c-form--submit" 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>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<?php <?php
$agreeValue = get_transient( 'employees-quick--agree-value' ); $agreeValue = $_SESSION['employees--agree-value'];
$agreeStatus = get_transient( 'employees-quick--agree-status' ); $agreeStatus = $_SESSION['employees--agree-status'];
$agreeMessage = get_transient( 'employees-quick--agree-message' ); $agreeMessage = $_SESSION['employees--agree-message'];
?> ?>
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--checkbox-wrap"> <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; ?>> <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> </div>
<?php if ($agreeMessage): ?> <?php if ($agreeMessage): ?>
<div class="c-form--validation-<?php echo $agreeStatus; ?>"> <div class="c-form--validation c-form--validation-<?php echo $agreeStatus; ?>">
<?php echo $agreeMessage; ?> <?php echo $agreeMessage; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<input type="hidden" name="action" value="employees_quick_post">
<?php wp_nonce_field('employees_quick_post_nonce'); ?>
</form>
...@@ -18,66 +18,37 @@ ...@@ -18,66 +18,37 @@
*/ */
// If this file is called directly, abort. // If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) die; 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"> <div class="c-form--row">
<label class="c-form--label" for="form-name">Name, Surname*</label> <label class="c-form--label" for="form-city"><?php _e('City', 'biuro'); ?></label>
<div class="c-form--input-wrap"> <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=""> <input type="text" class="c-form--input" id="form-city" name="city" value="" autofocus="autofocus">
</div> </div>
<?php if ($response): ?>
<div class="c-form--validation-error">
Name and Surname is required
</div>
<?php endif; ?>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-phone">Phone no.*</label> <label class="c-form--label" for="form-message"><?php _e('Message', 'biuro'); ?></label>
<div class="c-form--input-wrap"> <div class="c-form--textarea-wrap">
<input type="tel" class="c-form--input <?php if ($response) { echo 'c-form--input--error'; } ?>" id="form-phone" name="phone" value=""> <textarea name="message" id="form-message" cols="30" rows="3" class="c-form--textarea"></textarea>
</div> </div>
<?php if ($response): ?>
<div class="c-form--validation-error">
Phone number is required
</div>
<?php endif; ?>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<div class="c-form--row"> <div class="c-form--row">
<label class="c-form--label" for="form-email">Email address*</label> <label class="c-form--label" for="form-cv"><?php _e('CV', 'biuro'); ?></label>
<div class="c-form--input-wrap"> <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=""> <input type="file" class="c-form--input" id="form-cv" name="cv" value="">
</div> </div>
<?php if ($response): ?>
<div class="c-form--validation-error">
Email address is required
</div>
<?php endif; ?>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--submit-wrap"> <div class="c-form--submit-wrap">
<button type="submit" class="c-form--submit" name="submit" value="1">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>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<div class="c-form--row"> <div class="c-form--row">
<div class="c-form--checkbox-wrap"> <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"> <input id="form-confirm" type="checkbox" class="c-form--checkbox" name="confirm" 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> <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>
<?php if ($response): ?>
<div class="c-form--validation-error">
You have to agree with conditions
</div>
<?php endif; ?>
</div><!-- .c-form--row --> </div><!-- .c-form--row -->
<input type="hidden" name="action" value="employers_quick">
<?php wp_nonce_field('employers_quick_nonce', 'employers_quick_nonce'); ?>
</form>
...@@ -18,51 +18,18 @@ ...@@ -18,51 +18,18 @@
*/ */
// If this file is called directly, abort. // If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) die; 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"> <?php
<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>
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> </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['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"><?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['employers--phone-value'];
$phoneStatus = $_SESSION['employers--phone-status'];
$phoneMessage = $_SESSION['employers--phone-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-phone"><?php _e('Phone no.', 'biuro'); ?></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['employers--email-value'];
$emailStatus = $_SESSION['employers--email-status'];
$emailMessage = $_SESSION['employers--email-message'];
?>
<div class="c-form--row">
<label class="c-form--label" for="form-email"><?php _e('Email address', 'biuro'); ?></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['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"><?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="">
</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 -->
<?php /*
<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,52 +18,18 @@ ...@@ -18,52 +18,18 @@
*/ */
// If this file is called directly, abort. // If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) die; 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> <?php
<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>
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> </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 @@ ...@@ -18,42 +18,19 @@
*/ */
// If this file is called directly, abort. // If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) die; 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"> <form action="<?php echo esc_url( admin_url('admin-post.php') ); ?>" method="post" enctype="multipart/form-data" class="c-form c-form--position">
<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">
<?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> </form>
...@@ -24,6 +24,7 @@ class Biuro_Feedbacks extends WP_Widget { ...@@ -24,6 +24,7 @@ class Biuro_Feedbacks extends WP_Widget {
public function form( $instance ) { public function form( $instance ) {
// Set widget defaults // Set widget defaults
$defaults = array( $defaults = array(
'title' => '',
'name1' => '', 'name1' => '',
'img1' => '', 'img1' => '',
'feedback1' => '', 'feedback1' => '',
...@@ -54,6 +55,10 @@ class Biuro_Feedbacks extends WP_Widget { ...@@ -54,6 +55,10 @@ class Biuro_Feedbacks extends WP_Widget {
// Parse current settings with defaults // Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?> extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( ${'title'} ); ?>" />
</p>
<?php <?php
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 8; $i++):
?> ?>
...@@ -79,6 +84,8 @@ class Biuro_Feedbacks extends WP_Widget { ...@@ -79,6 +84,8 @@ class Biuro_Feedbacks extends WP_Widget {
public function update( $new_instance, $old_instance ) { public function update( $new_instance, $old_instance ) {
$instance = $old_instance; $instance = $old_instance;
$instance['title'] = isset( $new_instance['title'] ) ? wp_strip_all_tags( $new_instance['title'] ) : '';
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 8; $i++):
$instance['name' . $i] = isset( $new_instance['name' . $i] ) ? wp_strip_all_tags( $new_instance['name' . $i] ) : ''; $instance['name' . $i] = isset( $new_instance['name' . $i] ) ? wp_strip_all_tags( $new_instance['name' . $i] ) : '';
$instance['img' . $i] = isset( $new_instance['img' . $i] ) ? wp_strip_all_tags( $new_instance['img' . $i] ) : ''; $instance['img' . $i] = isset( $new_instance['img' . $i] ) ? wp_strip_all_tags( $new_instance['img' . $i] ) : '';
...@@ -92,6 +99,8 @@ class Biuro_Feedbacks extends WP_Widget { ...@@ -92,6 +99,8 @@ class Biuro_Feedbacks extends WP_Widget {
public function widget( $args, $instance ) { public function widget( $args, $instance ) {
extract( $args ); extract( $args );
$title = isset( $instance['title'] ) ?$instance['title'] : '';
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 8; $i++):
${'name' . $i} = isset( $instance['name' . $i] ) ?$instance['name' . $i] : ''; ${'name' . $i} = isset( $instance['name' . $i] ) ?$instance['name' . $i] : '';
${'img' . $i} = isset( $instance['img' . $i] ) ?$instance['img' . $i] : ''; ${'img' . $i} = isset( $instance['img' . $i] ) ?$instance['img' . $i] : '';
...@@ -101,26 +110,44 @@ class Biuro_Feedbacks extends WP_Widget { ...@@ -101,26 +110,44 @@ class Biuro_Feedbacks extends WP_Widget {
// WordPress core before_widget hook (always include ) // WordPress core before_widget hook (always include )
echo $before_widget; echo $before_widget;
// Display the widget // Display the widget
echo '<div class="c-biuro-feedbacks">'; echo '<div class="c-feedbacks">';
for ($i = 1; $i <= 8; $i++): if ( $title != "" ) {
echo '<h2 class="c-feedbacks--heading">' . $title . '</h2>';
}
if ( ${'name' . $i} != "" && ${'feedback' . $i} != ""): echo '<div class="c-feedbacks--inner">';
echo '<div class="c-biuro-feedbacks--item">'; echo '<div class="swiper-wrapper">';
if ( ${'name' . $i} != "" ) { for ($i = 1; $i <= 8; $i++):
echo '<h3>' . ${'name' . $i} . ${'img' . $i} . '</h3>';
}
if ( ${'feedback' . $i} != "" ) { if ( ${'name' . $i} != "" && ${'feedback' . $i} != ""):
echo '<p>' . ${'feedback' . $i} . '</p>'; echo '<div class="swiper-slide">';
} echo '<div class="c-feedbacks--section">';
echo '<div class="c-feedbacks--section-inner">';
echo '</div>'; if ( ${'img' . $i} != "" ) {
endif; echo '<img src="/wp-content/themes/biuro/i/feedbacks/' . ${'img' . $i} . '" class="c-feedbacks--img" width="85px" height="83px"/>';
}
endfor; if ( ${'feedback' . $i} != "" ) {
echo '<div class="c-feedbacks--feedback">' . ${'feedback' . $i} . '</div>';
}
if ( ${'name' . $i} != "" ) {
echo '<div class="c-feedbacks--name">' . ${'name' . $i} . '</div>';
}
echo '</div>';
echo '</div>';
echo '</div>';
endif;
endfor;
echo '</div>';
echo '<div class="swiper-pagination"></div>';
echo '</div>';
echo '</div>'; echo '</div>';
// WordPress core after_widget hook (always include ) // WordPress core after_widget hook (always include )
......
...@@ -60,19 +60,14 @@ class Biuro_HTML extends WP_Widget { ...@@ -60,19 +60,14 @@ class Biuro_HTML extends WP_Widget {
// WordPress core before_widget hook (always include ) // WordPress core before_widget hook (always include )
echo $before_widget; echo $before_widget;
// Display the widget
// echo '<div class="c-biuro-html">';
// Display content field if ( $title != "" ) {
if ( $title != "" ) { echo '<h3>' . $title . '</h3>';
echo '<h3>' . $title . '</h3>'; }
}
if ( $content != "" ) { if ( $content != "" ) {
echo $content; echo '<p>' . $content . '</p>';
} }
// echo '</div>';
// WordPress core after_widget hook (always include ) // WordPress core after_widget hook (always include )
echo $after_widget; echo $after_widget;
......
...@@ -24,36 +24,29 @@ class Biuro_Sections extends WP_Widget { ...@@ -24,36 +24,29 @@ class Biuro_Sections extends WP_Widget {
public function form( $instance ) { public function form( $instance ) {
// Set widget defaults // Set widget defaults
$defaults = array( $defaults = array(
'title' => '',
'title1' => '', 'title1' => '',
'img1' => '',
'description1' => '', 'description1' => '',
'content1' => '', 'content1' => '',
'title2' => '', 'title2' => '',
'img2' => '',
'description2' => '', 'description2' => '',
'content2' => '', 'content2' => '',
'title3' => '', 'title3' => '',
'img3' => '',
'description3' => '', 'description3' => '',
'content3' => '', 'content3' => '',
'title4' => '', 'title4' => '',
'img4' => '',
'description4' => '', 'description4' => '',
'content4' => '', 'content4' => '',
'title5' => '', 'title5' => '',
'img5' => '',
'description5' => '', 'description5' => '',
'content5' => '', 'content5' => '',
'title6' => '', 'title6' => '',
'img6' => '',
'description6' => '', 'description6' => '',
'content6' => '', 'content6' => '',
'title7' => '', 'title7' => '',
'img7' => '',
'description7' => '', 'description7' => '',
'content7' => '', 'content7' => '',
'title8' => '', 'title8' => '',
'img8' => '',
'description8' => '', 'description8' => '',
'content8' => '', 'content8' => '',
); );
...@@ -62,17 +55,18 @@ class Biuro_Sections extends WP_Widget { ...@@ -62,17 +55,18 @@ class Biuro_Sections extends WP_Widget {
// Parse current settings with defaults // Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?> extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Heading', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( ${'title'} ); ?>" />
</p>
<?php <?php
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 6; $i++):
?> ?>
<p> <p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>"><?php _e( 'Title', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label> <label for="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>"><?php _e( 'Title', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' . $i ) ); ?>" type="text" value="<?php echo esc_attr( ${'title' . $i} ); ?>" /> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' . $i ) ); ?>" type="text" value="<?php echo esc_attr( ${'title' . $i} ); ?>" />
</p> </p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'img' . $i ) ); ?>"><?php _e( 'Image', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'img' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'img' . $i ) ); ?>" type="text" value="<?php echo esc_attr( ${'img' . $i} ); ?>" />
</p>
<p> <p>
<label for="<?php echo esc_attr( $this->get_field_id( 'description' . $i ) ); ?>"><?php _e( 'Description', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label> <label for="<?php echo esc_attr( $this->get_field_id( 'description' . $i ) ); ?>"><?php _e( 'Description', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'description' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'description' . $i ) ); ?>" rows="4"><?php echo wp_kses_post( ${'description' . $i} ); ?></textarea> <textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'description' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'description' . $i ) ); ?>" rows="4"><?php echo wp_kses_post( ${'description' . $i} ); ?></textarea>
...@@ -93,9 +87,10 @@ class Biuro_Sections extends WP_Widget { ...@@ -93,9 +87,10 @@ class Biuro_Sections extends WP_Widget {
public function update( $new_instance, $old_instance ) { public function update( $new_instance, $old_instance ) {
$instance = $old_instance; $instance = $old_instance;
for ($i = 1; $i <= 8; $i++): $instance['title'] = isset( $new_instance['title'] ) ? wp_strip_all_tags( $new_instance['title'] ) : '';
for ($i = 1; $i <= 6; $i++):
$instance['title' . $i] = isset( $new_instance['title' . $i] ) ? wp_strip_all_tags( $new_instance['title' . $i] ) : ''; $instance['title' . $i] = isset( $new_instance['title' . $i] ) ? wp_strip_all_tags( $new_instance['title' . $i] ) : '';
$instance['img' . $i] = isset( $new_instance['img' . $i] ) ? wp_strip_all_tags( $new_instance['img' . $i] ) : '';
$instance['description' . $i] = isset( $new_instance['description' . $i] ) ? wp_kses_post( $new_instance['description' . $i] ) : ''; $instance['description' . $i] = isset( $new_instance['description' . $i] ) ? wp_kses_post( $new_instance['description' . $i] ) : '';
$instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : ''; $instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : '';
endfor; endfor;
...@@ -107,9 +102,10 @@ class Biuro_Sections extends WP_Widget { ...@@ -107,9 +102,10 @@ class Biuro_Sections extends WP_Widget {
public function widget( $args, $instance ) { public function widget( $args, $instance ) {
extract( $args ); extract( $args );
for ($i = 1; $i <= 8; $i++): $title = isset( $instance['title'] ) ?$instance['title'] : '';
for ($i = 1; $i <= 6; $i++):
${'title' . $i} = isset( $instance['title' . $i] ) ?$instance['title' . $i] : ''; ${'title' . $i} = isset( $instance['title' . $i] ) ?$instance['title' . $i] : '';
${'img' . $i} = isset( $instance['img' . $i] ) ?$instance['img' . $i] : '';
${'description' . $i} = isset( $instance['description' . $i] ) ?$instance['description' . $i] : ''; ${'description' . $i} = isset( $instance['description' . $i] ) ?$instance['description' . $i] : '';
${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : ''; ${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : '';
endfor; endfor;
...@@ -117,27 +113,42 @@ class Biuro_Sections extends WP_Widget { ...@@ -117,27 +113,42 @@ class Biuro_Sections extends WP_Widget {
// WordPress core before_widget hook (always include ) // WordPress core before_widget hook (always include )
echo $before_widget; echo $before_widget;
// Display the widget // Display the widget
echo '<div class="c-biuro-sections">'; echo '<div class="c-sections">';
if ( $title != "" ) {
echo '<h2 class="c-sections--heading">' . $title . '</h2>';
}
for ($i = 1; $i <= 8; $i++): echo '<div class="c-sections--inner">';
for ($i = 1; $i <= 6; $i++):
if ( ${'title' . $i} != "" && ${'description' . $i} != ""&& ${'content' . $i} != ""): if ( ${'title' . $i} != "" && ${'description' . $i} != ""&& ${'content' . $i} != ""):
echo '<div class="c-biuro-sections--item">'; echo '<div class="c-sections--item">';
echo '<div class="c-sections--item-inner">';
if ( ${'title' . $i} != "" ) { if ( ${'title' . $i} != "" ) {
echo '<h3>' . ${'title' . $i} . ' (img: ' . ${'img' . $i} . ')</h3>'; 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>';
} }
if ( ${'description' . $i} != "" ) { echo '<div class="c-sections--content">';
echo '<div>' . ${'description' . $i} . '</div>';
}
if ( ${'content' . $i} != "" ) { if ( ${'description' . $i} != "" ) {
echo '<div>' . ${'content' . $i} . '</div>'; echo '<div class="c-sections--description">' . ${'description' . $i} . '</div>';
} }
if ( ${'content' . $i} != "" ) {
echo ${'content' . $i};
}
echo '</div>';
echo '<div class="js-toggle--sections c-sections--toggle">
<svg width="13px" height="8px" class="c-sections--toggle-down"><use xlink:href="#ico--down"></use></svg>
<svg width="13px" height="8px" class="c-sections--toggle-up"><use xlink:href="#ico--up"></use></svg>
</div>';
echo '</div>';
echo '</div>'; echo '</div>';
endif; endif;
endfor; endfor;
echo '</div>';
echo '</div>'; echo '</div>';
......
...@@ -55,7 +55,7 @@ class Biuro_Services extends WP_Widget { ...@@ -55,7 +55,7 @@ class Biuro_Services extends WP_Widget {
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?> extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<?php <?php
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 3; $i++):
?> ?>
<p> <p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>"><?php _e( 'Title', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label> <label for="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>"><?php _e( 'Title', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
...@@ -79,7 +79,7 @@ class Biuro_Services extends WP_Widget { ...@@ -79,7 +79,7 @@ class Biuro_Services extends WP_Widget {
public function update( $new_instance, $old_instance ) { public function update( $new_instance, $old_instance ) {
$instance = $old_instance; $instance = $old_instance;
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 3; $i++):
$instance['title' . $i] = isset( $new_instance['title' . $i] ) ? wp_strip_all_tags( $new_instance['title' . $i] ) : ''; $instance['title' . $i] = isset( $new_instance['title' . $i] ) ? wp_strip_all_tags( $new_instance['title' . $i] ) : '';
$instance['position' . $i] = isset( $new_instance['position' . $i] ) ? wp_strip_all_tags( $new_instance['position' . $i] ) : ''; $instance['position' . $i] = isset( $new_instance['position' . $i] ) ? wp_strip_all_tags( $new_instance['position' . $i] ) : '';
$instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : ''; $instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : '';
...@@ -92,7 +92,7 @@ class Biuro_Services extends WP_Widget { ...@@ -92,7 +92,7 @@ class Biuro_Services extends WP_Widget {
public function widget( $args, $instance ) { public function widget( $args, $instance ) {
extract( $args ); extract( $args );
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 3; $i++):
${'title' . $i} = isset( $instance['title' . $i] ) ?$instance['title' . $i] : ''; ${'title' . $i} = isset( $instance['title' . $i] ) ?$instance['title' . $i] : '';
${'position' . $i} = isset( $instance['position' . $i] ) ?$instance['position' . $i] : ''; ${'position' . $i} = isset( $instance['position' . $i] ) ?$instance['position' . $i] : '';
${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : ''; ${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : '';
...@@ -101,23 +101,32 @@ class Biuro_Services extends WP_Widget { ...@@ -101,23 +101,32 @@ class Biuro_Services extends WP_Widget {
// WordPress core before_widget hook (always include ) // WordPress core before_widget hook (always include )
echo $before_widget; echo $before_widget;
// Display the widget // Display the widget
echo '<div class="c-biuro-services">'; echo '<div class="c-services">';
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 3; $i++):
if ( ${'title' . $i} != "" && ${'content' . $i} != ""): if ( ${'title' . $i} != "" && ${'content' . $i} != ""):
echo '<div class="c-biuro-services--item">'; echo '<div class="c-services--item">';
echo '<div class="c-services--item-inner">';
if ( ${'title' . $i} != "" ) { echo '<div class="c-services--ico"><svg width="56px" height="56px"><use xlink:href="#ico--service-' . $i . '"></use></svg></div>';
echo '<h3 style="margin: 0; text-align: center;">' . ${'title' . $i} . '</h3>';
}
if ( ${'position' . $i} != "" ) {
echo '<h4 style="margin: 3px 0; text-align: center;">' . ${'position' . $i} . '</h4>';
}
if ( ${'content' . $i} != "" ) { if ( ${'title' . $i} != "" ) {
echo '<div>' . ${'content' . $i} . '</div>'; echo '<p class="c-services--heading">' . ${'title' . $i} . '</p>';
} }
if ( ${'position' . $i} != "" ) {
echo '<p class="c-services--sub-heading">' . ${'position' . $i} . '</p>';
}
if ( ${'content' . $i} != "" ) {
echo '<div class="c-services--content">' . ${'content' . $i} . '</div>';
}
echo '<div class="js-toggle--services c-services--toggle">
<svg width="13px" height="8px" class="c-services--toggle-down"><use xlink:href="#ico--down"></use></svg>
<svg width="13px" height="8px" class="c-services--toggle-up"><use xlink:href="#ico--up"></use></svg>
</div>';
echo '</div>';
echo '</div>'; echo '</div>';
endif; endif;
endfor; endfor;
......
...@@ -47,7 +47,7 @@ class Biuro_Values extends WP_Widget { ...@@ -47,7 +47,7 @@ class Biuro_Values extends WP_Widget {
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?> extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<?php <?php
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 4; $i++):
?> ?>
<p> <p>
<label for="<?php echo esc_attr( $this->get_field_id( 'value' . $i ) ); ?>"><?php _e( 'Value', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label> <label for="<?php echo esc_attr( $this->get_field_id( 'value' . $i ) ); ?>"><?php _e( 'Value', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
...@@ -67,7 +67,7 @@ class Biuro_Values extends WP_Widget { ...@@ -67,7 +67,7 @@ class Biuro_Values extends WP_Widget {
public function update( $new_instance, $old_instance ) { public function update( $new_instance, $old_instance ) {
$instance = $old_instance; $instance = $old_instance;
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 4; $i++):
$instance['value' . $i] = isset( $new_instance['value' . $i] ) ? wp_strip_all_tags( $new_instance['value' . $i] ) : ''; $instance['value' . $i] = isset( $new_instance['value' . $i] ) ? wp_strip_all_tags( $new_instance['value' . $i] ) : '';
$instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : ''; $instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : '';
endfor; endfor;
...@@ -79,26 +79,26 @@ class Biuro_Values extends WP_Widget { ...@@ -79,26 +79,26 @@ class Biuro_Values extends WP_Widget {
public function widget( $args, $instance ) { public function widget( $args, $instance ) {
extract( $args ); extract( $args );
for ($i = 1; $i <= 8; $i++): for ($i = 1; $i <= 4; $i++):
${'value' . $i} = isset( $instance['value' . $i] ) ?$instance['value' . $i] : ''; ${'value' . $i} = isset( $instance['value' . $i] ) ?$instance['value' . $i] : '';
${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : ''; ${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : '';
endfor; endfor;
// WordPress core before_widget hook (always include )
echo $before_widget; echo $before_widget;
// Display the widget
echo '<div class="c-biuro-values">';
for ($i = 1; $i <= 8; $i++): echo '<div class="c-values">';
echo '<div class="c-values--inner">';
for ($i = 1; $i <= 4; $i++):
if ( ${'value' . $i} != "" && ${'content' . $i} != ""): if ( ${'value' . $i} != "" && ${'content' . $i} != ""):
echo '<div class="c-biuro-values--item">'; echo '<div class="c-values--section">';
if ( ${'value' . $i} != "" ) { if ( ${'value' . $i} != "" ) {
echo '<h3 style="margin: 0">' . ${'value' . $i} . '</h3>'; echo '<h3 class="c-values--heading">' . ${'value' . $i} . '</h3>';
} }
if ( ${'content' . $i} != "" ) { if ( ${'content' . $i} != "" ) {
echo '<p>' . ${'content' . $i} . '</p>'; echo '<div class="c-values--content">' . ${'content' . $i} . '</div>';
} }
echo '</div>'; echo '</div>';
...@@ -106,6 +106,7 @@ class Biuro_Values extends WP_Widget { ...@@ -106,6 +106,7 @@ class Biuro_Values extends WP_Widget {
endfor; endfor;
echo '</div>'; echo '</div>';
echo '</div>';
// WordPress core after_widget hook (always include ) // WordPress core after_widget hook (always include )
......
...@@ -79,17 +79,18 @@ class Cookies_Warning extends WP_Widget { ...@@ -79,17 +79,18 @@ class Cookies_Warning extends WP_Widget {
if ( $content ) { if ( $content ) {
echo $content; echo $content;
} }
echo '<br >'; echo '<p class="c-cookies-warning--actions">';
// Display agree button // Display agree button
if ( $agree ) { if ( $agree ) {
echo '<button id="cookie-agree" class="bu-action bu-action--main" type="button" title="' . $agree . '">' . $agree . '</button>'; echo '<button id="cookie-agree" class="o-btn c-btn--main" type="button" title="' . $agree . '">' . $agree . '</button>';
} }
// Display close button // Display close button
if ( $close ) { if ( $close ) {
echo '<button id="cookie-close" class="bu-action bu-action--alt" type="button" title="' . $close . '">' . $close . '</button>'; echo '<button id="cookie-close" class="o-btn c-btn--slim" type="button" title="' . $close . '">' . $close . '</button>';
} }
echo '</p>';
echo '</div>'; echo '</div>';
......
...@@ -3,8 +3,14 @@ ...@@ -3,8 +3,14 @@
/* critical:start */ /* critical:start */
:root { :root {
--color--gray: #4d4d4d; --color--gray: #7e8683;
--color--green: #006957; --color--gray-darker: #2A3644;
--color--green: #1fb299;
--color--green-darker: #149a83;
--color--green-dark: #006957;
--color--blue-dark: #1d2a3a;
--color--gray-light: #f8f8f8;
} }
/* critical:end */ /* critical:end */
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
:root { :root {
/*--layout-width: 976px;*/ /*--layout-width: 976px;*/
--layout-width: 63em; --layout-width: 1210px; /* 1170px */
--layout-width--small: 870px; /* 830px */
--layout-width--large: 1150px; /* 1110px */
} }
/* critical:end */ /* critical:end */
...@@ -4,18 +4,14 @@ ...@@ -4,18 +4,14 @@
:root { :root {
--typo--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Light", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; --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.8rem; --typo--font-size: 1.5rem;
--typo--weight-slim: 100;
--typo--weight-regular: 400; --typo--weight-regular: 400;
--typo--weight-bold: 600; --typo--weight-bold: 700;
--typo--line-height: 1.2; --typo--line-height: 1.2;
--typo--font-face: 'PT Sans Narrow', sans-serif; --typo--font-face: 'Roboto', sans-serif;
--typo--font-face-additional: 'Bebas Neue', sans-serif;
@media (--min--small) {
--typo--font-size: 1.6rem;
--typo--line-height: 1.3;
}
} }
/* critical:end */ /* critical:end */
/*font-family: 'Roboto', sans-serif;*/
/* ------------- Elements: anchor ------------- */ /* ------------- Elements: anchor ------------- */
/* critical:start */ /* critical:start */
a { color: var(--color--gray); } a { color: inherit; }
/* critical:end */ /* critical:end */
a { a {
......
...@@ -5,16 +5,15 @@ ...@@ -5,16 +5,15 @@
body { body {
font-size: var(--typo--font-size); font-size: var(--typo--font-size);
line-height: var(--typo--line-height); line-height: var(--typo--line-height);
color: var(--color--gray); color: var(--color--gray-darker);
font-family: var( --typo--font-face);
background: #f8f8f8;
@media (--max--small) { display: flex;
font-family: var(--typo--font-family); flex-direction: column;
letter-spacing: -0.08rem; min-height: 100vh;
}
@media (--min--small) { padding-top: 117px;
font-family: var( --typo--font-face);
}
} }
/* critical:end */ /* critical:end */
...@@ -11,4 +11,9 @@ l-: layout classes ...@@ -11,4 +11,9 @@ l-: layout classes
@import '_layout--aside.css'; @import '_layout--aside.css';
@import '_layout--main.css'; @import '_layout--main.css';
@import '_layout--footer.css'; @import '_layout--footer.css';
@import '_layout--map.css';
@import '_layout--nav.css'; @import '_layout--nav.css';
@import '_layout--section.css';
...@@ -4,8 +4,17 @@ ...@@ -4,8 +4,17 @@
.l-aside { .l-aside {
@media (--min--small) { @media (--min--small) {
flex: 0 0 16.25em; flex: 0 0 280px;
} }
} }
.l-aside--position {
@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 */ /* critical:end */
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.
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