Commit 9c72d924 authored by Simonas's avatar Simonas

in progress

parent 16892e07
# Biuro websites
## Information
- Task in [Jira](https://biurobaltic.atlassian.net/browse/LIV-1802)
- Project repository [dev.biuro](http://git.biuro.lt/biuro/dev.biuro)
- Created from [wordpress-nginx-docker](https://github.com/mjstealey/wordpress-nginx-docker)
- SSL Certificates are created with [SSL For Free](https://www.sslforfree.com/?domains=biuro.lt%20www.biuro.lt%20dev.biuro.lt%20staging.biuro.lt%20biuro.lv%20www.biuro.lv%20dev.biuro.lv%20staging.biuro.lv%20biuro.ee%20www.biuro.ee%20dev.biuro.ee%20staging.biuro.ee)
......@@ -22,7 +23,7 @@
- `C:\web\dev.biuro> docker exec -i mysql mysql -uroot -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8 wordpress < docker/mariadb/db_004.sql`
## Development
- `C:\web\dev.biuro\wordpress>yarn (or npm install)`
- `C:\web\dev.biuro\wordpress>npm install`
## Wordpress
- Regions created using [Wordpress Network](https://codex.wordpress.org/Create_A_Network)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"extends": "stylelint-config-standard",
"rules": {
"block-no-empty": 2,
"color-no-invalid-hex": 2,
"declaration-colon-space-after": [2, "always"],
"declaration-colon-space-before": [2, "never"],
"indentation": 4,
"function-comma-space-after": [2, "always"],
"function-url-quotes": [2, "double"],
"media-feature-colon-space-after": [2, "always"],
"media-feature-colon-space-before": [2, "never"],
"media-feature-name-no-vendor-prefix": 2,
"no-multiple-empty-lines": 2,
"number-leading-zero": [2, "never"],
"number-no-trailing-zeros": 2,
"property-no-vendor-prefix": 2,
"rule-no-duplicate-properties": 2,
"rule-no-single-line": 2,
"rule-trailing-semicolon": [2, "always"],
"selector-list-comma-newline-after": [2, "always-multi-line"],
"selector-no-id": 2,
"string-quotes": [2, "double"],
"value-no-vendor-prefix": 2
}
}
......@@ -6,5 +6,10 @@ rich design UI styling. Class names here are more specific. This layer usually h
c-: Signify that something is a Component. This is a concrete, implementation-specific piece of UI. All of the changes you make to its styles should be detectable in the context you’re currently looking at. Modifying these styles should be safe and have no side effects.
========================================================================== */
/*@import '_component--logo.css';*/
/*@import '_component--nav.css';*/
@import '_component--cookies-warning.css';
@import '_component--data-controller.css';
/*
@import '_component--nav.css';
*/
/* ------------- Component: cookies warning ------------- */
/* critical:start */
.c-cookies-warning { display: none; }
/* critical:end */
.c-cookies-warning { position: fixed; left: 0px; right: 0; bottom: 0px; padding: 15px 20px; background: #f6f6f6; overflow: hidden; z-index: 100;
.bu-action { margin-top: 10px; }
.bu-action--alt { float: right; }
}
.c-cookies-warning--inner { margin: 0 auto; max-width: 976px }
/* ------------- Component: data controller ------------- */
/* critical:start */
.c-data-controller { padding: 0 20px; text-align: center; font-size: 88%; }
/* critical:end */
......@@ -39,7 +39,7 @@ qa-: Signify that a QA or Test Engineering team is running an automated UI test
@import '06-objects/_nav.css';
@import '06-objects/_section.css';
@import '07-components/_logo.css';
@import '07-components/_nav.css';
@import '07-components/_pages.css';
@import '07-components/_section.css';
......@@ -61,6 +61,56 @@ qa-: Signify that a QA or Test Engineering team is running an automated UI test
/* critical:end */
@import '07-components/__components.css';
/* critical:start */
#main{
margin:0 auto;
padding:0 20px;
}
@media (min-width:768px){
#sidebar,#topsearch{
float:left
}
#sidebar{
width:195px
}
#main{
max-width:956px
}
}
@media (min-width:980px){
#main{
padding:0
}
#sidebar{
width:215px
}
#content{
width:714px;
float:right
}
}
@media (min-width:1024px){
#main{
max-width:976px
}
#sidebar{
width:235px
}
}
.l-footer{
clear:both;
/*border-top:1px solid #ababab;*/
/*padding:10px 0 20px 17px*/
}
/* critical:end */
#main::after,
#top::after,
.about-biuro-img::before,
......@@ -126,11 +176,25 @@ button,input,select,textarea{
color:#4b4d4f;
font:16px/1.3 'PT Sans Narrow',sans-serif
}
.l-footer{
clear:both;
border-top:1px solid #ababab;
padding:10px 0 20px 17px
.bu-action { height: 28px; cursor: pointer; border: 1px solid #E1E1E1; padding: 0 15px; margin: 0; display: inline-block; }
.bu-action--main { color: #FFF; background: #006957; }
@media (max-width: 600px) {
.bu-action { height: 44px; }
}
/*.bu-action--alt { color: #FFF; background: #006957; }*/
.c-nav-footer{
margin:0;
padding:0;
......@@ -159,11 +223,7 @@ button,input,select,textarea{
.c-nav-footer .act,.c-nav-footer .act:hover{
border-color:#4b4d4f
}
#main{
margin:0 auto;
padding:0 20px;
visibility:visible
}
#top{
padding:20px 0 0
}
......@@ -1428,9 +1488,7 @@ button::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=button]:
}
}
@media (min-width:768px){
#sidebar,#sidebar #menu,#topsearch{
float:left
}
#content .advert_table td:nth-child(2),#topsearch #top-search-form label{
text-align:left
}
......@@ -1438,15 +1496,9 @@ button::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=button]:
font-size:16px;
line-height:1.3
}
.l-footer{
display:none
}
#sidebar .banner,#sidebar .copy,#top #lang,#top .country{
display:block
}
#main{
max-width:956px
}
#top #logo{
margin:21px 0 21px 15px
}
......@@ -1457,9 +1509,7 @@ button::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=button]:
clear:right;
float:right
}
#sidebar{
width:195px
}
#sidebar .share{
display:block;
margin:0 0 15px
......@@ -1525,12 +1575,7 @@ button::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=button]:
#content h2,#content h3,#content ul{
text-align:justify
}
#main{
padding:0
}
#sidebar{
width:215px
}
#sidebar #menu>li,#sidebar #menu>li>a{
font-family:'Bebas Neue',sans-serif;
font-size:24px
......@@ -1538,10 +1583,7 @@ button::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=button]:
#content .info_box,#content .info_box p,#content a.home_url,#content h1,.c-home-url{
font-family:'Bebas Neue'
}
#content{
width:714px;
float:right
}
#content h1{
padding:0 0 15px;
font-size:24px
......@@ -1610,14 +1652,7 @@ button::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=button]:
padding:50px 69px
}
}
@media (min-width:1024px){
#main{
max-width:976px
}
#sidebar{
width:235px
}
}
@media only screen and (min-width:1281px){
[href^=tel]{
pointer-events:none;
......
var cb = function() {
'use strict';
var l = document.createElement('link'),
h = document.getElementsByTagName('head')[0];
// oldIE =document.all && !document.addEventListener;
l.rel = 'stylesheet';
l.href = '/wp-content/themes/biuro/css/main.min.css';
// l.href = (oldIE) ? 'mysite/css/main-fixed.css' : 'mysite/css/main-responsive.css';
h.parentNode.insertBefore(l, h);
},
raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
if (raf) {
raf(cb);
} else {
if (window.addEventListener) {
window.addEventListener('load', cb);
} else {
window.attachEvent('onload', cb);
}
}
(global => {
const container = document.getElementById('cookie-warning');
const btnAgree = document.getElementById('cookie-agree');
const btnClose = document.getElementById('cookie-close');
const agreed = (useLS()) ? localStorage.getItem('biuro-agree') : false;
function useLS () {
var mod = 'a';
try {
localStorage.setItem(mod, mod);
localStorage.removeItem(mod);
return true;
} catch (e) {
return false;
}
}
if (!container || !btnAgree || !btnClose || agreed) {
return;
}
container.style.display = 'block';
btnAgree.addEventListener('click', () => {
if (useLS()) {
localStorage.setItem('biuro-agree', 'true');
}
container.style.display = 'none';
});
btnClose.addEventListener('click', () => {
container.style.display = 'none';
});
})(window);
console.log('here goes main I');
// console.log('here goes main II');
......
......@@ -39,42 +39,43 @@
<div id="fb-root"></div>
<?php /*
<div id="biuro-cookies-container" style="display: none; position: fixed; width: 100%; left: 0px; bottom: 0px; padding: 15px; background: rgb(228, 228, 228); color: rgb(0, 0, 0); overflow: hidden; z-index: 100;">
<div style="margin: 0; overflow: hidden; line-height: 1.2">
<button onclick="biuroCookiesClose()" type="button" style="width: 44px; height: 44px; float: right; margin-left: 15px; margin-right: 25px; border: 1px solid #000; font-size: 32px; background: #e3e3e3; cursor: pointer;">×</button>
<p style="margin-top: 0">Sklandžiam svetainės veikimui, Jūsų naršymo patirties gerinimui bei rinkodarai, naudojame slapukus. Plačiau apie naudojamus slapukus ir jų valdymą (įskaitant atsisakymą) skaitykite mūsų
<a href="http://biuro.eu/cookies-lt">Slapukų politikoje.</a>
Jeigu sutinkate, kad įrašytume slapukus į Jūsų įrenginį, paspauskite „Sutinku“ arba naršykite toliau.
</p>
<button onclick="biuroCookiesInitiate()" type="button" style="height: 44px; line-height: 44px; 44px; padding: 0 20px; border: 1px solid #000; font-size: 16px; font-family: inherit; background: #e3e3e3; cursor: pointer;">Sutinku</button>
</div>
</div>
<div style="width: 100%; display: inline-block; text-align: center; font-size: 14px;">
<p style="margin-top: 0">
<p>Jūsų Asmens duomenų Valdytojas yra UAB "Biuro", juridinio asmens kodas 300055900, adresas Gedimino pr. 26, Vilnius, tel. <a class="gtm-phone-click" href="tel:+37052139476">+37052139476</a>.</a></p>
<p>Plačiau apie asmens duomenis, jų tvarkymą bei Jūsų teises skaitykite mūsų <a href="http://biuro.eu/privacy-lt">Asmens duomenų tvarkymo politikoje.</a></p>
Sklandžiam svetainės veikimui, Jūsų naršymo patirties gerinimui bei rinkodarai, naudojame slapukus. Plačiau apie naudojamus slapukus ir jų valdymą (įskaitant atsisakymą) skaitykite mūsų <a href="http://biuro.eu/cookies-lt">Slapukų politikoje.</a> Jeigu sutinkate, kad įrašytume slapukus į Jūsų įrenginį, paspauskite „Sutinku“ arba naršykite toliau.
</p>
<button onclick="biuroCookiesInitiate()" type="button" style="height: 44px; line-height: 44px; padding: 0 20px; border: 1px solid #000; font-size: 16px; font-family: inherit; background: #e3e3e3; cursor: pointer;">Sutinku</button>
</div>
</div>
<?php /*
Data_Controller
dynamic_sidebar( 'footer' );
debug( the_widget('footer') ); */
// debug( the_widget('data-controller') );
// debug( the_widget('cookies-policy') );
// debug( the_widget('data_controller') );
?>
<div class="l-footer">
<?php
if ( is_active_sidebar( 'footer_main' ) ) :
dynamic_sidebar( 'footer_main' );
endif;
?>
<?php
/*
<ul class="c-nav-footer">
<li>Kalba:&nbsp;</li>
......@@ -100,68 +101,10 @@ dynamic_sidebar( 'footer' );
<a href="https://biuro.ee" target="_blank" rel="noopener" class="gtm-referral-click">Estija</a>
</li>
</ul>
*/
?>
</div>
<script>
var cb = function() {
'use strict';
var l = document.createElement('link'),
h = document.getElementsByTagName('head')[0];
// oldIE =document.all && !document.addEventListener;
l.rel = 'stylesheet';
l.href = '/wp-content/themes/biuro/css/main.min.css';
// l.href = (oldIE) ? 'mysite/css/main-fixed.css' : 'mysite/css/main-responsive.css';
h.parentNode.insertBefore(l, h);
},
raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
if (raf) {
raf(cb);
} else {
if (window.addEventListener) {
window.addEventListener('load', cb);
}
else {
window.attachEvent('onload', cb);
}
}
var container = document.getElementById('biuro-cookies-container'),
agreed = (useLocalStorage()) ? localStorage.getItem('biuro-agree') : false;
function useLocalStorage() {
var mod = 'a';
try {
localStorage.setItem(mod, mod);
localStorage.removeItem(mod);
return true;
} catch(e) {
return false;
}
}
function biuroCookiesInitiate() {
if (useLocalStorage()) {
localStorage.setItem('biuro-agree', 'true');
}
biuroCookiesClose()
}
function biuroCookiesClose() {
if (container) {
container.style.display = 'none';
}
}
if (!agreed && container) {
container.style.display = 'block';
}
</script>
<?php
/*
......@@ -176,13 +119,19 @@ dynamic_sidebar( 'footer' );
})(window,document,'script','dataLayer','GTM-THF42F');</script>
*/
if ( is_active_sidebar( 'append_area' ) ) :
dynamic_sidebar( 'append_area' );
endif;
?>
<script>
var coords = eval('') || null;
</script>
<!-- <script async src="/wp-content/themes/biuro/js/main.min.js"></script> -->
<script async src="/wp-content/themes/biuro/js/main.js"></script>
<script src="/wp-content/themes/biuro/_js/main.min.js" async></script>
</body>
</html>
......@@ -14,364 +14,6 @@ function cc_mime_types($mimes) {
add_filter('upload_mimes', 'cc_mime_types');
// function getImages($postID) {
// $res = array();
// $images = get_children( array (
// 'numberposts' => -1,
// 'order' => 'ASC',
// 'post_mime_type' => 'image',
// 'post_parent' => $postID,
// 'post_status' => null,
// 'post_type' => 'attachment'
// ));
// foreach ( $images as $ID => $image ) {
// $res[] = array(
// // 'holder' => (string) parse_url(wp_get_attachment_image_src( $ID, 'placeholder' )[0])['path'],
// // 'img' => (string) parse_url(wp_get_attachment_image_src( $ID, 'thumbnail' )[0])['path'],
// // 'img2x' => (string) parse_url(wp_get_attachment_image_src( $ID, 'thumbnail@2x' )[0])['path'],
// // 'medium' => (string) parse_url(wp_get_attachment_image_src( $ID, 'medium' )[0])['path'],
// // 'medium2x' => (string) parse_url(wp_get_attachment_image_src( $ID, 'medium@2x' )[0])['path'],
// // 'large' => (string) parse_url(wp_get_attachment_image_src( $ID, 'large' )[0])['path'],
// // 'large2x' => (string) parse_url(wp_get_attachment_image_src( $ID, 'large@2x' )[0])['path'],
// 'holder' => wp_get_attachment_image_src( $ID, 'placeholder' )[0],
// 'img' => wp_get_attachment_image_src( $ID, 'thumbnail' )[0],
// 'img2x' => wp_get_attachment_image_src( $ID, 'thumbnail@2x' )[0],
// 'medium' => wp_get_attachment_image_src( $ID, 'medium' )[0],
// 'medium2x' => wp_get_attachment_image_src( $ID, 'medium@2x' )[0],
// 'large' => wp_get_attachment_image_src( $ID, 'large' )[0],
// 'large2x' => wp_get_attachment_image_src( $ID, 'large@2x' )[0],
// 'text' => (string) get_post_meta($ID, '_wp_attachment_image_alt', true)
// );
// }
// return $res;
// }
// function getMenus( ) {
// $menus = wp_get_nav_menus();
// $res = array();
// foreach ( $menus as $menu ) :
// $res[ $menu->slug ] = getSubMenus($menu->term_id);
// endforeach;
// return $res;
// }
// function getMenus( ) {
// $locations = get_nav_menu_locations();
// $registered_menus = get_registered_nav_menus();
// $menus = array();
// if ( $locations && $registered_menus ) :
// foreach ( $registered_menus as $slug => $menu ) :
// if ( ! isset( $locations[ $slug ] ) ) {
// continue;
// }
// $menus[ $slug ]['ID'] = $locations[ $slug ];
// // $menus[ $slug ]['lang'] = $default_lang;
// $menus[ $slug ]['pages'] = getSubMenus($locations[ $slug ]);
// // $rest_menus[ $slug ]['pages'] = array();
// // $rest_menus[ $slug ]['label'] = $label;
// // $rest_menus[ $slug ]['meta']['links']['collection'] = $rest_url;
// // $rest_menus[ $slug ]['meta']['links']['self'] = $rest_url . $slug;
// endforeach;
// endif;
// return $menus;
// }
// function getSubMenus ( $ID ) {
// $menu_items = wp_get_nav_menu_items( $ID );
// $rev_items = array_reverse( $menu_items );
// $rev_menu = array();
// $cache = array();
// foreach ( $rev_items as $item ) :
// $formatted = array(
// 'order' => (int) $item->menu_order,
// 'title' => $item->title,
// 'path' => (string) parse_url($item->url)['path'],
// 'objectID' => abs( $item->object_id ),
// 'pages' => array()
// );
// if ( array_key_exists( $item->ID, $cache ) ) {
// $formatted['pages'] = array_reverse( $cache[ $item->ID ] );
// }
// $formatted = apply_filters( 'rest_menus_format_menu_item', $formatted );
// if ( $item->menu_item_parent != 0 ) {
// if ( array_key_exists( $item->menu_item_parent, $cache ) ) {
// array_push( $cache[ $item->menu_item_parent ], $formatted );
// } else {
// $cache[ $item->menu_item_parent ] = array( $formatted, );
// }
// } else {
// array_push( $rev_menu, $formatted );
// }
// endforeach;
// return array_reverse( $rev_menu );
// }
// function getPages ( $data ) {
// $res = array();
// $props = array(
// 'posts_per_page' => -1,
// 'offset' => 0,
// 'category' => '',
// 'category_name' => '',
// 'include' => '',
// 'exclude' => '',
// 'meta_key' => '',
// 'meta_value' => '',
// 'post_type' => 'page',
// 'post_mime_type' => '',
// 'post_parent' => '',
// 'author' => '',
// 'author_name' => '',
// 'post_status' => 'publish',
// 'suppress_filters' => true
// );
// $pages = get_posts($props);
// foreach ( $pages as $page ) :
// $arr = (array) $page;
// $pageID = $arr['ID'];
// $title = get_post_meta( $arr['ID'], '_yoast_wpseo_title', true );
// if (!$title):
// $title = $arr['post_title'];
// endif;
// $cat = get_the_category( $pageID );
// $lang = pll_get_post_language( $pageID );
// $path = (string) parse_url(get_page_link( $pageID ))['path'];
// $res[ $path ] = (array) [];
// $res[ $path ]['ID'] = $pageID;
// $res[ $path ]['title'] = $title;
// $res[ $path ]['description'] = get_post_meta( $pageID, '_yoast_wpseo_metadesc', true );
// $res[ $path ]['content'] = apply_filters('the_content', $arr['post_content']);
// $res[ $path ]['categoryID'] = $cat[0] -> cat_ID;
// $res[ $path ]['paths'] = getLanguages( $pageID );
// $res[ $path ]['images'] = getImages( $pageID );
// $res[ $path ]['homeURL'] = (string) parse_url( pll_home_url( $lang ) )['path'];
// endforeach;
// // 'yoast_wpseo_focuskw' => get_post_meta($post->ID, '_yoast_wpseo_focuskw', true),
// // 'yoast_wpseo_title' => get_post_meta($post->ID, '_yoast_wpseo_title', true),
// // 'yoast_wpseo_metadesc' => get_post_meta($post->ID, '_yoast_wpseo_metadesc', true),
// // 'yoast_wpseo_linkdex' => get_post_meta($post->ID, '_yoast_wpseo_linkdex', true),
// // 'yoast_wpseo_metakeywords' => get_post_meta($post->ID, '_yoast_wpseo_metakeywords', true),
// // 'yoast_wpseo_meta-robots-noindex' => get_post_meta($post->ID, '_yoast_wpseo_meta-robots-noindex', true),
// // 'yoast_wpseo_meta-robots-nofollow' => get_post_meta($post->ID, '_yoast_wpseo_meta-robots-nofollow', true),
// // 'yoast_wpseo_meta-robots-adv' => get_post_meta($post->ID, '_yoast_wpseo_meta-robots-adv', true),
// // 'yoast_wpseo_canonical' => get_post_meta($post->ID, '_yoast_wpseo_canonical', true),
// // 'yoast_wpseo_redirect' => get_post_meta($post->ID, '_yoast_wpseo_redirect', true),
// // 'yoast_wpseo_opengraph-title' => get_post_meta($post->ID, '_yoast_wpseo_opengraph-title', true),
// // 'yoast_wpseo_opengraph-description' => get_post_meta($post->ID, '_yoast_wpseo_opengraph-description', true),
// // 'yoast_wpseo_opengraph-image' => get_post_meta($post->ID, '_yoast_wpseo_opengraph-image', true),
// // 'yoast_wpseo_twitter-title' => get_post_meta($post->ID, '_yoast_wpseo_twitter-title', true),
// // 'yoast_wpseo_twitter-description' => get_post_meta($post->ID, '_yoast_wpseo_twitter-description', true),
// // 'yoast_wpseo_twitter-image' => get_post_meta($post->ID, '_yoast_wpseo_twitter-image', true)
// // "ID": 14,
// // "post_author": "3",
// // "post_date": "2014-07-21 19:54:07",
// // "post_date_gmt": "2014-07-21 17:54:07",
// // "post_content": "<h1>Location</h1>\r\nADDRESS: Gediminas ave. 26 Vilnius, lithuania\r\nPHONE: <strong>+370 5 2031228</strong>\r\nEMAIL: <a href=\"mailto:info@town.lt\">info@town.lt</a>\r\n\r\nMonday - Thursday: 11:30-22:00\r\nFriday: 11:30 - 23:30\r\nSaturday: 12:30 - 23:30\r\nSundays: closed\r\n\r\n<a href=\"http://www.facebook.com/thetowncontemporarygrillbar\" target=\"_blank\" rel=\"noopener\">FOLLOW US ON FACEBOOK</a>\r\n\r\n&nbsp;",
// // "post_title": "Contacts",
// // "post_excerpt": "",
// // "post_status": "publish",
// // "comment_status": "open",
// // "ping_status": "closed",
// // "post_password": "",
// // "post_name": "contacts",
// // "to_ping": "",
// // "pinged": "",
// // "post_modified": "2018-01-28 18:02:26",
// // "post_modified_gmt": "2018-01-28 16:02:26",
// // "post_content_filtered": "",
// // "post_parent": 0,
// // "guid": "http://town.loc.al/?page_id=14",
// // "menu_order": 0,
// // "post_type": "page",
// // "post_mime_type": "",
// // "comment_count": "0",
// // "filter": "raw"
// // debug($res);
// // print_r($res);
// return $res;
// }
// function getLanguages ( $ID ) {
// $res = array();
// $languages = pll_the_languages(array(
// 'raw' => 1,
// 'post_id' => $ID
// ));
// foreach ( $languages as $language ) :
// $arr = (array) $language;
// $res[] = array(
// 'slug' => $arr['slug'],
// 'name' => $arr['name'],
// 'order' => (int) $arr['order'],
// 'path' => (string) parse_url($arr['url'])['path']
// );
// endforeach;
// return $res;
// }
// function getPosts ( ) {
// $res = array();
// $props = array(
// 'posts_per_page' => -1,
// 'offset' => 0,
// 'category' => '',
// 'category_name' => '',
// 'orderby' => 'date',
// 'order' => 'DESC',
// 'include' => '',
// 'exclude' => '',
// 'meta_key' => '',
// 'meta_value' => '',
// 'post_type' => 'post',
// 'post_mime_type' => '',
// 'post_parent' => '',
// 'author' => '',
// 'author_name' => '',
// 'post_status' => 'publish',
// 'suppress_filters' => true
// );
// $posts = get_posts($props);
// foreach ( $posts as $post ) :
// $arr = (array) $post;
// $postID = (int) $arr['ID'];
// $cat = get_the_category( $postID );
// $res[] = array(
// 'categoryID' => $cat[0] -> cat_ID,
// 'content' => apply_filters('the_content', $arr['post_content']),
// 'order' => (int) $arr['menu_order'],
// 'type' => (string) get_post_format( $postID )
// );
// endforeach;
// return $res;
// }
// function getForms ( ) {
// $res = array();
// $props = array(
// 'posts_per_page' => -1,
// 'offset' => 0,
// 'category' => '',
// 'category_name' => '',
// 'include' => '',
// 'exclude' => '',
// 'meta_key' => '',
// 'meta_value' => '',
// 'post_type' => 'wpcf7_contact_form',
// 'post_mime_type' => '',
// 'post_parent' => '',
// 'author' => '',
// 'author_name' => '',
// 'post_status' => 'publish',
// 'suppress_filters' => true
// );
// $forms = get_posts($props);
// foreach ( $forms as $form ) :
// $arr = (array) $form;
// $formID = $arr['ID'];
// $res[ $formID ]['ID'] = $formID;
// $res[ $formID ]['content'] = apply_filters('the_content', $arr['post_content']);
// endforeach;
// return $res;
// }
// function getArray ( ) {
// $res = array();
// $res[0] = '00000';
// $res[1] = '00001';
// $res[2] = '00002';
// return $res;
// }
// add_action( 'rest_api_init', function () {
// register_rest_route( 'our-wp-api/v1', '/pages', array(
// 'methods' => WP_REST_Server::READABLE,
// 'callback' => 'getPages',
// ));
// register_rest_route( 'our-wp-api/v1', '/menus', array(
// array(
// 'methods' => WP_REST_Server::READABLE,
// 'callback' => 'getMenus'
// )
// ));
// register_rest_route( 'our-wp-api/v1', '/posts', array(
// array(
// 'methods' => WP_REST_Server::READABLE,
// 'callback' => 'getPosts'
// )
// ));
// register_rest_route( 'our-wp-api/v1', '/forms', array(
// array(
// 'methods' => WP_REST_Server::READABLE,
// 'callback' => 'getForms'
// )
// ));
// });
/*-----------------------------------------------------------------------------------*/
/* Enable more buttons in admin
/*-----------------------------------------------------------------------------------*/
......@@ -445,15 +87,6 @@ add_filter("mce_buttons_2", "enable_more_buttons");
// add_action( 'after_setup_theme', 'biuro_theme_setup' );
// function wpse_setup_theme() {
// add_theme_support( 'post-thumbnails' );
// add_image_size( 'small-thumb', 60, 60, true );
// }
// add_action( 'after_setup_theme', 'wpse_setup_theme' );
function filter_site_upload_size_limit( $size ) {
// Set the upload size limit to 60 MB for users lacking the 'manage_options' capability.
// if ( ! current_user_can( 'manage_options' ) ) {
......@@ -464,40 +97,37 @@ function filter_site_upload_size_limit( $size ) {
}
add_filter( 'upload_size_limit', 'filter_site_upload_size_limit', 20 );
// function biuro_scripts() {
// get the theme directory style.css and link to it in the header
// wp_enqueue_style( 'town-style', get_template_directory_uri() . '/css/main.css', '10000', 'all' );
// add fitvid
// wp_enqueue_script( 'naked-fitvid', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ), NAKED_VERSION, true );
// add theme scripts
// wp_enqueue_script( 'naked', get_template_directory_uri() . '/js/theme.min.js', array(), NAKED_VERSION, true );
// add flexslider scripts
// wp_enqueue_script( 'flexslider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array('jquery'), NAKED_VERSION, true );
// }
// add_action( 'wp_enqueue_scripts', 'biuro_scripts' ); // Register this fxn and allow Wordpress to call it automatcally in the header
function my_deregister_scripts(){
wp_dequeue_script( 'wp-embed' );
}
add_action( 'wp_footer', 'my_deregister_scripts' );
// function add_posts_order() {
// add_post_type_support('post', 'page-attributes');
// }
// add_action( 'admin_init', 'add_posts_order' );
/**
* Register our sidebars and widgetized areas.
*/
function biuro_widger_areas() {
register_sidebar( array(
'name' => 'Footer area',
'id' => 'footer_main',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Content append area',
'id' => 'append_area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
}
add_action( 'widgets_init', 'biuro_widger_areas' );
......@@ -554,37 +184,6 @@ function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
return $urls;
}
// function init_biuro_theme() {
// // Add categories for pages
// register_taxonomy_for_object_type( 'category', 'page' );
// // Remove Custom fields from posts
// // remove_meta_box('postcustom','post','normal');
// // remove_meta_box( $id, $page, $context );
// // Remove tags support from posts
// unregister_taxonomy_for_object_type('post_tag', 'post');
// // Register menus
// register_nav_menus(
// array(
// 'main-menu' => 'Main menu',
// 'region-menu' => 'Region menu',
// // 'footer-menu' => 'Footer menu'
// )
// );
// // unregister_nav_menu('town_nav');
// // unregister_nav_menu('vilnius_nav');
// // unregister_nav_menu('kaunas_nav');
// // unregister_nav_menu('steak_nav');
// // unregister_nav_menu('footer_nav');
// // unregister_nav_menu('steakhouse-menu');
// // unregister_nav_menu('vilnius-menu');
// }
// add_action('init', 'init_biuro_theme');
function init_biuro_theme() {
// Add categories for pages
......@@ -597,6 +196,14 @@ function init_biuro_theme() {
// Remove tags support from posts
// unregister_taxonomy_for_object_type('post_tag', 'post');
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
// Register menus
register_nav_menus(
array(
......@@ -606,14 +213,6 @@ function init_biuro_theme() {
);
pll_register_string('biuro-language', 'Language', 'Biuro');
// unregister_nav_menu('town_nav');
// unregister_nav_menu('vilnius_nav');
// unregister_nav_menu('kaunas_nav');
// unregister_nav_menu('steak_nav');
// unregister_nav_menu('footer_nav');
// unregister_nav_menu('steakhouse-menu');
// unregister_nav_menu('vilnius-menu');
}
add_action('init', 'init_biuro_theme');
webpackHotUpdate("main",{
/***/ "./js/main.js":
/*!********************!*\
!*** ./js/main.js ***!
\********************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("var cb = function cb() {\n 'use strict';\n\n var l = document.createElement('link'),\n h = document.getElementsByTagName('head')[0]; // oldIE =document.all && !document.addEventListener;\n\n l.rel = 'stylesheet';\n l.href = '/wp-content/themes/biuro/css/main.min.css'; // l.href = (oldIE) ? 'mysite/css/main-fixed.css' : 'mysite/css/main-responsive.css';\n\n h.parentNode.insertBefore(l, h);\n},\n raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;\n\nif (raf) {\n raf(cb);\n} else {\n if (window.addEventListener) {\n window.addEventListener('load', cb);\n } else {\n window.attachEvent('onload', cb);\n }\n}\n\n(function (global) {\n var container = document.getElementById('cookie-warning');\n var btnAgree = document.getElementById('cookie-agree');\n var btnClose = document.getElementById('cookie-close');\n var agreed = useLS() ? localStorage.getItem('biuro-agree') : false;\n\n function useLS() {\n var mod = 'a';\n\n try {\n localStorage.setItem(mod, mod);\n localStorage.removeItem(mod);\n return true;\n } catch (e) {\n return false;\n }\n }\n\n if (!container || !btnAgree || !btnClose || agreed) {\n return;\n }\n\n container.style.display = 'block';\n btnAgree.addEventListener('click', function () {\n if (useLS()) {\n localStorage.setItem('biuro-agree', 'true');\n }\n\n container.style.display = 'none';\n });\n btnClose.addEventListener('click', function () {\n container.style.display = 'none';\n });\n})(window);\n\nconsole.log('here goes main I'); // console.log('here goes main II');\n// console.log('here goes main III');\n\n//# sourceURL=webpack:///./js/main.js?");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("main",{
/***/ "./js/main.js":
/*!********************!*\
!*** ./js/main.js ***!
\********************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("var cb = function cb() {\n 'use strict';\n\n var l = document.createElement('link'),\n h = document.getElementsByTagName('head')[0]; // oldIE =document.all && !document.addEventListener;\n\n l.rel = 'stylesheet';\n l.href = '/wp-content/themes/biuro/css/main.min.css'; // l.href = (oldIE) ? 'mysite/css/main-fixed.css' : 'mysite/css/main-responsive.css';\n\n h.parentNode.insertBefore(l, h);\n},\n raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;\n\nif (raf) {\n raf(cb);\n} else {\n if (window.addEventListener) {\n window.addEventListener('load', cb);\n } else {\n window.attachEvent('onload', cb);\n }\n}\n\n(function (global) {\n var container = document.getElementById('cookie-warning');\n var btnAgree = document.getElementById('cookie-agree');\n var btnClose = document.getElementById('cookie-close');\n var agreed = useLocalStorage() ? localStorage.getItem('biuro-agree') : false;\n\n function useLocalStorage() {\n var mod = 'a';\n\n try {\n localStorage.setItem(mod, mod);\n localStorage.removeItem(mod);\n return true;\n } catch (e) {\n return false;\n }\n }\n\n if (!container || !btnAgree || !btnClose || agreed) {\n return;\n }\n\n container.style.display = 'block';\n btnAgree.addEventListener('click', function () {\n if (useLocalStorage()) {\n localStorage.setItem('biuro-agree', 'true');\n }\n\n container.style.display = 'none';\n });\n btnClose.addEventListener('click', function () {\n container.style.display = 'none';\n });\n})(window);\n\nconsole.log('here goes main I'); // console.log('here goes main II');\n// console.log('here goes main III');\n\n//# sourceURL=webpack:///./js/main.js?");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("main",{
/***/ "./js/main.js":
/*!********************!*\
!*** ./js/main.js ***!
\********************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("var cb = function cb() {\n 'use strict';\n\n var l = document.createElement('link'),\n h = document.getElementsByTagName('head')[0]; // oldIE =document.all && !document.addEventListener;\n\n l.rel = 'stylesheet';\n l.href = '/wp-content/themes/biuro/css/main.min.css'; // l.href = (oldIE) ? 'mysite/css/main-fixed.css' : 'mysite/css/main-responsive.css';\n\n h.parentNode.insertBefore(l, h);\n},\n raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;\n\nif (raf) {\n raf(cb);\n} else {\n if (window.addEventListener) {\n window.addEventListener('load', cb);\n } else {\n window.attachEvent('onload', cb);\n }\n}\n\nvar container = document.getElementById('biuro-cookies-container'),\n agreed = useLocalStorage() ? localStorage.getItem('biuro-agree') : false;\n\nfunction useLocalStorage() {\n var mod = 'a';\n\n try {\n localStorage.setItem(mod, mod);\n localStorage.removeItem(mod);\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction biuroCookiesInitiate() {\n if (useLocalStorage()) {\n localStorage.setItem('biuro-agree', 'true');\n }\n\n biuroCookiesClose();\n}\n\nfunction biuroCookiesClose() {\n if (container) {\n container.style.display = 'none';\n }\n}\n\nif (!agreed && container) {\n container.style.display = 'block';\n}\n\nconsole.log('here goes main I'); // console.log('here goes main II');\n// console.log('here goes main III');\n\n//# sourceURL=webpack:///./js/main.js?");
/***/ })
})
\ No newline at end of file
<?php
/*
Plugin Name: Cookies warning
Description: Biuro cookies warning plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
*/
class Cookies_Warning extends WP_Widget {
// Main constructor
public function __construct() {
parent::__construct(
'cookies-policy',
__( 'Cookies Warning | Biuro', 'biuro' ),
array(
'customize_selective_refresh' => true,
)
);
}
// The widget form (for the backend )
public function form( $instance ) {
// Set widget defaults
$defaults = array(
'agree' => '',
'close' => '',
'content' => '',
);
// Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<?php // Content Field ?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'content' ) ); ?>"><?php _e( 'Content:', 'biuro' ); ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'content' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'content' ) ); ?>" rows="12"><?php echo wp_kses_post( $content ); ?></textarea>
</p>
<?php // Agree Field ?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'agree' ) ); ?>"><?php _e( 'Agree:', 'biuro' ); ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'agree' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'agree' ) ); ?>" type="text" value="<?php echo esc_attr( $agree ); ?>" />
</p>
<?php // Close Field ?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'close' ) ); ?>"><?php _e( 'Close:', 'biuro' ); ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'close' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'close' ) ); ?>" type="text" value="<?php echo esc_attr( $close ); ?>" />
</p>
<?php }
// Update widget settings
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['agree'] = isset( $new_instance['agree'] ) ? wp_strip_all_tags( $new_instance['agree'] ) : '';
$instance['close'] = isset( $new_instance['close'] ) ? wp_strip_all_tags( $new_instance['close'] ) : '';
$instance['content'] = isset( $new_instance['content'] ) ? wp_kses_post( $new_instance['content'] ) : '';
return $instance;
}
// Display the widget
public function widget( $args, $instance ) {
extract( $args );
// Check the widget options
$agree = isset( $instance['agree'] ) ? $instance['agree'] : '';
$close = isset( $instance['close'] ) ? $instance['close'] : '';
$content = isset( $instance['content'] ) ?$instance['content'] : '';
// WordPress core before_widget hook (always include )
echo $before_widget;
// Display the widget
echo '<div id="cookie-warning" class="c-cookies-warning">';
echo '<div class="c-cookies-warning--inner">';
// Display content field
if ( $content ) {
echo $content;
}
echo '<br >';
// Display agree button
if ( $agree ) {
echo '<button id="cookie-agree" class="bu-action bu-action--main" type="button" title="' . $agree . '">' . $agree . '</button>';
}
// Display close button
if ( $close ) {
echo '<button id="cookie-close" class="bu-action bu-action--alt" type="button" title="' . $close . '">' . $close . '</button>';
}
echo '</div>';
echo '</div>';
// WordPress core after_widget hook (always include )
echo $after_widget;
}
}
// register Cookies_Warning
add_action( 'widgets_init', function(){
register_widget( 'Cookies_Warning' );
});
<?php
/*
Plugin Name: Data controller
Description: Biuro data controller plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
*/
class Data_Controller extends WP_Widget {
// Main constructor
public function __construct() {
parent::__construct(
'data-controller',
__( 'Data Controller | Biuro', 'biuro' ),
array(
'customize_selective_refresh' => true,
)
);
}
// The widget form (for the backend )
public function form( $instance ) {
// Set widget defaults
$defaults = array(
'content' => '',
);
// Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<?php // Content Field ?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'content' ) ); ?>"><?php _e( 'Content:', 'biuro' ); ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'content' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'content' ) ); ?>" rows="12"><?php echo wp_kses_post( $content ); ?></textarea>
</p>
<?php }
// Update widget settings
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['content'] = isset( $new_instance['content'] ) ? wp_kses_post( $new_instance['content'] ) : '';
return $instance;
}
// Display the widget
public function widget( $args, $instance ) {
extract( $args );
// Check the widget options
$content = isset( $instance['content'] ) ?$instance['content'] : '';
// WordPress core before_widget hook (always include )
echo $before_widget;
// Display the widget
echo '<div class="c-data-controller">';
// Display content field
if ( $content ) {
echo $content;
}
echo '</div>';
// WordPress core after_widget hook (always include )
echo $after_widget;
}
}
// register Data_Controller
add_action( 'widgets_init', function(){
register_widget( 'Data_Controller' );
});
.c-cookies-warning{display:none}.c-data-controller{padding:0 20px;text-align:center;font-size:88%}#main{margin:0 auto;padding:0 20px}.l-footer{clear:both}@media (min-width:768px){#sidebar,#topsearch{float:left}#sidebar{width:195px}#main{max-width:956px}}@media (min-width:980px){#main{padding:0}#sidebar{width:215px}#content{width:714px;float:right}}@media (min-width:1024px){#main{max-width:976px}#sidebar{width:235px}}
\ No newline at end of file
#main:after,#top:after,.about-biuro-img:before,.icon:before{content:""}@font-face{font-family:PT Sans Narrow;font-style:normal;font-weight:400;src:local("PT Sans Narrow"),local("PTSans-Narrow"),url(https://fonts.gstatic.com/s/ptsansnarrow/v8/BngRUXNadjH0qYEzV7ab-oWlsYCB.ttf) format("truetype")}@font-face{font-family:PT Sans Narrow;font-style:normal;font-weight:700;src:local("PT Sans Narrow Bold"),local("PTSans-NarrowBold"),url(https://fonts.gstatic.com/s/ptsansnarrow/v8/BngSUXNadjH0qYEzV7ab-oWlsbg95DiC.ttf) format("truetype")}@font-face{font-family:Bebas Neue;src:url(../_fonts/bebas-neue.eot);src:url(../_fonts/bebas-neue.eot?#iefix) format("embedded-opentype"),url(../_fonts/bebas-neue.woff2) format("woff2"),url(../_fonts/bebas-neue.woff) format("woff"),url(../_fonts/bebas-neue.ttf) format("truetype"),url(../_fonts/bebas-neue.svg#BebasNeue) format("svg")}#main:after,#top:after{display:table;clear:both}*{padding:0;margin:0;outline:0}fieldset,img{border:0}ul{list-style:none}table{border-spacing:0}html body{overflow:visible}body{color:#4b4d4f;font-family:PT Sans Narrow,sans-serif;font-size:18px;line-height:1.2;overflow:auto}button,input,select,textarea{color:#4b4d4f;font:16px/1.3 PT Sans Narrow,sans-serif}.l-footer{clear:both;border-top:1px solid #ababab;padding:10px 0 20px 17px}.c-nav-footer{margin:0;padding:0;list-style:none}.c-nav-footer+.c-nav-footer{margin-top:20px}.c-nav-footer li{display:inline-block;padding:0 5px}.c-nav-footer a{display:block;padding:0 3px;text-decoration:none;color:#4b4d4f;border:1px solid #fff}#top #lang,#top .country{display:none}.c-nav-footer a:hover{border-color:#ababab}.c-nav-footer .act,.c-nav-footer .act:hover{border-color:#4b4d4f}#main{margin:0 auto;padding:0 20px;visibility:visible}#top{padding:20px 0 0}#top #logo{float:none;width:133px;margin:0 auto 20px}#top #country{margin:20px 0 0;float:right}#top #country li,#top #lang li{float:left}#top #country li a,#top #lang li a{color:#c3c3c3;font-size:13px;text-decoration:none;padding:0 6px;float:left}#sidebar #menu>li,#sidebar #menu>li>a{font-size:21px;line-height:22px;width:100%}#top #country li a.act,#top #lang li a.act{color:#939393;background:#ebebeb}#top #country li a:hover,#top #lang li a:hover{text-decoration:underline}#sidebar{padding:20px 0 15px 15px;overflow:hidden}#sidebar #menu{width:100%;margin:0 0 20px -15px}#sidebar #menu>li{float:left;padding:0 0 13px}#sidebar #menu>li>a{padding:0 0 1px 15px;color:#4b4d4f;text-decoration:none}#sidebar #menu>li ul{display:block}#sidebar #menu>li ul li{width:100%;padding:6px 0 0 15px;float:left}#sidebar #menu>li ul li a{display:block;color:#4b4d4f;font:16px/1.1 PT Sans Narrow,sans-serif;text-decoration:none}#sidebar .banner,#sidebar .share{display:none}#sidebar .share a{display:inline-block;height:24px;margin:0 10px 0 0}#sidebar .share a.facebook,#sidebar .share a.linkedin,#sidebar .share a.share_all{background:url(../_img/share_icons.png) no-repeat}#sidebar .share a.facebook{width:24px;background-position:0 0}#sidebar .share a.linkedin{width:24px;background-position:0 -50px}#sidebar .share a.share_all{width:49px;background-position:0 -100px}#sidebar .copy{display:none}.style_1>a{background:url(../_img/menu_icons.png) 0 2px no-repeat}.style_1>a.act{background:url(../_img/menu_icons.png) -250px 0 no-repeat}.style_2>a{background:url(../_img/menu_icons.png) 0 -98px no-repeat}.style_2>a.act{background:url(../_img/menu_icons.png) -250px -100px no-repeat}.style_3>a{background:url(../_img/menu_icons.png) 0 -198px no-repeat}.style_3>a.act{background:url(../_img/menu_icons.png) -250px -200px no-repeat}.style_4>a{background:url(../_img/menu_icons.png) 0 -298px no-repeat}.style_4>a.act{background:url(../_img/menu_icons.png) -250px -300px no-repeat}.style_5>a{background:url(../_img/menu_icons.png) 0 -398px no-repeat}.style_5>a.act{background:url(../_img/menu_icons.png) -250px -400px no-repeat}.style_1>ul li{background:url(../_img/menu_icons.png) -250px -15px no-repeat}.style_2>ul li{background:url(../_img/menu_icons.png) -250px -115px no-repeat}.style_3>ul li{background:url(../_img/menu_icons.png) -250px -215px no-repeat}.style_4>ul li{background:url(../_img/menu_icons.png) -250px -315px no-repeat}.style_5>ul li{background:url(../_img/menu_icons.png) -250px -415px no-repeat}.style_1>ul li a.act{color:#253466;background:url(../_img/menu_icons.png) -250px 2px no-repeat}.style_2>ul li a.act{color:#156292;background:url(../_img/menu_icons.png) -250px -98px no-repeat}.style_3>ul li a.act{color:#bb2543;background:url(../_img/menu_icons.png) -250px -198px no-repeat}.style_4>ul li a.act{color:#b7652f;background:url(../_img/menu_icons.png) -250px -298px no-repeat}.style_5>ul li a.act{color:#6b1b39;background:url(../_img/menu_icons.png) -250px -398px no-repeat}#sidebar #menu>li ul li a.act{padding:0 0 0 15px;margin:0 0 0 -15px}#sidebar #menu>li ul li a:hover{text-decoration:underline}#sidebar a.url_newsletter{color:#4b4d4f;font-weight:700;text-decoration:none;background:url(../_img/newsletter_icon.gif) no-repeat;padding:0 15px 0 72px;margin:0 0 35px -15px;clear:both;display:block}#content a:hover,#sidebar a:hover.url_newsletter{text-decoration:underline}#content{padding:17px 0 15px;overflow:hidden}#content img{max-width:100%;height:auto}#content h1{padding:0 0 10px;font-size:22px;font-weight:400}#content h2{padding:0 0 13px;font-size:19px;font-weight:700}#content h2 small{display:block;font-size:16px}#content h3{padding:0 0 10px;font-size:17px;font-weight:700}#content .info_box,#content .info_box p{font-size:16px;line-height:1.2;text-transform:uppercase}#content .t-reason{padding:0;border:0}#content .t-reason td{display:block;vertical-align:top}#content .t-reason .t-reason-col-2 h2{padding:25px 0 13px}#content .t-reason h2{text-align:center}#content .t-reason ul{padding:0}#content .t-membership{width:100%;border:0;text-align:left}#content .t-membership td{text-align:justify;vertical-align:middle}#content .t-membership .t-membership-row-4 td{border-bottom:none}#content .t-contacts-box{max-width:650px}#content .t-contacts{width:100%}#content .t-contacts td{vertical-align:top}#content .t-contacts p{text-align:left}#content .info_box{position:relative;margin:0 0 20px;color:#fff}#content .info_box.tyle_1{background-position:0 0}#content .info_box.tyle_1 .bottom{background-position:-250px 100%}#content .info_box.tyle_2{background-position:-500px 0}#content .info_box.tyle_2 .bottom{background-position:-750px 100%}#content .info_box.tyle_3{background-position:-1000px 0}#content .info_box.tyle_3 .bottom{background-position:-1250px 100%}#content .info_box.tyle_4{background-position:-1500px 0}#content .info_box.tyle_4 .bottom{background-position:-1750px 100%}#content .info_box.tyle_5{background-position:-2000px 0}#content .info_box.tyle_5 .bottom{background-position:-2250px 100%}#content .info_box .bottom{width:219px;height:22px;position:absolute;left:0;bottom:-22px}#content .info_box p{padding:0}#content .search_box{background:#f8f8f8;padding:10px}#content .search_box select{width:130px;background:#f7f7f7;border:1px solid #e1e1e1;padding:6px}#content .search_box li{padding:0;display:block;background:0 0;overflow:hidden}#content .search_box li label{display:block;font-weight:700}#content .search_box li .input{width:78%;color:#4b4d4f;border:0;padding:8px;background:0 0}#content .search_box li select{color:#4b4d4f;background:#f5f5f5;margin:0 20px 10px 0}#content .search_box li select+.filter-button{clear:left;margin-left:100px}#content .search_box li .submit{float:right;width:39px;height:39px;cursor:pointer;background:url(../_img/search_box_icon.gif) 50% 50% no-repeat;border:0;vertical-align:middle}#content .search_box li a.url{float:right;margin-top:7px;padding:4px 18px 4px 0;font-weight:700}#content .search_box li a.url.open{background:url(../_img/search_box_url_icon.gif) right 12px no-repeat}#content .search_box li a.url.close{background:url(../_img/search_box_url_icon.gif) right -13px no-repeat}#content .search_box li #search-input-block{border:1px solid #dfe1e4;background:#fff;overflow:hidden}#content .search_box li.filter-additional{padding-top:10px}#content .search_box li.filter-additional label{float:left;width:95px;padding:6px 5px 0 0}#content .search_box li.filter-additional select{float:left}#content .search_box li.filter-additional+.filter-additional{padding-top:0}#content .search_box li #period,#content .search_box li #type{margin-right:0}#content .search_box .filter-button{float:left;color:#4b4d4f;background:#f5f5f5;margin:0 22px 0 0;border:1px solid #e1e1e1;padding:7px;cursor:pointer}#content .search_box .filter-button:hover{background:#eee}#content .advert_table{width:100%;margin:0 0 20px}#content .advert_table th{font-weight:700;text-align:left;vertical-align:top;border-left:1px solid #dfe1e4;padding:15px 10px 10px}#content .advert_table th:first-child{display:table-cell;border-left:0}#content .advert_table td{vertical-align:top;padding:0 10px}#content .advert_table td:first-child{border-left:0}#content .advert_table .bg td{background:#f8f8f8}#content p{padding:0 0 15px;text-align:justify}#content a{color:#4b4d4f;text-decoration:none}#content .img_left{margin:0 20px 15px 0;float:left}#content a.home_url,.c-home-url{width:254px;color:#4b4d4f;font-size:21px;margin:15px auto;display:block;text-align:center;line-height:1.2}#content a.home_url{text-decoration:none;padding:280px 0 0}#content a.home_url_1{background:url(../_img/workis_l.png) no-repeat;background-size:contain}#content a.home_url_2{background:url(../_img/img_2.jpg) no-repeat}#content a:hover.home_url{text-decoration:underline}.c-home-url{text-decoration:none}.c-home-url:hover{text-decoration:underline}.c-home-pic{display:block;border-radius:50%;margin-bottom:20px;overflow:hidden}#content .contact-form .form li textarea,.cv-form .form li textarea{overflow-y:auto;resize:none}.c-home-pic img{display:block}#content .news_list{padding:0 0 15px;display:block}#content .news_list li{border-top:1px solid #dfe1e4;padding:15px 0 0;display:block}#content .news_list li a.more{font-weight:700;text-decoration:underline}#content .news_list li:first-child{border-top:0;padding:0}#content .staff{margin:0 0 15px -33px;display:block}#content .staff li{width:216px;margin:0 0 10px 33px;float:left}#content .staff li.sep{width:100%}#content .staff li .foto{margin:0 0 10px;display:block}#content .staff li p{padding:0 5px 15px}#content .form{width:318px;padding:0 0 15px;display:inline-block}#content .form li{padding:0 0 28px;display:block;background:0 0}#content .form li.bottom{padding:0 0 10px;margin:-10px 0 0}#content .form li label{padding:0 0 6px;display:block}#content .form li input.text,#content .form li select,#content .form li textarea{background:#f7f7f7;border:1px solid #e1e1e1;padding:6px}#content .form li input.text,#content .form li textarea{width:318px}#content .form li select{width:164px}#content .form li textarea{height:114px;overflow:auto}#content .form li .errormessage{color:#bb2543;padding:6px 0 0;display:block}#content .form li .txt{color:#bb2543;display:inline-block}#content .form li .action{height:28px;color:#fff;cursor:pointer;background:#006957;border:1px solid #e1e1e1;padding:0 20px;margin:0 10px 0 0;display:inline-block}#content .form li .action:hover{background:#008d75}#content .form li .Actions{display:inline-block}#content .country_tabs{width:100%;padding:0 0 15px;float:left}#content .country_tabs li{padding:0 10px 0 0;float:left}#content .country_tabs li a{color:#4b4d4f;text-decoration:none;float:left}#content .country_tabs li a.act{font-weight:700;background:#ebebeb;padding:0 10px}#content .country_tabs li a:hover{text-decoration:underline}#content .pages{text-align:center;padding:0 0 15px;display:block}#content .pages a{margin:0 3px}#content .pages a.prev{font-weight:700;float:left}#content .pages a.next{font-weight:700;float:right}#content .pages a.act{font-weight:700}#banners{width:976px;padding:20px 0;float:left}#banners li{margin:0 0 0 40px;float:left}#banners li:first-child{margin:0}.fl{float:left!important}.fr{float:right!important}.clear{height:0;clear:both;display:block}.input,input.text,select,textarea{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}button::-moz-focus-inner,input[type=button]::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=submit]::-moz-focus-inner{border:0;padding:0}.map_page{width:540px;text-align:center;margin:20px auto}.map_page .logo{margin:0 0 30px;display:block}.map_page p{padding:0 0 15px;display:block}.map_page a.map_url{width:168px;position:relative;display:inline-block}.map_page a.map_url.es{height:89px;background:url(../_img/map_url.jpg) no-repeat;margin:0 0 -20px}.map_page a:hover.map_url.es{background:url(../_img/map_url.jpg) -200px 0 no-repeat;z-index:1}.map_page a.map_url.lv{height:100px;background:url(../_img/map_url.jpg) 0 -69px no-repeat;margin:0 0 -30px}.map_page a:hover.map_url.lv{background:url(../_img/map_url.jpg) -400px -69px no-repeat;z-index:1}.map_page a.map_url.lt{height:109px;background:url(../_img/map_url.jpg) 0 -139px no-repeat}.map_page a:hover.map_url.lt{background:url(../_img/map_url.jpg) -600px -139px no-repeat;z-index:1}.map_page .copy{padding:25px 0 0;display:block}.hide{display:none!important}#top .country{margin:40px 0 0;float:right}#top .country li{float:left}#top .country li a{color:#c3c3c3;font-size:13px;text-decoration:none;padding:0 6px;float:left}#content ul a,#top .country li a:hover{text-decoration:underline}#top .country li a.act{color:#939393;background:#ebebeb}#content img.left{margin:15px 20px 15px 0;float:left}#content img.ico{position:relative;top:7px}#map_canvas{width:100%;height:450px}#content .contact-form .form li input[type=text].error,#content .contact-form .form li textarea.error{border:1px solid #bb2543}.job-cont{padding:0 0 15px;display:block}.cont-content{display:block;padding:0 0 10px}.cv-form .form li.bottom{padding:0 0 10px;margin:-10px 0 0}.cv-form .form li label{padding:0 0 6px;display:block}.cv-form .form li input.text,.cv-form .form li textarea{background:#f7f7f7;border:1px solid #e1e1e1;padding:6px;width:318px}.cv-form .form li textarea{height:114px}#custom,#custom .biuro-header,#custom .biuro-ti,#custom .biuro-ti-text,.about-biuro{overflow:hidden}.cv-form .form li input[type=file]{background:#f7f7f7;border:1px solid #e1e1e1;padding:0 6px;width:304px;height:30px}.cv-form .form li .errormessage{color:#bb2543;padding:6px 0 0}.cv-form .form li input[type=file].error,.cv-form .form li input[type=text].error{border:1px solid #bb2543}.cv-form .form li .txt{color:#bb2543;display:inline-block}.cv-form .form li .action{height:28px;color:#fff;cursor:pointer;background:#006957;border:1px solid #e1e1e1;padding:0 20px;margin:0 10px 0 0;display:inline-block}#sidebar .addthis_share a,#sidebar .share.share_addthis a{height:20px}.cv-form .form li .action:hover{background:#008d75}.cv-form .form li .Actions{display:inline-block}#cv-success,#cv-success p{color:#393}#content ul{padding:0 0 15px;display:block}#content ul.table li,#content ul li{background:url(../_img/list_dot.gif) 0 9px no-repeat;padding:0 0 5px 25px;display:block}#content ul a:hover,.advert_page .container a:hover{text-decoration:none}#content ol{padding:0 0 15px 20px;text-align:justify}#content ol>li{padding:0 0 5px;text-align:justify}#sidebar .share.share_addthis{width:110px}#content .cform .form li select{width:318px}#sidebar .addthis_share{height:20px;padding:2px 0;width:100px;display:inline-block}#content #filter-empty-results{padding-top:15px}#content a.home_url,#content h1,#sidebar #menu>li,#sidebar #menu>li>a{text-transform:uppercase}#sidebar #menu>li ul li a{text-transform:none}#custom .biuro-title h1,#topsearch #top-search-form label,.advert_page .container h2{text-align:center;text-transform:uppercase}#content p{padding-bottom:16px}#content ul#city-list{margin-bottom:10px}#content ul#city-list li{background:0 0;float:left;padding:0;margin-right:10px;line-height:1.5;font-weight:400;cursor:pointer}#content ul#city-list li span{padding:0 12px}#content ul#city-list li.act{font-weight:700;background:#ccc}.hidden-coords{display:none}#topsearch{width:230px;margin:0 auto 20px}#topsearch #top-search-form label{display:block;height:27px;font-size:21px;line-height:1.2}#topsearch #top-search-form #search-input-block{display:inline-block;border:1px solid #dfe1e4}#topsearch #top-search-form .input{float:left;width:183px;margin-right:15px;padding:5px 8px;color:#4b4d4f;border:none}#topsearch #top-search-form .submit{float:left;width:30px;height:30px;padding:0;cursor:pointer;background:url(../_img/top_search_box_icon.png) 50% 50% no-repeat;border:0;vertical-align:middle}.banner{width:180px;height:160px;float:left;position:relative;left:-15px;margin-right:50px;margin-bottom:20px}.banner a,.banner a img{border:0}.icon:before{position:relative;top:9px;display:inline-block;width:30px;height:26px;margin:0 8px 0 0;background:url(../_img/icons.png) 50px 50px no-repeat;border-radius:3px}#content .icon-blue-dark{color:#253466;font-weight:700}.icon-blue-dark:before{border:1px solid #253466}.icon-blue-dark:hover:before{background-color:#253466}#content .icon-blue-light{color:#156292;font-weight:700}.icon-blue-light:before{border:1px solid #156292}.icon-blue-light:hover:before{background-color:#156292}#content .icon-red{color:#bb2543;font-weight:700}.icon-red:before{border:1px solid #bb2543}.icon-red:hover:before{background-color:#bb2543}#content .icon-brown{color:#b76630;font-weight:700}.icon-brown:before{border:1px solid #b76630}.icon-brown:hover:before{background-color:#b76630}#content .icon-purple{color:#6b1c3a;font-weight:700}.icon-purple:before{border:1px solid #6b1c3a}.icon-purple:hover:before{background-color:#6b1c3a}#content .icon-green{color:#006957;font-weight:700}.icon-green:before{border:1px solid #006957}.icon-green:hover:before{background-color:#006957}.icon-blue-dark.icon-facebook:before{background-position:-2px -45px}.icon-blue-dark.icon-linkedin:before{background-position:-40px -45px}.icon-blue-dark.icon-phone:before{background-position:-80px -45px}.icon-blue-dark.icon-note:before{background-position:-121px -45px}.icon-blue-light.icon-facebook:before{background-position:-2px -87px}.icon-blue-light.icon-linkedin:before{background-position:-40px -87px}.icon-blue-light.icon-phone:before{background-position:-80px -87px}.icon-blue-light.icon-note:before{background-position:-121px -87px}.icon-red.icon-facebook:before{background-position:-2px -131px}.icon-red.icon-linkedin:before{background-position:-40px -131px}.icon-red.icon-phone:before{background-position:-80px -131px}.icon-red.icon-note:before{background-position:-121px -131px}.icon-brown.icon-facebook:before{background-position:-2px -176px}.icon-brown.icon-linkedin:before{background-position:-40px -176px}.icon-brown.icon-phone:before{background-position:-80px -176px}.icon-brown.icon-note:before{background-position:-121px -176px}.icon-purple.icon-facebook:before{background-position:-2px -218px}.icon-purple.icon-linkedin:before{background-position:-40px -218px}.icon-purple.icon-phone:before{background-position:-80px -218px}.icon-purple.icon-note:before{background-position:-121px -218px}.icon-green.icon-facebook:before{background-position:-2px -258px}.icon-green.icon-linkedin:before{background-position:-40px -258px}.icon-green.icon-phone:before{background-position:-80px -258px}.icon-green.icon-note:before{background-position:-121px -258px}.icon-facebook:hover:before{background-position:-2px -7px}.icon-linkedin:hover:before{background-position:-40px -7px}.icon-phone:hover:before{background-position:-80px -7px}.icon-note:hover:before{background-position:-121px -7px}.about-biuro{margin:0 auto}.about-biuro-img{position:relative;float:left;width:100%;height:214px;background-repeat:no-repeat}.about-biuro-img:before{position:absolute;top:0;left:50%;width:178px;height:214px;margin:0 0 0 -89px}.about-biuro-img-1:before{background-position:0 0}.about-biuro-img-2:before{background-position:-178px 0}.about-biuro-img-3:before{background-position:-356px 0}.about-biuro-img-4:before{background-position:-534px 0}.about-biuro-lt .about-biuro-img:before{background-image:url(../_img/lt-apie-idarbinimo-agentura.jpg)}.about-biuro-lv .about-biuro-img:before{background-image:url(../_img/lv-apie-idarbinimo-agentura.jpg)}.about-biuro-ee .about-biuro-img:before{background-image:url(../_img/ee-apie-idarbinimo-agentura.jpg)}.about-biuro-en .about-biuro-img:before{background-image:url(../_img/en-apie-idarbinimo-agentura.jpg)}.about-biuro-ru .about-biuro-img:before{background-image:url(../_img/ru-apie-idarbinimo-agentura.jpg)}.advert_page{max-width:736px;margin:0 auto}.advert_page .container{padding:20px;opacity:1;visibility:visible}.advert_page .container h1{font-weight:700;padding:0 0 15px;display:block}.advert_page .container h2{font-weight:700;padding:35px 0 0;margin:0 67px 30px 0;float:right}.advert_page .container h3{font-weight:700;padding:0 6px 18px 0}.advert_page .container ol,.advert_page .container p,.advert_page .container ul{padding:0 0 15px;display:block}.advert_page .container ol li,.advert_page .container ul li{background:url(../_img/list_dot.gif) 35px 8px no-repeat;padding:0 0 0 70px;display:block}.advert_page .container a{color:#4b4d4f}.advert_page .container .company{padding:0 0 15px;display:block}.advert_page .container .cv-form .form{width:318px;margin-top:20px;padding:0 0 15px;display:inline-block;list-style:none}.advert_page .container .cv-form .form li{padding:0 0 28px;display:block;list-style:none;background:0 0}.job-add h3{float:left;clear:both;font-weight:700;padding:0 6px 15px 0}.job-add span{display:block;float:left;padding:0 0 15px}#custom .biuro-header p{color:#006957;font-weight:700}#custom .biuro-header .logo{float:none;width:133px;margin:0 auto 20px}#custom .biuro-title{padding:20px 0;visibility:hidden}#custom .biuro-title h1{color:#006957;font-weight:700;overflow:hidden}#custom .biuro-ti-img{display:none}#custom .biuro-ti-text h3{color:#006957;padding:0}#custom .biuro-ti-text li{padding:0 0 0 15px;background:url(https://www.biuro.lt/job-ads/list-item-disc.jpg) 0 5px no-repeat}@media (min-width:360px){#content .search_box li .input{width:83%}}@media (min-width:480px){#top #logo{margin:0;float:left}#content img.starjobs-img{float:left;width:100px;margin:15px 20px 15px 0}#content .t-contacts td.t-contacts-col-1{width:43%}#content .t-contacts td.t-contacts-col-2,#content .t-contacts td.t-contacts-col-3{width:50%}#content .info_box{float:right;margin:47px 0 20px 20px}#content .search_box li .input{width:88%}#content .advert_table td{max-width:260px;padding:10px}#content .advert_table td:nth-child(2){text-align:right}#content .advert_table td:nth-child(4){display:none}#topsearch{margin:7px 0 0;float:right;clear:none}.about-biuro-img{width:50%}#custom .biuro-header .logo{float:left;margin:0 20px 20px 0}#custom .biuro-ti-img{display:block;float:left;width:70px}#custom .biuro-job-contacts{margin:0 0 0 70px}}@media (min-width:600px){#content .search_box li label{float:left;padding:9px 10px 0 0}#content .search_box li #search-input-block{margin:0 0 0 100px}}@media (min-width:768px){#sidebar,#sidebar #menu,#topsearch{float:left}#content .advert_table td:nth-child(2),#topsearch #top-search-form label{text-align:left}body{font-size:16px;line-height:1.3}.l-footer{display:none}#sidebar .banner,#sidebar .copy,#top #lang,#top .country{display:block}#main{max-width:956px}#top #logo{margin:21px 0 21px 15px}#top #lang{font-size:13px;color:#a1a1a1;margin:10px 0 0;clear:right;float:right}#sidebar{width:195px}#sidebar .share{display:block;margin:0 0 15px}#sidebar .copy{padding:15px 0}#content h1{text-align:justify}#content img.starjobs-img{width:200px}#content .t-membership td{border-bottom:1px solid #dfdfdf;padding-bottom:10px}#content .t-membership .t-membership-col-1{width:150px;padding-right:20px}#content .t-contacts td.t-contacts-col-1{width:34%}#content .t-contacts td.t-contacts-col-2,#content .t-contacts td.t-contacts-col-3{width:33%}#content .info_box.tyle_1,#content .info_box.tyle_1 .bottom,#content .info_box.tyle_2,#content .info_box.tyle_2 .bottom,#content .info_box.tyle_3,#content .info_box.tyle_3 .bottom,#content .info_box.tyle_4,#content .info_box.tyle_4 .bottom,#content .info_box.tyle_5,#content .info_box.tyle_5 .bottom{background-image:url(../_img/info_box_bg.png);background-repeat:no-repeat}#content .advert_table td{border-left:1px solid #dfe1e4}#content .advert_table td:nth-child(4){display:table-cell}#topsearch{margin:27px 0 0 62px}.advert_page{margin:20px auto;border:1px solid #e6e6e6}.advert_page .container{padding:30px 49px}#custom .biuro-header .logo{margin:0 20px 30px 0}#custom .biuro-title{background:url(https://www.biuro.lt/job-ads/job-title.jpg) no-repeat;margin:15px 0 30px;width:556px;height:155px;padding:20px 60px 20px 20px}#custom .biuro-title h1{height:155px}}@media (min-width:980px){#content h2,#content h3,#content ul{text-align:justify}#main{padding:0}#sidebar{width:215px}#sidebar #menu>li,#sidebar #menu>li>a{font-family:Bebas Neue,sans-serif;font-size:24px}#content .info_box,#content .info_box p,#content a.home_url,#content h1,.c-home-url{font-family:Bebas Neue}#content{width:714px;float:right}#content h1{padding:0 0 15px;font-size:24px}#content .t-reason td{display:table-cell;width:50%}#content .t-reason .t-reason-col-1{padding-right:20px;border-right:1px solid #dfdfdf}#content .t-reason .t-reason-col-2{padding-left:20px}#content .t-reason .t-reason-col-2 h2{padding:12px 0 25px}#content .t-membership td{padding-bottom:0}#content .t-membership .t-membership-col-1{width:250px;padding-right:0}#content .info_box,#content .info_box p{font-size:18px}#content .search_box li select{margin:0 33px 10px 0}#content .search_box li a.url{margin-top:-36px}#content .search_box li #search-input-block{margin:0 200px 0 100px}#content a.home_url,.c-home-url{display:inline-block;font-weight:400;margin:15px 50px;font-size:24px}#content ul li{padding:0 0 5px 45px;background-position:20px 9px}#topsearch{float:left;margin:47px 0 10px 114px;width:550px}#topsearch #top-search-form label{float:left;padding:2px 10px 0 0;font-size:23px;font-family:Bebas Neue,sans-serif}.about-biuro-img{width:25%}.advert_page{max-width:776px}.advert_page .container{padding:50px 69px}}@media (min-width:1024px){#main{max-width:976px}#sidebar{width:235px}}@media only screen and (min-width:1281px){[href^=tel]{pointer-events:none;text-decoration:none;color:inherit}}@media (max-width:979px){#content .advert_table td:nth-child(3),#content .advert_table th:nth-child(3){display:none}}@media (max-width:767px){#content h1 .icon{display:block;margin-top:10px}#content .t-membership tr{display:block}#content .t-membership td{display:block;float:left;width:100%}#content .t-membership .t-membership-col-2{border-bottom:1px solid #dfdfdf;padding:0 0 20px}#content .t-contacts td{float:left;width:50%}#content .advert_table th{display:none}#content .advert_table th:first-child{float:left;width:100%}.hidden-max-small{display:none!important}#custom .biuro-title{visibility:visible!important}#custom .biuro-title h1 span{font-size:40px!important}}@media (max-width:599px){#content .search_box li select+label{clear:left}}@media (max-width:479px){#content .t-contacts td{width:100%}#content .advert_table td{float:left;width:100%}#content .advert_table td:first-child{padding-top:10px}#content .advert_table td:last-child{padding-bottom:10px}.hidden-max-x-small{display:none!important}#custom .biuro-job-valid-till{display:block}}
.c-cookies-warning{position:fixed;left:0;right:0;bottom:0;padding:15px 20px;background:#f6f6f6;overflow:hidden;z-index:100}.c-cookies-warning .bu-action{margin-top:10px}.c-cookies-warning .bu-action--alt{float:right}.c-cookies-warning--inner{margin:0 auto;max-width:976px}#main:after,#top:after,.about-biuro-img:before,.icon:before{content:""}@font-face{font-family:PT Sans Narrow;font-style:normal;font-weight:400;src:local("PT Sans Narrow"),local("PTSans-Narrow"),url(https://fonts.gstatic.com/s/ptsansnarrow/v8/BngRUXNadjH0qYEzV7ab-oWlsYCB.ttf) format("truetype")}@font-face{font-family:PT Sans Narrow;font-style:normal;font-weight:700;src:local("PT Sans Narrow Bold"),local("PTSans-NarrowBold"),url(https://fonts.gstatic.com/s/ptsansnarrow/v8/BngSUXNadjH0qYEzV7ab-oWlsbg95DiC.ttf) format("truetype")}@font-face{font-family:Bebas Neue;src:url(../_fonts/bebas-neue.eot);src:url(../_fonts/bebas-neue.eot?#iefix) format("embedded-opentype"),url(../_fonts/bebas-neue.woff2) format("woff2"),url(../_fonts/bebas-neue.woff) format("woff"),url(../_fonts/bebas-neue.ttf) format("truetype"),url(../_fonts/bebas-neue.svg#BebasNeue) format("svg")}#main:after,#top:after{display:table;clear:both}*{padding:0;margin:0;outline:0}fieldset,img{border:0}ul{list-style:none}table{border-spacing:0}html body{overflow:visible}body{color:#4b4d4f;font-family:PT Sans Narrow,sans-serif;font-size:18px;line-height:1.2;overflow:auto}button,input,select,textarea{color:#4b4d4f;font:16px/1.3 PT Sans Narrow,sans-serif}.bu-action{height:28px;cursor:pointer;border:1px solid #e1e1e1;padding:0 15px;margin:0;display:inline-block}.bu-action--main{color:#fff;background:#006957}.c-nav-footer{margin:0;padding:0;list-style:none}.c-nav-footer+.c-nav-footer{margin-top:20px}.c-nav-footer li{display:inline-block;padding:0 5px}.c-nav-footer a{display:block;padding:0 3px;text-decoration:none;color:#4b4d4f;border:1px solid #fff}#top #lang,#top .country{display:none}.c-nav-footer a:hover{border-color:#ababab}.c-nav-footer .act,.c-nav-footer .act:hover{border-color:#4b4d4f}#top{padding:20px 0 0}#top #logo{float:none;width:133px;margin:0 auto 20px}#top #country{margin:20px 0 0;float:right}#top #country li,#top #lang li{float:left}#top #country li a,#top #lang li a{color:#c3c3c3;font-size:13px;text-decoration:none;padding:0 6px;float:left}#sidebar #menu>li,#sidebar #menu>li>a{font-size:21px;line-height:22px;width:100%}#top #country li a.act,#top #lang li a.act{color:#939393;background:#ebebeb}#top #country li a:hover,#top #lang li a:hover{text-decoration:underline}#sidebar{padding:20px 0 15px 15px;overflow:hidden}#sidebar #menu{width:100%;margin:0 0 20px -15px}#sidebar #menu>li{float:left;padding:0 0 13px}#sidebar #menu>li>a{padding:0 0 1px 15px;color:#4b4d4f;text-decoration:none}#sidebar #menu>li ul{display:block}#sidebar #menu>li ul li{width:100%;padding:6px 0 0 15px;float:left}#sidebar #menu>li ul li a{display:block;color:#4b4d4f;font:16px/1.1 PT Sans Narrow,sans-serif;text-decoration:none}#sidebar .banner,#sidebar .share{display:none}#sidebar .share a{display:inline-block;height:24px;margin:0 10px 0 0}#sidebar .share a.facebook,#sidebar .share a.linkedin,#sidebar .share a.share_all{background:url(../_img/share_icons.png) no-repeat}#sidebar .share a.facebook{width:24px;background-position:0 0}#sidebar .share a.linkedin{width:24px;background-position:0 -50px}#sidebar .share a.share_all{width:49px;background-position:0 -100px}#sidebar .copy{display:none}.style_1>a{background:url(../_img/menu_icons.png) 0 2px no-repeat}.style_1>a.act{background:url(../_img/menu_icons.png) -250px 0 no-repeat}.style_2>a{background:url(../_img/menu_icons.png) 0 -98px no-repeat}.style_2>a.act{background:url(../_img/menu_icons.png) -250px -100px no-repeat}.style_3>a{background:url(../_img/menu_icons.png) 0 -198px no-repeat}.style_3>a.act{background:url(../_img/menu_icons.png) -250px -200px no-repeat}.style_4>a{background:url(../_img/menu_icons.png) 0 -298px no-repeat}.style_4>a.act{background:url(../_img/menu_icons.png) -250px -300px no-repeat}.style_5>a{background:url(../_img/menu_icons.png) 0 -398px no-repeat}.style_5>a.act{background:url(../_img/menu_icons.png) -250px -400px no-repeat}.style_1>ul li{background:url(../_img/menu_icons.png) -250px -15px no-repeat}.style_2>ul li{background:url(../_img/menu_icons.png) -250px -115px no-repeat}.style_3>ul li{background:url(../_img/menu_icons.png) -250px -215px no-repeat}.style_4>ul li{background:url(../_img/menu_icons.png) -250px -315px no-repeat}.style_5>ul li{background:url(../_img/menu_icons.png) -250px -415px no-repeat}.style_1>ul li a.act{color:#253466;background:url(../_img/menu_icons.png) -250px 2px no-repeat}.style_2>ul li a.act{color:#156292;background:url(../_img/menu_icons.png) -250px -98px no-repeat}.style_3>ul li a.act{color:#bb2543;background:url(../_img/menu_icons.png) -250px -198px no-repeat}.style_4>ul li a.act{color:#b7652f;background:url(../_img/menu_icons.png) -250px -298px no-repeat}.style_5>ul li a.act{color:#6b1b39;background:url(../_img/menu_icons.png) -250px -398px no-repeat}#sidebar #menu>li ul li a.act{padding:0 0 0 15px;margin:0 0 0 -15px}#sidebar #menu>li ul li a:hover{text-decoration:underline}#sidebar a.url_newsletter{color:#4b4d4f;font-weight:700;text-decoration:none;background:url(../_img/newsletter_icon.gif) no-repeat;padding:0 15px 0 72px;margin:0 0 35px -15px;clear:both;display:block}#content a:hover,#sidebar a:hover.url_newsletter{text-decoration:underline}#content{padding:17px 0 15px;overflow:hidden}#content img{max-width:100%;height:auto}#content h1{padding:0 0 10px;font-size:22px;font-weight:400}#content h2{padding:0 0 13px;font-size:19px;font-weight:700}#content h2 small{display:block;font-size:16px}#content h3{padding:0 0 10px;font-size:17px;font-weight:700}#content .info_box,#content .info_box p{font-size:16px;line-height:1.2;text-transform:uppercase}#content .t-reason{padding:0;border:0}#content .t-reason td{display:block;vertical-align:top}#content .t-reason .t-reason-col-2 h2{padding:25px 0 13px}#content .t-reason h2{text-align:center}#content .t-reason ul{padding:0}#content .t-membership{width:100%;border:0;text-align:left}#content .t-membership td{text-align:justify;vertical-align:middle}#content .t-membership .t-membership-row-4 td{border-bottom:none}#content .t-contacts-box{max-width:650px}#content .t-contacts{width:100%}#content .t-contacts td{vertical-align:top}#content .t-contacts p{text-align:left}#content .info_box{position:relative;margin:0 0 20px;color:#fff}#content .info_box.tyle_1{background-position:0 0}#content .info_box.tyle_1 .bottom{background-position:-250px 100%}#content .info_box.tyle_2{background-position:-500px 0}#content .info_box.tyle_2 .bottom{background-position:-750px 100%}#content .info_box.tyle_3{background-position:-1000px 0}#content .info_box.tyle_3 .bottom{background-position:-1250px 100%}#content .info_box.tyle_4{background-position:-1500px 0}#content .info_box.tyle_4 .bottom{background-position:-1750px 100%}#content .info_box.tyle_5{background-position:-2000px 0}#content .info_box.tyle_5 .bottom{background-position:-2250px 100%}#content .info_box .bottom{width:219px;height:22px;position:absolute;left:0;bottom:-22px}#content .info_box p{padding:0}#content .search_box{background:#f8f8f8;padding:10px}#content .search_box select{width:130px;background:#f7f7f7;border:1px solid #e1e1e1;padding:6px}#content .search_box li{padding:0;display:block;background:0 0;overflow:hidden}#content .search_box li label{display:block;font-weight:700}#content .search_box li .input{width:78%;color:#4b4d4f;border:0;padding:8px;background:0 0}#content .search_box li select{color:#4b4d4f;background:#f5f5f5;margin:0 20px 10px 0}#content .search_box li select+.filter-button{clear:left;margin-left:100px}#content .search_box li .submit{float:right;width:39px;height:39px;cursor:pointer;background:url(../_img/search_box_icon.gif) 50% 50% no-repeat;border:0;vertical-align:middle}#content .search_box li a.url{float:right;margin-top:7px;padding:4px 18px 4px 0;font-weight:700}#content .search_box li a.url.open{background:url(../_img/search_box_url_icon.gif) right 12px no-repeat}#content .search_box li a.url.close{background:url(../_img/search_box_url_icon.gif) right -13px no-repeat}#content .search_box li #search-input-block{border:1px solid #dfe1e4;background:#fff;overflow:hidden}#content .search_box li.filter-additional{padding-top:10px}#content .search_box li.filter-additional label{float:left;width:95px;padding:6px 5px 0 0}#content .search_box li.filter-additional select{float:left}#content .search_box li.filter-additional+.filter-additional{padding-top:0}#content .search_box li #period,#content .search_box li #type{margin-right:0}#content .search_box .filter-button{float:left;color:#4b4d4f;background:#f5f5f5;margin:0 22px 0 0;border:1px solid #e1e1e1;padding:7px;cursor:pointer}#content .search_box .filter-button:hover{background:#eee}#content .advert_table{width:100%;margin:0 0 20px}#content .advert_table th{font-weight:700;text-align:left;vertical-align:top;border-left:1px solid #dfe1e4;padding:15px 10px 10px}#content .advert_table th:first-child{display:table-cell;border-left:0}#content .advert_table td{vertical-align:top;padding:0 10px}#content .advert_table td:first-child{border-left:0}#content .advert_table .bg td{background:#f8f8f8}#content p{padding:0 0 15px;text-align:justify}#content a{color:#4b4d4f;text-decoration:none}#content .img_left{margin:0 20px 15px 0;float:left}#content a.home_url,.c-home-url{width:254px;color:#4b4d4f;font-size:21px;margin:15px auto;display:block;text-align:center;line-height:1.2}#content a.home_url{text-decoration:none;padding:280px 0 0}#content a.home_url_1{background:url(../_img/workis_l.png) no-repeat;background-size:contain}#content a.home_url_2{background:url(../_img/img_2.jpg) no-repeat}#content a:hover.home_url{text-decoration:underline}.c-home-url{text-decoration:none}.c-home-url:hover{text-decoration:underline}.c-home-pic{display:block;border-radius:50%;margin-bottom:20px;overflow:hidden}#content .contact-form .form li textarea,.cv-form .form li textarea{overflow-y:auto;resize:none}.c-home-pic img{display:block}#content .news_list{padding:0 0 15px;display:block}#content .news_list li{border-top:1px solid #dfe1e4;padding:15px 0 0;display:block}#content .news_list li a.more{font-weight:700;text-decoration:underline}#content .news_list li:first-child{border-top:0;padding:0}#content .staff{margin:0 0 15px -33px;display:block}#content .staff li{width:216px;margin:0 0 10px 33px;float:left}#content .staff li.sep{width:100%}#content .staff li .foto{margin:0 0 10px;display:block}#content .staff li p{padding:0 5px 15px}#content .form{width:318px;padding:0 0 15px;display:inline-block}#content .form li{padding:0 0 28px;display:block;background:0 0}#content .form li.bottom{padding:0 0 10px;margin:-10px 0 0}#content .form li label{padding:0 0 6px;display:block}#content .form li input.text,#content .form li select,#content .form li textarea{background:#f7f7f7;border:1px solid #e1e1e1;padding:6px}#content .form li input.text,#content .form li textarea{width:318px}#content .form li select{width:164px}#content .form li textarea{height:114px;overflow:auto}#content .form li .errormessage{color:#bb2543;padding:6px 0 0;display:block}#content .form li .txt{color:#bb2543;display:inline-block}#content .form li .action{height:28px;color:#fff;cursor:pointer;background:#006957;border:1px solid #e1e1e1;padding:0 20px;margin:0 10px 0 0;display:inline-block}#content .form li .action:hover{background:#008d75}#content .form li .Actions{display:inline-block}#content .country_tabs{width:100%;padding:0 0 15px;float:left}#content .country_tabs li{padding:0 10px 0 0;float:left}#content .country_tabs li a{color:#4b4d4f;text-decoration:none;float:left}#content .country_tabs li a.act{font-weight:700;background:#ebebeb;padding:0 10px}#content .country_tabs li a:hover{text-decoration:underline}#content .pages{text-align:center;padding:0 0 15px;display:block}#content .pages a{margin:0 3px}#content .pages a.prev{font-weight:700;float:left}#content .pages a.next{font-weight:700;float:right}#content .pages a.act{font-weight:700}#banners{width:976px;padding:20px 0;float:left}#banners li{margin:0 0 0 40px;float:left}#banners li:first-child{margin:0}.fl{float:left!important}.fr{float:right!important}.clear{height:0;clear:both;display:block}.input,input.text,select,textarea{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}button::-moz-focus-inner,input[type=button]::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=submit]::-moz-focus-inner{border:0;padding:0}.map_page{width:540px;text-align:center;margin:20px auto}.map_page .logo{margin:0 0 30px;display:block}.map_page p{padding:0 0 15px;display:block}.map_page a.map_url{width:168px;position:relative;display:inline-block}.map_page a.map_url.es{height:89px;background:url(../_img/map_url.jpg) no-repeat;margin:0 0 -20px}.map_page a:hover.map_url.es{background:url(../_img/map_url.jpg) -200px 0 no-repeat;z-index:1}.map_page a.map_url.lv{height:100px;background:url(../_img/map_url.jpg) 0 -69px no-repeat;margin:0 0 -30px}.map_page a:hover.map_url.lv{background:url(../_img/map_url.jpg) -400px -69px no-repeat;z-index:1}.map_page a.map_url.lt{height:109px;background:url(../_img/map_url.jpg) 0 -139px no-repeat}.map_page a:hover.map_url.lt{background:url(../_img/map_url.jpg) -600px -139px no-repeat;z-index:1}.map_page .copy{padding:25px 0 0;display:block}.hide{display:none!important}#top .country{margin:40px 0 0;float:right}#top .country li{float:left}#top .country li a{color:#c3c3c3;font-size:13px;text-decoration:none;padding:0 6px;float:left}#content ul a,#top .country li a:hover{text-decoration:underline}#top .country li a.act{color:#939393;background:#ebebeb}#content img.left{margin:15px 20px 15px 0;float:left}#content img.ico{position:relative;top:7px}#map_canvas{width:100%;height:450px}#content .contact-form .form li input[type=text].error,#content .contact-form .form li textarea.error{border:1px solid #bb2543}.job-cont{padding:0 0 15px;display:block}.cont-content{display:block;padding:0 0 10px}.cv-form .form li.bottom{padding:0 0 10px;margin:-10px 0 0}.cv-form .form li label{padding:0 0 6px;display:block}.cv-form .form li input.text,.cv-form .form li textarea{background:#f7f7f7;border:1px solid #e1e1e1;padding:6px;width:318px}.cv-form .form li textarea{height:114px}#custom,#custom .biuro-header,#custom .biuro-ti,#custom .biuro-ti-text,.about-biuro{overflow:hidden}.cv-form .form li input[type=file]{background:#f7f7f7;border:1px solid #e1e1e1;padding:0 6px;width:304px;height:30px}.cv-form .form li .errormessage{color:#bb2543;padding:6px 0 0}.cv-form .form li input[type=file].error,.cv-form .form li input[type=text].error{border:1px solid #bb2543}.cv-form .form li .txt{color:#bb2543;display:inline-block}.cv-form .form li .action{height:28px;color:#fff;cursor:pointer;background:#006957;border:1px solid #e1e1e1;padding:0 20px;margin:0 10px 0 0;display:inline-block}#sidebar .addthis_share a,#sidebar .share.share_addthis a{height:20px}.cv-form .form li .action:hover{background:#008d75}.cv-form .form li .Actions{display:inline-block}#cv-success,#cv-success p{color:#393}#content ul{padding:0 0 15px;display:block}#content ul.table li,#content ul li{background:url(../_img/list_dot.gif) 0 9px no-repeat;padding:0 0 5px 25px;display:block}#content ul a:hover,.advert_page .container a:hover{text-decoration:none}#content ol{padding:0 0 15px 20px;text-align:justify}#content ol>li{padding:0 0 5px;text-align:justify}#sidebar .share.share_addthis{width:110px}#content .cform .form li select{width:318px}#sidebar .addthis_share{height:20px;padding:2px 0;width:100px;display:inline-block}#content #filter-empty-results{padding-top:15px}#content a.home_url,#content h1,#sidebar #menu>li,#sidebar #menu>li>a{text-transform:uppercase}#sidebar #menu>li ul li a{text-transform:none}#custom .biuro-title h1,#topsearch #top-search-form label,.advert_page .container h2{text-align:center;text-transform:uppercase}#content p{padding-bottom:16px}#content ul#city-list{margin-bottom:10px}#content ul#city-list li{background:0 0;float:left;padding:0;margin-right:10px;line-height:1.5;font-weight:400;cursor:pointer}#content ul#city-list li span{padding:0 12px}#content ul#city-list li.act{font-weight:700;background:#ccc}.hidden-coords{display:none}#topsearch{width:230px;margin:0 auto 20px}#topsearch #top-search-form label{display:block;height:27px;font-size:21px;line-height:1.2}#topsearch #top-search-form #search-input-block{display:inline-block;border:1px solid #dfe1e4}#topsearch #top-search-form .input{float:left;width:183px;margin-right:15px;padding:5px 8px;color:#4b4d4f;border:none}#topsearch #top-search-form .submit{float:left;width:30px;height:30px;padding:0;cursor:pointer;background:url(../_img/top_search_box_icon.png) 50% 50% no-repeat;border:0;vertical-align:middle}.banner{width:180px;height:160px;float:left;position:relative;left:-15px;margin-right:50px;margin-bottom:20px}.banner a,.banner a img{border:0}.icon:before{position:relative;top:9px;display:inline-block;width:30px;height:26px;margin:0 8px 0 0;background:url(../_img/icons.png) 50px 50px no-repeat;border-radius:3px}#content .icon-blue-dark{color:#253466;font-weight:700}.icon-blue-dark:before{border:1px solid #253466}.icon-blue-dark:hover:before{background-color:#253466}#content .icon-blue-light{color:#156292;font-weight:700}.icon-blue-light:before{border:1px solid #156292}.icon-blue-light:hover:before{background-color:#156292}#content .icon-red{color:#bb2543;font-weight:700}.icon-red:before{border:1px solid #bb2543}.icon-red:hover:before{background-color:#bb2543}#content .icon-brown{color:#b76630;font-weight:700}.icon-brown:before{border:1px solid #b76630}.icon-brown:hover:before{background-color:#b76630}#content .icon-purple{color:#6b1c3a;font-weight:700}.icon-purple:before{border:1px solid #6b1c3a}.icon-purple:hover:before{background-color:#6b1c3a}#content .icon-green{color:#006957;font-weight:700}.icon-green:before{border:1px solid #006957}.icon-green:hover:before{background-color:#006957}.icon-blue-dark.icon-facebook:before{background-position:-2px -45px}.icon-blue-dark.icon-linkedin:before{background-position:-40px -45px}.icon-blue-dark.icon-phone:before{background-position:-80px -45px}.icon-blue-dark.icon-note:before{background-position:-121px -45px}.icon-blue-light.icon-facebook:before{background-position:-2px -87px}.icon-blue-light.icon-linkedin:before{background-position:-40px -87px}.icon-blue-light.icon-phone:before{background-position:-80px -87px}.icon-blue-light.icon-note:before{background-position:-121px -87px}.icon-red.icon-facebook:before{background-position:-2px -131px}.icon-red.icon-linkedin:before{background-position:-40px -131px}.icon-red.icon-phone:before{background-position:-80px -131px}.icon-red.icon-note:before{background-position:-121px -131px}.icon-brown.icon-facebook:before{background-position:-2px -176px}.icon-brown.icon-linkedin:before{background-position:-40px -176px}.icon-brown.icon-phone:before{background-position:-80px -176px}.icon-brown.icon-note:before{background-position:-121px -176px}.icon-purple.icon-facebook:before{background-position:-2px -218px}.icon-purple.icon-linkedin:before{background-position:-40px -218px}.icon-purple.icon-phone:before{background-position:-80px -218px}.icon-purple.icon-note:before{background-position:-121px -218px}.icon-green.icon-facebook:before{background-position:-2px -258px}.icon-green.icon-linkedin:before{background-position:-40px -258px}.icon-green.icon-phone:before{background-position:-80px -258px}.icon-green.icon-note:before{background-position:-121px -258px}.icon-facebook:hover:before{background-position:-2px -7px}.icon-linkedin:hover:before{background-position:-40px -7px}.icon-phone:hover:before{background-position:-80px -7px}.icon-note:hover:before{background-position:-121px -7px}.about-biuro{margin:0 auto}.about-biuro-img{position:relative;float:left;width:100%;height:214px;background-repeat:no-repeat}.about-biuro-img:before{position:absolute;top:0;left:50%;width:178px;height:214px;margin:0 0 0 -89px}.about-biuro-img-1:before{background-position:0 0}.about-biuro-img-2:before{background-position:-178px 0}.about-biuro-img-3:before{background-position:-356px 0}.about-biuro-img-4:before{background-position:-534px 0}.about-biuro-lt .about-biuro-img:before{background-image:url(../_img/lt-apie-idarbinimo-agentura.jpg)}.about-biuro-lv .about-biuro-img:before{background-image:url(../_img/lv-apie-idarbinimo-agentura.jpg)}.about-biuro-ee .about-biuro-img:before{background-image:url(../_img/ee-apie-idarbinimo-agentura.jpg)}.about-biuro-en .about-biuro-img:before{background-image:url(../_img/en-apie-idarbinimo-agentura.jpg)}.about-biuro-ru .about-biuro-img:before{background-image:url(../_img/ru-apie-idarbinimo-agentura.jpg)}.advert_page{max-width:736px;margin:0 auto}.advert_page .container{padding:20px;opacity:1;visibility:visible}.advert_page .container h1{font-weight:700;padding:0 0 15px;display:block}.advert_page .container h2{font-weight:700;padding:35px 0 0;margin:0 67px 30px 0;float:right}.advert_page .container h3{font-weight:700;padding:0 6px 18px 0}.advert_page .container ol,.advert_page .container p,.advert_page .container ul{padding:0 0 15px;display:block}.advert_page .container ol li,.advert_page .container ul li{background:url(../_img/list_dot.gif) 35px 8px no-repeat;padding:0 0 0 70px;display:block}.advert_page .container a{color:#4b4d4f}.advert_page .container .company{padding:0 0 15px;display:block}.advert_page .container .cv-form .form{width:318px;margin-top:20px;padding:0 0 15px;display:inline-block;list-style:none}.advert_page .container .cv-form .form li{padding:0 0 28px;display:block;list-style:none;background:0 0}.job-add h3{float:left;clear:both;font-weight:700;padding:0 6px 15px 0}.job-add span{display:block;float:left;padding:0 0 15px}#custom .biuro-header p{color:#006957;font-weight:700}#custom .biuro-header .logo{float:none;width:133px;margin:0 auto 20px}#custom .biuro-title{padding:20px 0;visibility:hidden}#custom .biuro-title h1{color:#006957;font-weight:700;overflow:hidden}#custom .biuro-ti-img{display:none}#custom .biuro-ti-text h3{color:#006957;padding:0}#custom .biuro-ti-text li{padding:0 0 0 15px;background:url(https://www.biuro.lt/job-ads/list-item-disc.jpg) 0 5px no-repeat}@media (max-width:600px){.bu-action{height:44px}}@media (min-width:360px){#content .search_box li .input{width:83%}}@media (min-width:480px){#top #logo{margin:0;float:left}#content img.starjobs-img{float:left;width:100px;margin:15px 20px 15px 0}#content .t-contacts td.t-contacts-col-1{width:43%}#content .t-contacts td.t-contacts-col-2,#content .t-contacts td.t-contacts-col-3{width:50%}#content .info_box{float:right;margin:47px 0 20px 20px}#content .search_box li .input{width:88%}#content .advert_table td{max-width:260px;padding:10px}#content .advert_table td:nth-child(2){text-align:right}#content .advert_table td:nth-child(4){display:none}#topsearch{margin:7px 0 0;float:right;clear:none}.about-biuro-img{width:50%}#custom .biuro-header .logo{float:left;margin:0 20px 20px 0}#custom .biuro-ti-img{display:block;float:left;width:70px}#custom .biuro-job-contacts{margin:0 0 0 70px}}@media (min-width:600px){#content .search_box li label{float:left;padding:9px 10px 0 0}#content .search_box li #search-input-block{margin:0 0 0 100px}}@media (min-width:768px){#content .advert_table td:nth-child(2),#topsearch #top-search-form label{text-align:left}body{font-size:16px;line-height:1.3}#sidebar .banner,#sidebar .copy,#top #lang,#top .country{display:block}#top #logo{margin:21px 0 21px 15px}#top #lang{font-size:13px;color:#a1a1a1;margin:10px 0 0;clear:right;float:right}#sidebar .share{display:block;margin:0 0 15px}#sidebar .copy{padding:15px 0}#content h1{text-align:justify}#content img.starjobs-img{width:200px}#content .t-membership td{border-bottom:1px solid #dfdfdf;padding-bottom:10px}#content .t-membership .t-membership-col-1{width:150px;padding-right:20px}#content .t-contacts td.t-contacts-col-1{width:34%}#content .t-contacts td.t-contacts-col-2,#content .t-contacts td.t-contacts-col-3{width:33%}#content .info_box.tyle_1,#content .info_box.tyle_1 .bottom,#content .info_box.tyle_2,#content .info_box.tyle_2 .bottom,#content .info_box.tyle_3,#content .info_box.tyle_3 .bottom,#content .info_box.tyle_4,#content .info_box.tyle_4 .bottom,#content .info_box.tyle_5,#content .info_box.tyle_5 .bottom{background-image:url(../_img/info_box_bg.png);background-repeat:no-repeat}#content .advert_table td{border-left:1px solid #dfe1e4}#content .advert_table td:nth-child(4){display:table-cell}#topsearch{margin:27px 0 0 62px}.advert_page{margin:20px auto;border:1px solid #e6e6e6}.advert_page .container{padding:30px 49px}#custom .biuro-header .logo{margin:0 20px 30px 0}#custom .biuro-title{background:url(https://www.biuro.lt/job-ads/job-title.jpg) no-repeat;margin:15px 0 30px;width:556px;height:155px;padding:20px 60px 20px 20px}#custom .biuro-title h1{height:155px}}@media (min-width:980px){#content h2,#content h3,#content ul{text-align:justify}#sidebar #menu>li,#sidebar #menu>li>a{font-family:Bebas Neue,sans-serif;font-size:24px}#content .info_box,#content .info_box p,#content a.home_url,#content h1,.c-home-url{font-family:Bebas Neue}#content h1{padding:0 0 15px;font-size:24px}#content .t-reason td{display:table-cell;width:50%}#content .t-reason .t-reason-col-1{padding-right:20px;border-right:1px solid #dfdfdf}#content .t-reason .t-reason-col-2{padding-left:20px}#content .t-reason .t-reason-col-2 h2{padding:12px 0 25px}#content .t-membership td{padding-bottom:0}#content .t-membership .t-membership-col-1{width:250px;padding-right:0}#content .info_box,#content .info_box p{font-size:18px}#content .search_box li select{margin:0 33px 10px 0}#content .search_box li a.url{margin-top:-36px}#content .search_box li #search-input-block{margin:0 200px 0 100px}#content a.home_url,.c-home-url{display:inline-block;font-weight:400;margin:15px 50px;font-size:24px}#content ul li{padding:0 0 5px 45px;background-position:20px 9px}#topsearch{float:left;margin:47px 0 10px 114px;width:550px}#topsearch #top-search-form label{float:left;padding:2px 10px 0 0;font-size:23px;font-family:Bebas Neue,sans-serif}.about-biuro-img{width:25%}.advert_page{max-width:776px}.advert_page .container{padding:50px 69px}}@media only screen and (min-width:1281px){[href^=tel]{pointer-events:none;text-decoration:none;color:inherit}}@media (max-width:979px){#content .advert_table td:nth-child(3),#content .advert_table th:nth-child(3){display:none}}@media (max-width:767px){#content h1 .icon{display:block;margin-top:10px}#content .t-membership tr{display:block}#content .t-membership td{display:block;float:left;width:100%}#content .t-membership .t-membership-col-2{border-bottom:1px solid #dfdfdf;padding:0 0 20px}#content .t-contacts td{float:left;width:50%}#content .advert_table th{display:none}#content .advert_table th:first-child{float:left;width:100%}.hidden-max-small{display:none!important}#custom .biuro-title{visibility:visible!important}#custom .biuro-title h1 span{font-size:40px!important}}@media (max-width:599px){#content .search_box li select+label{clear:left}}@media (max-width:479px){#content .t-contacts td{width:100%}#content .advert_table td{float:left;width:100%}#content .advert_table td:first-child{padding-top:10px}#content .advert_table td:last-child{padding-bottom:10px}.hidden-max-x-small{display:none!important}#custom .biuro-job-valid-till{display:block}}
/*# sourceMappingURL=main.min.css.map */
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -39,42 +39,43 @@
<div id="fb-root"></div>
<?php /*
<div id="biuro-cookies-container" style="display: none; position: fixed; width: 100%; left: 0px; bottom: 0px; padding: 15px; background: rgb(228, 228, 228); color: rgb(0, 0, 0); overflow: hidden; z-index: 100;">
<div style="margin: 0; overflow: hidden; line-height: 1.2">
<button onclick="biuroCookiesClose()" type="button" style="width: 44px; height: 44px; float: right; margin-left: 15px; margin-right: 25px; border: 1px solid #000; font-size: 32px; background: #e3e3e3; cursor: pointer;">×</button>
<p style="margin-top: 0">Sklandžiam svetainės veikimui, Jūsų naršymo patirties gerinimui bei rinkodarai, naudojame slapukus. Plačiau apie naudojamus slapukus ir jų valdymą (įskaitant atsisakymą) skaitykite mūsų
<a href="http://biuro.eu/cookies-lt">Slapukų politikoje.</a>
Jeigu sutinkate, kad įrašytume slapukus į Jūsų įrenginį, paspauskite „Sutinku“ arba naršykite toliau.
</p>
<button onclick="biuroCookiesInitiate()" type="button" style="height: 44px; line-height: 44px; 44px; padding: 0 20px; border: 1px solid #000; font-size: 16px; font-family: inherit; background: #e3e3e3; cursor: pointer;">Sutinku</button>
</div>
</div>
<div style="width: 100%; display: inline-block; text-align: center; font-size: 14px;">
<p style="margin-top: 0">
<p>Jūsų Asmens duomenų Valdytojas yra UAB "Biuro", juridinio asmens kodas 300055900, adresas Gedimino pr. 26, Vilnius, tel. <a class="gtm-phone-click" href="tel:+37052139476">+37052139476</a>.</a></p>
<p>Plačiau apie asmens duomenis, jų tvarkymą bei Jūsų teises skaitykite mūsų <a href="http://biuro.eu/privacy-lt">Asmens duomenų tvarkymo politikoje.</a></p>
Sklandžiam svetainės veikimui, Jūsų naršymo patirties gerinimui bei rinkodarai, naudojame slapukus. Plačiau apie naudojamus slapukus ir jų valdymą (įskaitant atsisakymą) skaitykite mūsų <a href="http://biuro.eu/cookies-lt">Slapukų politikoje.</a> Jeigu sutinkate, kad įrašytume slapukus į Jūsų įrenginį, paspauskite „Sutinku“ arba naršykite toliau.
</p>
<button onclick="biuroCookiesInitiate()" type="button" style="height: 44px; line-height: 44px; padding: 0 20px; border: 1px solid #000; font-size: 16px; font-family: inherit; background: #e3e3e3; cursor: pointer;">Sutinku</button>
</div>
</div>
<?php /*
Data_Controller
dynamic_sidebar( 'footer' );
debug( the_widget('footer') ); */
// debug( the_widget('data-controller') );
// debug( the_widget('cookies-policy') );
// debug( the_widget('data_controller') );
?>
<div class="l-footer">
<?php
if ( is_active_sidebar( 'footer_main' ) ) :
dynamic_sidebar( 'footer_main' );
endif;
?>
<?php
/*
<ul class="c-nav-footer">
<li>Kalba:&nbsp;</li>
......@@ -100,68 +101,10 @@ dynamic_sidebar( 'footer' );
<a href="https://biuro.ee" target="_blank" rel="noopener" class="gtm-referral-click">Estija</a>
</li>
</ul>
*/
?>
</div>
<script>
var cb = function() {
'use strict';
var l = document.createElement('link'),
h = document.getElementsByTagName('head')[0];
// oldIE =document.all && !document.addEventListener;
l.rel = 'stylesheet';
l.href = '/wp-content/themes/biuro/css/main.min.css';
// l.href = (oldIE) ? 'mysite/css/main-fixed.css' : 'mysite/css/main-responsive.css';
h.parentNode.insertBefore(l, h);
},
raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
if (raf) {
raf(cb);
} else {
if (window.addEventListener) {
window.addEventListener('load', cb);
}
else {
window.attachEvent('onload', cb);
}
}
var container = document.getElementById('biuro-cookies-container'),
agreed = (useLocalStorage()) ? localStorage.getItem('biuro-agree') : false;
function useLocalStorage() {
var mod = 'a';
try {
localStorage.setItem(mod, mod);
localStorage.removeItem(mod);
return true;
} catch(e) {
return false;
}
}
function biuroCookiesInitiate() {
if (useLocalStorage()) {
localStorage.setItem('biuro-agree', 'true');
}
biuroCookiesClose()
}
function biuroCookiesClose() {
if (container) {
container.style.display = 'none';
}
}
if (!agreed && container) {
container.style.display = 'block';
}
</script>
<?php
/*
......@@ -176,13 +119,19 @@ dynamic_sidebar( 'footer' );
})(window,document,'script','dataLayer','GTM-THF42F');</script>
*/
if ( is_active_sidebar( 'append_area' ) ) :
dynamic_sidebar( 'append_area' );
endif;
?>
<script>
var coords = eval('') || null;
</script>
<!-- <script async src="/wp-content/themes/biuro/js/main.min.js"></script> -->
<script async src="/wp-content/themes/biuro/js/main.js"></script>
<script src="/wp-content/themes/biuro/_js/main.min.js" async></script>
</body>
</html>
......@@ -14,364 +14,6 @@ function cc_mime_types($mimes) {
add_filter('upload_mimes', 'cc_mime_types');
// function getImages($postID) {
// $res = array();
// $images = get_children( array (
// 'numberposts' => -1,
// 'order' => 'ASC',
// 'post_mime_type' => 'image',
// 'post_parent' => $postID,
// 'post_status' => null,
// 'post_type' => 'attachment'
// ));
// foreach ( $images as $ID => $image ) {
// $res[] = array(
// // 'holder' => (string) parse_url(wp_get_attachment_image_src( $ID, 'placeholder' )[0])['path'],
// // 'img' => (string) parse_url(wp_get_attachment_image_src( $ID, 'thumbnail' )[0])['path'],
// // 'img2x' => (string) parse_url(wp_get_attachment_image_src( $ID, 'thumbnail@2x' )[0])['path'],
// // 'medium' => (string) parse_url(wp_get_attachment_image_src( $ID, 'medium' )[0])['path'],
// // 'medium2x' => (string) parse_url(wp_get_attachment_image_src( $ID, 'medium@2x' )[0])['path'],
// // 'large' => (string) parse_url(wp_get_attachment_image_src( $ID, 'large' )[0])['path'],
// // 'large2x' => (string) parse_url(wp_get_attachment_image_src( $ID, 'large@2x' )[0])['path'],
// 'holder' => wp_get_attachment_image_src( $ID, 'placeholder' )[0],
// 'img' => wp_get_attachment_image_src( $ID, 'thumbnail' )[0],
// 'img2x' => wp_get_attachment_image_src( $ID, 'thumbnail@2x' )[0],
// 'medium' => wp_get_attachment_image_src( $ID, 'medium' )[0],
// 'medium2x' => wp_get_attachment_image_src( $ID, 'medium@2x' )[0],
// 'large' => wp_get_attachment_image_src( $ID, 'large' )[0],
// 'large2x' => wp_get_attachment_image_src( $ID, 'large@2x' )[0],
// 'text' => (string) get_post_meta($ID, '_wp_attachment_image_alt', true)
// );
// }
// return $res;
// }
// function getMenus( ) {
// $menus = wp_get_nav_menus();
// $res = array();
// foreach ( $menus as $menu ) :
// $res[ $menu->slug ] = getSubMenus($menu->term_id);
// endforeach;
// return $res;
// }
// function getMenus( ) {
// $locations = get_nav_menu_locations();
// $registered_menus = get_registered_nav_menus();
// $menus = array();
// if ( $locations && $registered_menus ) :
// foreach ( $registered_menus as $slug => $menu ) :
// if ( ! isset( $locations[ $slug ] ) ) {
// continue;
// }
// $menus[ $slug ]['ID'] = $locations[ $slug ];
// // $menus[ $slug ]['lang'] = $default_lang;
// $menus[ $slug ]['pages'] = getSubMenus($locations[ $slug ]);
// // $rest_menus[ $slug ]['pages'] = array();
// // $rest_menus[ $slug ]['label'] = $label;
// // $rest_menus[ $slug ]['meta']['links']['collection'] = $rest_url;
// // $rest_menus[ $slug ]['meta']['links']['self'] = $rest_url . $slug;
// endforeach;
// endif;
// return $menus;
// }
// function getSubMenus ( $ID ) {
// $menu_items = wp_get_nav_menu_items( $ID );
// $rev_items = array_reverse( $menu_items );
// $rev_menu = array();
// $cache = array();
// foreach ( $rev_items as $item ) :
// $formatted = array(
// 'order' => (int) $item->menu_order,
// 'title' => $item->title,
// 'path' => (string) parse_url($item->url)['path'],
// 'objectID' => abs( $item->object_id ),
// 'pages' => array()
// );
// if ( array_key_exists( $item->ID, $cache ) ) {
// $formatted['pages'] = array_reverse( $cache[ $item->ID ] );
// }
// $formatted = apply_filters( 'rest_menus_format_menu_item', $formatted );
// if ( $item->menu_item_parent != 0 ) {
// if ( array_key_exists( $item->menu_item_parent, $cache ) ) {
// array_push( $cache[ $item->menu_item_parent ], $formatted );
// } else {
// $cache[ $item->menu_item_parent ] = array( $formatted, );
// }
// } else {
// array_push( $rev_menu, $formatted );
// }
// endforeach;
// return array_reverse( $rev_menu );
// }
// function getPages ( $data ) {
// $res = array();
// $props = array(
// 'posts_per_page' => -1,
// 'offset' => 0,
// 'category' => '',
// 'category_name' => '',
// 'include' => '',
// 'exclude' => '',
// 'meta_key' => '',
// 'meta_value' => '',
// 'post_type' => 'page',
// 'post_mime_type' => '',
// 'post_parent' => '',
// 'author' => '',
// 'author_name' => '',
// 'post_status' => 'publish',
// 'suppress_filters' => true
// );
// $pages = get_posts($props);
// foreach ( $pages as $page ) :
// $arr = (array) $page;
// $pageID = $arr['ID'];
// $title = get_post_meta( $arr['ID'], '_yoast_wpseo_title', true );
// if (!$title):
// $title = $arr['post_title'];
// endif;
// $cat = get_the_category( $pageID );
// $lang = pll_get_post_language( $pageID );
// $path = (string) parse_url(get_page_link( $pageID ))['path'];
// $res[ $path ] = (array) [];
// $res[ $path ]['ID'] = $pageID;
// $res[ $path ]['title'] = $title;
// $res[ $path ]['description'] = get_post_meta( $pageID, '_yoast_wpseo_metadesc', true );
// $res[ $path ]['content'] = apply_filters('the_content', $arr['post_content']);
// $res[ $path ]['categoryID'] = $cat[0] -> cat_ID;
// $res[ $path ]['paths'] = getLanguages( $pageID );
// $res[ $path ]['images'] = getImages( $pageID );
// $res[ $path ]['homeURL'] = (string) parse_url( pll_home_url( $lang ) )['path'];
// endforeach;
// // 'yoast_wpseo_focuskw' => get_post_meta($post->ID, '_yoast_wpseo_focuskw', true),
// // 'yoast_wpseo_title' => get_post_meta($post->ID, '_yoast_wpseo_title', true),
// // 'yoast_wpseo_metadesc' => get_post_meta($post->ID, '_yoast_wpseo_metadesc', true),
// // 'yoast_wpseo_linkdex' => get_post_meta($post->ID, '_yoast_wpseo_linkdex', true),
// // 'yoast_wpseo_metakeywords' => get_post_meta($post->ID, '_yoast_wpseo_metakeywords', true),
// // 'yoast_wpseo_meta-robots-noindex' => get_post_meta($post->ID, '_yoast_wpseo_meta-robots-noindex', true),
// // 'yoast_wpseo_meta-robots-nofollow' => get_post_meta($post->ID, '_yoast_wpseo_meta-robots-nofollow', true),
// // 'yoast_wpseo_meta-robots-adv' => get_post_meta($post->ID, '_yoast_wpseo_meta-robots-adv', true),
// // 'yoast_wpseo_canonical' => get_post_meta($post->ID, '_yoast_wpseo_canonical', true),
// // 'yoast_wpseo_redirect' => get_post_meta($post->ID, '_yoast_wpseo_redirect', true),
// // 'yoast_wpseo_opengraph-title' => get_post_meta($post->ID, '_yoast_wpseo_opengraph-title', true),
// // 'yoast_wpseo_opengraph-description' => get_post_meta($post->ID, '_yoast_wpseo_opengraph-description', true),
// // 'yoast_wpseo_opengraph-image' => get_post_meta($post->ID, '_yoast_wpseo_opengraph-image', true),
// // 'yoast_wpseo_twitter-title' => get_post_meta($post->ID, '_yoast_wpseo_twitter-title', true),
// // 'yoast_wpseo_twitter-description' => get_post_meta($post->ID, '_yoast_wpseo_twitter-description', true),
// // 'yoast_wpseo_twitter-image' => get_post_meta($post->ID, '_yoast_wpseo_twitter-image', true)
// // "ID": 14,
// // "post_author": "3",
// // "post_date": "2014-07-21 19:54:07",
// // "post_date_gmt": "2014-07-21 17:54:07",
// // "post_content": "<h1>Location</h1>\r\nADDRESS: Gediminas ave. 26 Vilnius, lithuania\r\nPHONE: <strong>+370 5 2031228</strong>\r\nEMAIL: <a href=\"mailto:info@town.lt\">info@town.lt</a>\r\n\r\nMonday - Thursday: 11:30-22:00\r\nFriday: 11:30 - 23:30\r\nSaturday: 12:30 - 23:30\r\nSundays: closed\r\n\r\n<a href=\"http://www.facebook.com/thetowncontemporarygrillbar\" target=\"_blank\" rel=\"noopener\">FOLLOW US ON FACEBOOK</a>\r\n\r\n&nbsp;",
// // "post_title": "Contacts",
// // "post_excerpt": "",
// // "post_status": "publish",
// // "comment_status": "open",
// // "ping_status": "closed",
// // "post_password": "",
// // "post_name": "contacts",
// // "to_ping": "",
// // "pinged": "",
// // "post_modified": "2018-01-28 18:02:26",
// // "post_modified_gmt": "2018-01-28 16:02:26",
// // "post_content_filtered": "",
// // "post_parent": 0,
// // "guid": "http://town.loc.al/?page_id=14",
// // "menu_order": 0,
// // "post_type": "page",
// // "post_mime_type": "",
// // "comment_count": "0",
// // "filter": "raw"
// // debug($res);
// // print_r($res);
// return $res;
// }
// function getLanguages ( $ID ) {
// $res = array();
// $languages = pll_the_languages(array(
// 'raw' => 1,
// 'post_id' => $ID
// ));
// foreach ( $languages as $language ) :
// $arr = (array) $language;
// $res[] = array(
// 'slug' => $arr['slug'],
// 'name' => $arr['name'],
// 'order' => (int) $arr['order'],
// 'path' => (string) parse_url($arr['url'])['path']
// );
// endforeach;
// return $res;
// }
// function getPosts ( ) {
// $res = array();
// $props = array(
// 'posts_per_page' => -1,
// 'offset' => 0,
// 'category' => '',
// 'category_name' => '',
// 'orderby' => 'date',
// 'order' => 'DESC',
// 'include' => '',
// 'exclude' => '',
// 'meta_key' => '',
// 'meta_value' => '',
// 'post_type' => 'post',
// 'post_mime_type' => '',
// 'post_parent' => '',
// 'author' => '',
// 'author_name' => '',
// 'post_status' => 'publish',
// 'suppress_filters' => true
// );
// $posts = get_posts($props);
// foreach ( $posts as $post ) :
// $arr = (array) $post;
// $postID = (int) $arr['ID'];
// $cat = get_the_category( $postID );
// $res[] = array(
// 'categoryID' => $cat[0] -> cat_ID,
// 'content' => apply_filters('the_content', $arr['post_content']),
// 'order' => (int) $arr['menu_order'],
// 'type' => (string) get_post_format( $postID )
// );
// endforeach;
// return $res;
// }
// function getForms ( ) {
// $res = array();
// $props = array(
// 'posts_per_page' => -1,
// 'offset' => 0,
// 'category' => '',
// 'category_name' => '',
// 'include' => '',
// 'exclude' => '',
// 'meta_key' => '',
// 'meta_value' => '',
// 'post_type' => 'wpcf7_contact_form',
// 'post_mime_type' => '',
// 'post_parent' => '',
// 'author' => '',
// 'author_name' => '',
// 'post_status' => 'publish',
// 'suppress_filters' => true
// );
// $forms = get_posts($props);
// foreach ( $forms as $form ) :
// $arr = (array) $form;
// $formID = $arr['ID'];
// $res[ $formID ]['ID'] = $formID;
// $res[ $formID ]['content'] = apply_filters('the_content', $arr['post_content']);
// endforeach;
// return $res;
// }
// function getArray ( ) {
// $res = array();
// $res[0] = '00000';
// $res[1] = '00001';
// $res[2] = '00002';
// return $res;
// }
// add_action( 'rest_api_init', function () {
// register_rest_route( 'our-wp-api/v1', '/pages', array(
// 'methods' => WP_REST_Server::READABLE,
// 'callback' => 'getPages',
// ));
// register_rest_route( 'our-wp-api/v1', '/menus', array(
// array(
// 'methods' => WP_REST_Server::READABLE,
// 'callback' => 'getMenus'
// )
// ));
// register_rest_route( 'our-wp-api/v1', '/posts', array(
// array(
// 'methods' => WP_REST_Server::READABLE,
// 'callback' => 'getPosts'
// )
// ));
// register_rest_route( 'our-wp-api/v1', '/forms', array(
// array(
// 'methods' => WP_REST_Server::READABLE,
// 'callback' => 'getForms'
// )
// ));
// });
/*-----------------------------------------------------------------------------------*/
/* Enable more buttons in admin
/*-----------------------------------------------------------------------------------*/
......@@ -445,15 +87,6 @@ add_filter("mce_buttons_2", "enable_more_buttons");
// add_action( 'after_setup_theme', 'biuro_theme_setup' );
// function wpse_setup_theme() {
// add_theme_support( 'post-thumbnails' );
// add_image_size( 'small-thumb', 60, 60, true );
// }
// add_action( 'after_setup_theme', 'wpse_setup_theme' );
function filter_site_upload_size_limit( $size ) {
// Set the upload size limit to 60 MB for users lacking the 'manage_options' capability.
// if ( ! current_user_can( 'manage_options' ) ) {
......@@ -464,40 +97,37 @@ function filter_site_upload_size_limit( $size ) {
}
add_filter( 'upload_size_limit', 'filter_site_upload_size_limit', 20 );
// function biuro_scripts() {
// get the theme directory style.css and link to it in the header
// wp_enqueue_style( 'town-style', get_template_directory_uri() . '/css/main.css', '10000', 'all' );
// add fitvid
// wp_enqueue_script( 'naked-fitvid', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ), NAKED_VERSION, true );
// add theme scripts
// wp_enqueue_script( 'naked', get_template_directory_uri() . '/js/theme.min.js', array(), NAKED_VERSION, true );
// add flexslider scripts
// wp_enqueue_script( 'flexslider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array('jquery'), NAKED_VERSION, true );
// }
// add_action( 'wp_enqueue_scripts', 'biuro_scripts' ); // Register this fxn and allow Wordpress to call it automatcally in the header
function my_deregister_scripts(){
wp_dequeue_script( 'wp-embed' );
}
add_action( 'wp_footer', 'my_deregister_scripts' );
// function add_posts_order() {
// add_post_type_support('post', 'page-attributes');
// }
// add_action( 'admin_init', 'add_posts_order' );
/**
* Register our sidebars and widgetized areas.
*/
function biuro_widger_areas() {
register_sidebar( array(
'name' => 'Footer area',
'id' => 'footer_main',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Content append area',
'id' => 'append_area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
}
add_action( 'widgets_init', 'biuro_widger_areas' );
......@@ -554,37 +184,6 @@ function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
return $urls;
}
// function init_biuro_theme() {
// // Add categories for pages
// register_taxonomy_for_object_type( 'category', 'page' );
// // Remove Custom fields from posts
// // remove_meta_box('postcustom','post','normal');
// // remove_meta_box( $id, $page, $context );
// // Remove tags support from posts
// unregister_taxonomy_for_object_type('post_tag', 'post');
// // Register menus
// register_nav_menus(
// array(
// 'main-menu' => 'Main menu',
// 'region-menu' => 'Region menu',
// // 'footer-menu' => 'Footer menu'
// )
// );
// // unregister_nav_menu('town_nav');
// // unregister_nav_menu('vilnius_nav');
// // unregister_nav_menu('kaunas_nav');
// // unregister_nav_menu('steak_nav');
// // unregister_nav_menu('footer_nav');
// // unregister_nav_menu('steakhouse-menu');
// // unregister_nav_menu('vilnius-menu');
// }
// add_action('init', 'init_biuro_theme');
function init_biuro_theme() {
// Add categories for pages
......@@ -597,6 +196,14 @@ function init_biuro_theme() {
// Remove tags support from posts
// unregister_taxonomy_for_object_type('post_tag', 'post');
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
// Register menus
register_nav_menus(
array(
......@@ -606,14 +213,6 @@ function init_biuro_theme() {
);
pll_register_string('biuro-language', 'Language', 'Biuro');
// unregister_nav_menu('town_nav');
// unregister_nav_menu('vilnius_nav');
// unregister_nav_menu('kaunas_nav');
// unregister_nav_menu('steak_nav');
// unregister_nav_menu('footer_nav');
// unregister_nav_menu('steakhouse-menu');
// unregister_nav_menu('vilnius-menu');
}
add_action('init', 'init_biuro_theme');
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta http-equiv="content-type" content="text/html;"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><title>Our Demo</title><meta name="description" content="Our demo description goes here"><link rel="apple-touch-icon" sizes="180x180" href="/wp-content/themes/biuro/i/icons/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/wp-content/themes/biuro/i/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/wp-content/themes/biuro/i/icons/favicon-16x16.png"><link rel="manifest" href="/wp-content/themes/biuro/i/icons/site.webmanifest"><link rel="mask-icon" href="/wp-content/themes/biuro/i/icons/safari-pinned-tab.svg" color="#383838"><link rel="shortcut icon" href="/wp-content/themes/biuro/i/icons/favicon.ico"><meta name="msapplication-TileColor" content="#fcfcfc"><meta name="msapplication-config" content="/wp-content/themes/biuro/i/icons/browserconfig.xml"><meta name="theme-color" content="#ffffff"><link rel="stylesheet" href="../wp-content/themes/biuro/css/core.min.css" inline><link rel="preload" href="/css/main.min.css" as="style" onload="this.rel='stylesheet'"><noscript><link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css"></noscript></head><body><header role="banner" class="l-header"><a href="/" class="c-logo" title=""><svg xmlns="http://www.w3.org/2000/svg" width="133px" height="78px" viewBox="0 0 108 63" aria-labelledby="svg-title svg-desc"><title id="svg-title">Biuro</title><desc id="svg-desc">Biuro logotipas</desc><path d="M12.91 39.688L11.1 39.686v11.7h1.809c0.375 0 0.693-0.131 0.959-0.396 c0.264-0.263 0.398-0.584 0.398-0.962v-8.984c0-0.375-0.134-0.695-0.398-0.963C13.603 39.8 13.3 39.7 12.9 39.688z M63.684 23.92h-1.809v11.358h1.809c0.376 0 0.696-0.132 0.96-0.396c0.264-0.261 0.396-0.583 0.396-0.96v-8.645 c0-0.378-0.133-0.698-0.396-0.961C64.38 24.1 64.1 23.9 63.7 23.92z M12.91 23.92H11.1v9.608h1.809 c0.375 0 0.693-0.133 0.959-0.398c0.264-0.263 0.398-0.583 0.398-0.958v-6.896c0-0.378-0.134-0.698-0.398-0.961 C13.603 24.1 13.3 23.9 12.9 23.92z M107.216 7.496c-0.907-1.476-3.211-2.783-5.211-1.261l-12.774 9.1 c-0.426 0.014-0.844-0.206-1.058-0.607c-0.122-0.231-0.15-0.481-0.113-0.719l4.428-7.936c0.695-1.001 0.869-1.489 0.869-2.434 c0-1.856-1.621-3.525-3.477-3.525c-0.26 0-0.673-0.127-0.916-0.07H4.752C2.127 0 0 2.1 0 4.766V57.5 c0 2.6 2.1 4.8 4.8 4.752h98.176c2.627 0 4.753-2.128 4.753-4.752V8.919C107.641 8.4 107.5 8 107.2 7.496z M38.126 9.543c1.664 0 3 1.4 3 3.019c0 1.665-1.351 3.015-3.015 3.015c-1.666 0-3.017-1.35-3.017-3.015 C35.109 10.9 36.5 9.5 38.1 9.543z M27.623 9.543c1.666 0 3 1.4 3 3.019c0 1.665-1.352 3.015-3.018 3 c-1.665 0-3.017-1.35-3.017-3.015C24.606 10.9 26 9.5 27.6 9.543z M20.876 30.647c0 1.732-0.528 3.182-1.581 4.3 c-0.567 0.602-1.242 1.093-2.035 1.471c0.828 0.3 1.5 0.7 2 1.242c0.528 0.5 0.9 1.1 1.2 1.9 c0.263 0.7 0.4 1.5 0.4 2.371v8.365c0 0.98-0.188 1.901-0.564 2.768c-0.377 0.867-0.885 1.622-1.526 2.3 c-0.642 0.642-1.392 1.151-2.259 1.528c-0.867 0.374-1.792 0.564-2.769 0.564H5.28c-0.527 0-0.79-0.265-0.79-0.792V18.664 c0-0.525 0.262-0.79 0.79-0.79h8.478c0.976 0 1.9 0.2 2.8 0.565c0.867 0.4 1.6 0.9 2.3 1.5 c0.642 0.6 1.1 1.4 1.5 2.261c0.377 0.9 0.6 1.8 0.6 2.77V30.647z M31.067 56.193c0 0.529-0.264 0.792-0.789 0.8 h-5.031c-0.529 0-0.791-0.263-0.791-0.792V18.654c0-0.529 0.262-0.791 0.791-0.791h5.031c0.525 0 0.8 0.3 0.8 0.791V56.193z M51.261 50.706c0 0.981-0.189 1.904-0.566 2.77c-0.377 0.866-0.884 1.62-1.524 2.261c-0.645 0.64-1.396 1.148-2.261 1.5 c-0.868 0.374-1.792 0.563-2.771 0.563h-2.145c-0.982 0-1.907-0.189-2.771-0.563c-0.867-0.378-1.619-0.887-2.258-1.526 c-0.643-0.641-1.151-1.395-1.526-2.261c-0.377-0.865-0.566-1.788-0.566-2.77v-21.23c-0.005-0.054-0.022-0.1-0.022-0.157V18.654 c0-0.529 0.264-0.791 0.791-0.791h5.03c0.527 0 0.8 0.3 0.8 0.791v10.082c0.008 0 0 0.1 0 0.146v21.542 c0 0.4 0.1 0.7 0.4 0.962c0.262 0.3 0.6 0.4 1 0.395h0.453c0.375 0 0.697-0.13 0.961-0.395 c0.261-0.265 0.393-0.585 0.393-0.962V18.836c0-0.526 0.264-0.791 0.793-0.791h5.029c0.527 0 0.8 0.3 0.8 0.791V50.706z M72.216 57.433h-5.142c-0.225 0-0.442-0.077-0.65-0.227c-0.208-0.15-0.35-0.337-0.425-0.565l-4.125-13.845v14.637l-0.055-0.564 c-0.078 0.374-0.321 0.564-0.735 0.564h-5.031c-0.527 0-0.791-0.262-0.791-0.792V18.664c0-0.525 0.264-0.79 0.791-0.79h8.478 c0.979 0 1.9 0.2 2.8 0.565c0.867 0.4 1.6 0.9 2.3 1.524c0.641 0.6 1.1 1.4 1.5 2.3 c0.377 0.9 0.6 1.8 0.6 2.77v9.212c0 1.393-0.359 2.647-1.074 3.757c-0.718 1.111-1.657 1.97-2.826 2.572l5.029 16.1 C72.896 57.2 72.7 57.4 72.2 57.433z M91.941 50.706c0 0.981-0.188 1.904-0.565 2.77c-0.379 0.866-0.883 1.62-1.528 2.3 c-0.64 0.64-1.393 1.148-2.259 1.526c-0.864 0.374-1.79 0.563-2.769 0.563h-2.147c-0.979 0-1.904-0.189-2.769-0.563 c-0.869-0.378-1.621-0.887-2.261-1.526c-0.641-0.641-1.15-1.395-1.523-2.261c-0.379-0.865-0.566-1.788-0.566-2.77V24.598 c0-0.979 0.188-1.901 0.566-2.767c0.373-0.867 0.883-1.62 1.523-2.263c0.64-0.639 1.392-1.147 2.261-1.524 c0.864-0.377 1.789-0.565 2.769-0.565h2.147c0.979 0 1.9 0.2 2.8 0.565c0.866 0.4 1.6 0.9 2.3 1.5 c0.645 0.6 1.1 1.4 1.5 2.263c0.377 0.9 0.6 1.8 0.6 2.767V50.706z M83.972 23.525h-0.453 c-0.377 0-0.696 0.134-0.959 0.396c-0.265 0.264-0.396 0.585-0.396 0.961v25.543c0 0.4 0.1 0.7 0.4 1 c0.263 0.3 0.6 0.4 1 0.395h0.453c0.376 0 0.695-0.13 0.96-0.395c0.266-0.265 0.396-0.585 0.396-0.962V24.881 c0-0.376-0.131-0.697-0.396-0.961C84.668 23.7 84.3 23.5 84 23.525z" style="fill: #006957"></path></svg></a></header><nav role="navigation" class="l-nav"><ul class="o-nav c-nav"><li class="o-nav--item c-nav--item"><a href="/" class="o-nav--link c-nav--link is-nav-link-active">Lorem ispum</a></li><li class="o-nav--item c-nav--item"><a href="/" class="o-nav--link c-nav--link">Noster apster</a></li></ul></nav><main role="main" class="l-main"><h1>Main:</h1><p>telephone: <a href="tel:+37068553143">370 685 ****3</a></p></main><aside role="complementary" class="l-aside"><h1>Aside:</h1></aside><footer role="contentinfo" class="l-footer"><h1>Footer:</h1></footer><script src="/wp-content/themes/biuro/js/main.js" async></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta http-equiv="content-type" content="text/html;"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><title>Our Demo</title><meta name="description" content="Our demo description goes here"><link rel="apple-touch-icon" sizes="180x180" href="/wp-content/themes/biuro/i/icons/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/wp-content/themes/biuro/i/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/wp-content/themes/biuro/i/icons/favicon-16x16.png"><link rel="manifest" href="/wp-content/themes/biuro/i/icons/site.webmanifest"><link rel="mask-icon" href="/wp-content/themes/biuro/i/icons/safari-pinned-tab.svg" color="#383838"><link rel="shortcut icon" href="/wp-content/themes/biuro/i/icons/favicon.ico"><meta name="msapplication-TileColor" content="#fcfcfc"><meta name="msapplication-config" content="/wp-content/themes/biuro/i/icons/browserconfig.xml"><meta name="theme-color" content="#ffffff"><style>.c-cookies-warning{display:none}.c-data-controller{padding:0 20px;text-align:center;font-size:88%}#main{margin:0 auto;padding:0 20px}.l-footer{clear:both}@media (min-width:768px){#sidebar,#topsearch{float:left}#sidebar{width:195px}#main{max-width:956px}}@media (min-width:980px){#main{padding:0}#sidebar{width:215px}#content{width:714px;float:right}}@media (min-width:1024px){#main{max-width:976px}#sidebar{width:235px}}</style><link rel="preload" href="/css/main.min.css" as="style" onload="this.rel='stylesheet'"><noscript><link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css"></noscript></head><body><header role="banner" class="l-header"><a href="/" class="c-logo" title=""><svg xmlns="http://www.w3.org/2000/svg" width="133px" height="78px" viewBox="0 0 108 63" aria-labelledby="svg-title svg-desc"><title id="svg-title">Biuro</title><desc id="svg-desc">Biuro logotipas</desc><path d="M12.91 39.688L11.1 39.686v11.7h1.809c0.375 0 0.693-0.131 0.959-0.396 c0.264-0.263 0.398-0.584 0.398-0.962v-8.984c0-0.375-0.134-0.695-0.398-0.963C13.603 39.8 13.3 39.7 12.9 39.688z M63.684 23.92h-1.809v11.358h1.809c0.376 0 0.696-0.132 0.96-0.396c0.264-0.261 0.396-0.583 0.396-0.96v-8.645 c0-0.378-0.133-0.698-0.396-0.961C64.38 24.1 64.1 23.9 63.7 23.92z M12.91 23.92H11.1v9.608h1.809 c0.375 0 0.693-0.133 0.959-0.398c0.264-0.263 0.398-0.583 0.398-0.958v-6.896c0-0.378-0.134-0.698-0.398-0.961 C13.603 24.1 13.3 23.9 12.9 23.92z M107.216 7.496c-0.907-1.476-3.211-2.783-5.211-1.261l-12.774 9.1 c-0.426 0.014-0.844-0.206-1.058-0.607c-0.122-0.231-0.15-0.481-0.113-0.719l4.428-7.936c0.695-1.001 0.869-1.489 0.869-2.434 c0-1.856-1.621-3.525-3.477-3.525c-0.26 0-0.673-0.127-0.916-0.07H4.752C2.127 0 0 2.1 0 4.766V57.5 c0 2.6 2.1 4.8 4.8 4.752h98.176c2.627 0 4.753-2.128 4.753-4.752V8.919C107.641 8.4 107.5 8 107.2 7.496z M38.126 9.543c1.664 0 3 1.4 3 3.019c0 1.665-1.351 3.015-3.015 3.015c-1.666 0-3.017-1.35-3.017-3.015 C35.109 10.9 36.5 9.5 38.1 9.543z M27.623 9.543c1.666 0 3 1.4 3 3.019c0 1.665-1.352 3.015-3.018 3 c-1.665 0-3.017-1.35-3.017-3.015C24.606 10.9 26 9.5 27.6 9.543z M20.876 30.647c0 1.732-0.528 3.182-1.581 4.3 c-0.567 0.602-1.242 1.093-2.035 1.471c0.828 0.3 1.5 0.7 2 1.242c0.528 0.5 0.9 1.1 1.2 1.9 c0.263 0.7 0.4 1.5 0.4 2.371v8.365c0 0.98-0.188 1.901-0.564 2.768c-0.377 0.867-0.885 1.622-1.526 2.3 c-0.642 0.642-1.392 1.151-2.259 1.528c-0.867 0.374-1.792 0.564-2.769 0.564H5.28c-0.527 0-0.79-0.265-0.79-0.792V18.664 c0-0.525 0.262-0.79 0.79-0.79h8.478c0.976 0 1.9 0.2 2.8 0.565c0.867 0.4 1.6 0.9 2.3 1.5 c0.642 0.6 1.1 1.4 1.5 2.261c0.377 0.9 0.6 1.8 0.6 2.77V30.647z M31.067 56.193c0 0.529-0.264 0.792-0.789 0.8 h-5.031c-0.529 0-0.791-0.263-0.791-0.792V18.654c0-0.529 0.262-0.791 0.791-0.791h5.031c0.525 0 0.8 0.3 0.8 0.791V56.193z M51.261 50.706c0 0.981-0.189 1.904-0.566 2.77c-0.377 0.866-0.884 1.62-1.524 2.261c-0.645 0.64-1.396 1.148-2.261 1.5 c-0.868 0.374-1.792 0.563-2.771 0.563h-2.145c-0.982 0-1.907-0.189-2.771-0.563c-0.867-0.378-1.619-0.887-2.258-1.526 c-0.643-0.641-1.151-1.395-1.526-2.261c-0.377-0.865-0.566-1.788-0.566-2.77v-21.23c-0.005-0.054-0.022-0.1-0.022-0.157V18.654 c0-0.529 0.264-0.791 0.791-0.791h5.03c0.527 0 0.8 0.3 0.8 0.791v10.082c0.008 0 0 0.1 0 0.146v21.542 c0 0.4 0.1 0.7 0.4 0.962c0.262 0.3 0.6 0.4 1 0.395h0.453c0.375 0 0.697-0.13 0.961-0.395 c0.261-0.265 0.393-0.585 0.393-0.962V18.836c0-0.526 0.264-0.791 0.793-0.791h5.029c0.527 0 0.8 0.3 0.8 0.791V50.706z M72.216 57.433h-5.142c-0.225 0-0.442-0.077-0.65-0.227c-0.208-0.15-0.35-0.337-0.425-0.565l-4.125-13.845v14.637l-0.055-0.564 c-0.078 0.374-0.321 0.564-0.735 0.564h-5.031c-0.527 0-0.791-0.262-0.791-0.792V18.664c0-0.525 0.264-0.79 0.791-0.79h8.478 c0.979 0 1.9 0.2 2.8 0.565c0.867 0.4 1.6 0.9 2.3 1.524c0.641 0.6 1.1 1.4 1.5 2.3 c0.377 0.9 0.6 1.8 0.6 2.77v9.212c0 1.393-0.359 2.647-1.074 3.757c-0.718 1.111-1.657 1.97-2.826 2.572l5.029 16.1 C72.896 57.2 72.7 57.4 72.2 57.433z M91.941 50.706c0 0.981-0.188 1.904-0.565 2.77c-0.379 0.866-0.883 1.62-1.528 2.3 c-0.64 0.64-1.393 1.148-2.259 1.526c-0.864 0.374-1.79 0.563-2.769 0.563h-2.147c-0.979 0-1.904-0.189-2.769-0.563 c-0.869-0.378-1.621-0.887-2.261-1.526c-0.641-0.641-1.15-1.395-1.523-2.261c-0.379-0.865-0.566-1.788-0.566-2.77V24.598 c0-0.979 0.188-1.901 0.566-2.767c0.373-0.867 0.883-1.62 1.523-2.263c0.64-0.639 1.392-1.147 2.261-1.524 c0.864-0.377 1.789-0.565 2.769-0.565h2.147c0.979 0 1.9 0.2 2.8 0.565c0.866 0.4 1.6 0.9 2.3 1.5 c0.645 0.6 1.1 1.4 1.5 2.263c0.377 0.9 0.6 1.8 0.6 2.767V50.706z M83.972 23.525h-0.453 c-0.377 0-0.696 0.134-0.959 0.396c-0.265 0.264-0.396 0.585-0.396 0.961v25.543c0 0.4 0.1 0.7 0.4 1 c0.263 0.3 0.6 0.4 1 0.395h0.453c0.376 0 0.695-0.13 0.96-0.395c0.266-0.265 0.396-0.585 0.396-0.962V24.881 c0-0.376-0.131-0.697-0.396-0.961C84.668 23.7 84.3 23.5 84 23.525z" style="fill: #006957"></path></svg></a></header><nav role="navigation" class="l-nav"><ul class="o-nav c-nav"><li class="o-nav--item c-nav--item"><a href="/" class="o-nav--link c-nav--link is-nav-link-active">Lorem ispum</a></li><li class="o-nav--item c-nav--item"><a href="/" class="o-nav--link c-nav--link">Noster apster</a></li></ul></nav><main role="main" class="l-main"><h1>Main:</h1><p>telephone: <a href="tel:+37068553143">370 685 ****3</a></p></main><aside role="complementary" class="l-aside"><h1>Aside:</h1></aside><footer role="contentinfo" class="l-footer"><h1>Footer:</h1></footer><script src="/wp-content/themes/biuro/js/main.js" async></script></body></html>
\ No newline at end of file
......@@ -64,7 +64,7 @@
/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "62e18ee57d06ef238073";
/******/ var hotCurrentHash = "f72754f1f921a830eac1";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
......@@ -801,7 +801,7 @@
/*! no static exports found */
/***/ (function(module, exports) {
eval("console.log('here goes main I'); // console.log('here goes main II');\n// console.log('here goes main III');\n\n//# sourceURL=webpack:///./js/main.js?");
eval("var cb = function cb() {\n 'use strict';\n\n var l = document.createElement('link'),\n h = document.getElementsByTagName('head')[0]; // oldIE =document.all && !document.addEventListener;\n\n l.rel = 'stylesheet';\n l.href = '/wp-content/themes/biuro/css/main.min.css'; // l.href = (oldIE) ? 'mysite/css/main-fixed.css' : 'mysite/css/main-responsive.css';\n\n h.parentNode.insertBefore(l, h);\n},\n raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;\n\nif (raf) {\n raf(cb);\n} else {\n if (window.addEventListener) {\n window.addEventListener('load', cb);\n } else {\n window.attachEvent('onload', cb);\n }\n}\n\n(function (global) {\n var container = document.getElementById('cookie-warning');\n var btnAgree = document.getElementById('cookie-agree');\n var btnClose = document.getElementById('cookie-close');\n var agreed = useLS() ? localStorage.getItem('biuro-agree') : false;\n\n function useLS() {\n var mod = 'a';\n\n try {\n localStorage.setItem(mod, mod);\n localStorage.removeItem(mod);\n return true;\n } catch (e) {\n return false;\n }\n }\n\n if (!container || !btnAgree || !btnClose || agreed) {\n return;\n }\n\n container.style.display = 'block';\n btnAgree.addEventListener('click', function () {\n if (useLS()) {\n localStorage.setItem('biuro-agree', 'true');\n }\n\n container.style.display = 'none';\n });\n btnClose.addEventListener('click', function () {\n container.style.display = 'none';\n });\n})(window);\n\nconsole.log('here goes main I'); // console.log('here goes main II');\n// console.log('here goes main III');\n\n//# sourceURL=webpack:///./js/main.js?");
/***/ }),
......
<?php
/**
* Created by Brad Tollett
* Date: 1/6/2017
* Time: 12:01 PM
*/
if(!class_exists('WPCF7_ContactForm')) {
require_once( WPCF7_PLUGIN_URL . '/includes/contact-form.php' );
}
/**
* Class WP_REST_Contact_Form_7_Controller
* TODO: The keys for the properties in prepare_item_for_response are not going to match the schema that I declared, this needs to be fixed.
* TODO: The schema needs to be reworked completely in this. Try and mimick the Post_Controller schema in the default Rest API Endpoints.
*/
class WP_REST_Contact_Form_7_Controller extends WP_REST_Controller {
/**
* @var string
*/
protected $rest_base = "forms";
/**
* @var string
*/
protected $namespace = "wpcf7/v1";
/**
* @var string
*/
protected $post_type = WPCF7_ContactForm::post_type;
/**
*
*/
public function register_routes() {
register_rest_route( $this->namespace, '/' . $this->rest_base, array(
array(
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_items' ),
'args' => array(),
'permission_callback' => array( $this, 'get_items_permissions_check' ),
),
array(
'methods' => WP_REST_Server::CREATABLE,
'callback' => array( $this, 'create_item' ),
'permission_callback' => array( $this, 'create_item_permissions_check' ),
'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::CREATABLE ),
),
'schema' => array( $this, 'get_public_item_schema' )
) );
register_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<id>[\d]+)', array(
array(
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_item' ),
'args' => array(),
'permission_callback' => array( $this, 'get_item_permissions_check' ),
),
array(
'methods' => WP_REST_Server::EDITABLE,
'callback' => array( $this, 'update_item' ),
'args' => array(),
'permission_callback' => array( $this, 'update_item_permissions_check' ),
),
'schema' => array( $this, 'get_public_item_schema' )
) );
}
/**
* @param WP_REST_Request $request
* @return bool|WP_Error
*/
public function get_items_permissions_check($request ) {
return $this->get_item_permissions_check($request);
}
/**
* @param WP_REST_Request $request
* @return mixed|WP_REST_Response
*/
public function get_items($request) {
$args = array();
$query = WPCF7_ContactForm::find($args);
$forms = array();
foreach($query as $form) {
$data = $this->prepare_item_for_response($form, $request);
$forms[] = $this->prepare_response_for_collection($data);
}
$response = rest_ensure_response($forms);
$total_forms = WPCF7_ContactForm::count();
$response->header('X-WP-Total', (int) $total_forms);
return $response;
}
/**
* @param WP_REST_Request $request
* @return bool|WP_Error
*/
public function get_item_permissions_check($request ) {
$post_type = get_post_type_object( $this->post_type );
if (! current_user_can( $post_type->cap->edit_others_posts ) ) {
return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to view posts of this post type' ), array( 'status' => rest_authorization_required_code() ) );
}
return true;
}
/**
* @param WP_REST_Request $request
* @return mixed|WP_Error|WP_REST_Response
*/
public function get_item($request) {
$id = (int) $request['id'];
$form = WPCF7_ContactForm::get_instance( $id );
if ( empty( $id ) || empty($form) || empty($form->id())) {
return new WP_Error( 'rest_post_invalid_id', __( 'Invalid form id.' ), array( 'status' => 404 ) );
}
$data = $this->prepare_item_for_response($form, $request);
$response = rest_ensure_response($data);
$total_forms = WPCF7_ContactForm::count();
$response->header('X-WP-Total', (int) $total_forms);
return $response;
}
/**
* @param WP_REST_Request $request
* @return bool|WP_Error
*/
public function create_item_permissions_check($request) {
$post_type = get_post_type_object( $this->post_type );
if (! current_user_can( $post_type->cap->publish_posts ) ) {
return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to publish posts of this post type' ), array( 'status' => rest_authorization_required_code() ) );
}
return true;
}
/**
* @param WP_REST_Request $request
* @return mixed|WP_REST_Response
* TODO: This should return a JSON representation of the form instead of just the $id
*/
public function create_item($request) {
$request->set_param("id", -1);
$form = $this->prepare_item_for_database($request);
$id = $form->save();
$response = rest_ensure_response($id);
return $response;
}
/**
* @param WP_REST_Request $request
* @return bool|WP_Error
*/
public function update_item_permissions_check($request) {
$post_type = get_post_type_object( $this->post_type );
if (! current_user_can( $post_type->cap->edit_others_posts ) ) {
return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit posts of this post type' ), array( 'status' => rest_authorization_required_code() ) );
}
return true;
}
/**
* @param WP_REST_Request $request
* @return mixed|WP_Error|WP_REST_Response
* TODO: This should also return a JSON representation of the form instead of just the $id
*/
public function update_item($request) {
$id = (int) $request['id'];
$form = WPCF7_ContactForm::get_instance( $id );
if ( empty( $id ) || empty($form) || empty($form->id())) {
return new WP_Error( 'rest_post_invalid_id', __( 'Invalid form id.' ), array( 'status' => 404 ) );
}
$request->set_param('id', $id); //TODO: Doubt this is even needed but don't have time to risk it atm
$form = $this->prepare_item_for_database($request);
$id = $form->save();
$response = rest_ensure_response($id);
return $response;
}
/**
* @param mixed $form
* @param WP_REST_Request $request
* @return mixed|WP_REST_Response
*/
public function prepare_item_for_response($form, $request)
{
$data = array();
$data['id'] = $form->id();
$data['name'] = $form->name();
$data['title'] = $form->title();
$data['locale'] = $form->locale;
$data['properties'] = $form->get_properties();
$data = $this->add_additional_fields_to_object($data, $request);
$response = rest_ensure_response($data);
$response = apply_filters('rest_api_prepare_wpcf7', $response, $form, $request);
return $response;
}
/**
* @param WP_REST_Request $request
* @return mixed|WPCF7_ContactForm
*/
protected function prepare_item_for_database($request) {
$id = $request->get_param('id');
$prepared_form = WPCF7_ContactForm::get_instance( $id );
/**
* update_item ensures the form ID exists before calling this method to prevent non-existant forms from being created accidentally.
*/
if(empty($prepared_form)) {
$prepared_form = WPCF7_ContactForm::get_template();
}
if ( isset( $request['post-title'] ) ) {
$prepared_form->set_title( $request['post-title'] );
}
if ( isset( $request['locale'] ) ) {
$locale = trim( $request['locale'] );
if ( wpcf7_is_valid_locale( $locale ) ) {
$prepared_form->set_locale($locale);
}
}
$properties = $prepared_form->get_properties();
if ( isset( $request['form'] ) ) {
$properties['form'] = trim( $request['form'] );
}
$mail = $properties['mail'];
if ( isset( $request['mail-subject'] ) ) {
$mail['subject'] = trim( $request['mail-subject'] );
}
if ( isset( $request['mail-sender'] ) ) {
$mail['sender'] = trim( $request['mail-sender'] );
}
if ( isset( $request['mail-body'] ) ) {
$mail['body'] = trim( $request['mail-body'] );
}
if ( isset( $request['mail-recipient'] ) ) {
$mail['recipient'] = trim( $request['mail-recipient'] );
}
if ( isset( $request['mail-additional-headers'] ) ) {
$headers = '';
$tempheaders = str_replace(
"\r\n", "\n", $request['mail-additional-headers'] );
$tempheaders = explode( "\n", $tempheaders );
foreach ( $tempheaders as $header ) {
$header = trim( $header );
if ( '' !== $header ) {
$headers .= $header . "\n";
}
}
$mail['additional_headers'] = trim( $headers );
}
if ( isset( $request['mail-attachments'] ) ) {
$mail['attachments'] = trim( $request['mail-attachments'] );
}
$mail['use_html'] = ! empty( $request['mail-use-html'] );
$mail['exclude_blank'] = ! empty( $request['mail-exclude-blank'] );
$properties['mail'] = $mail;
$mail_2 = $properties['mail_2'];
$mail_2['active'] = ! empty( $request['mail-2-active'] );
if ( isset( $request['mail-2-subject'] ) ) {
$mail_2['subject'] = trim( $request['mail-2-subject'] );
}
if ( isset( $request['mail-2-sender'] ) ) {
$mail_2['sender'] = trim( $request['mail-2-sender'] );
}
if ( isset( $request['mail-2-body'] ) ) {
$mail_2['body'] = trim( $request['mail-2-body'] );
}
if ( isset( $request['mail-2-recipient'] ) ) {
$mail_2['recipient'] = trim( $request['mail-2-recipient'] );
}
if ( isset( $request['mail-2-additional-headers'] ) ) {
$headers = '';
$tempheaders = str_replace(
"\r\n", "\n", $request['mail-2-additional-headers'] );
$tempheaders = explode( "\n", $tempheaders );
foreach ( $tempheaders as $header ) {
$header = trim( $header );
if ( '' !== $header ) {
$headers .= $header . "\n";
}
}
$mail_2['additional_headers'] = trim( $headers );
}
if ( isset( $request['mail-2-attachments'] ) ) {
$mail_2['attachments'] = trim( $request['mail-2-attachments'] );
}
$mail_2['use_html'] = ! empty( $request['mail-2-use-html'] );
$mail_2['exclude_blank'] = ! empty( $request['mail-2-exclude-blank'] );
$properties['mail_2'] = $mail_2;
// For setting/updating confirmation/error messages
foreach ( wpcf7_messages() as $key => $arr ) {
$field_name = 'message-' . strtr( $key, '_', '-' );
if ( isset( $request[$field_name] ) ) {
$properties['messages'][$key] = trim( $request[$field_name] );
}
}
if ( isset( $request['additional-settings'] ) ) {
$properties['additional_settings'] = trim( $request['additional-settings'] );
}
$prepared_form->set_properties( $properties );
//Preceded original with rest_api_
do_action( 'rest_api_wpcf7_save_contact_form', $prepared_form );
if ( wpcf7_validate_configuration() ) {
$config_validator = new WPCF7_ConfigValidator( $prepared_form );
$config_validator->validate();
}
return $prepared_form;
}
/**
* Get the Form's schema, conforming to JSON Schema
*
* @return array
*/
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'form',
'type' => 'object',
'properties' => array(
'id' => array(
'description' => __( 'Unique identifier for the form.' ),
'type' => 'integer',
'context' => array( 'embed', 'view' ),
'readonly' => true,
),
'title' => array(
'description' => __( 'Display name for the form.' ),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
'arg_options' => array(
'sanitize_callback' => 'sanitize_text_field',
),
),
'name' => array(
'description' => __( 'An alphanumeric identifier for the object unique to its type.' ),
'type' => 'string',
'context' => array( 'embed', 'view' ),
'arg_options' => array(
'sanitize_callback' => 'sanitize_text_field',
),
),
'locale' => array(
'description' => __( 'The locale setting of the form' ),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
'arg_options' => array(
'sanitize_callback' => 'sanitize_text_field',
),
),
'properties' => array(
'description' => __('The properties of the form'),
'type' => 'object',
'context' => array( 'embed', 'view', 'edit' ),
'properties' => array(
'form' => array(
'description' => __('The content for the form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail' => array(
'type' => 'object',
'context' => array( 'embed', 'view', 'edit' ),
'properties' => array(
'mail-subject' => array(
'description' => __('Subject of the form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-sender' => array(
'description' => __('Sending email address of the form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-recipient' => array(
'description' => __('Recipient email address of the form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-additional-headers' => array(
'description' => __('Additional form headers'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-attachment' => array(
'description' => __('Attachments to include with form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-use-html' => array(
'description' => __('Send emails using HTML formatting'),
'type' => 'boolean',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-exclude-blank' => array(
'description' => __('Exclude lines with blank mail-tags from output'),
'type' => 'boolean',
'context' => array( 'embed', 'view', 'edit' ),
),
),
),
'mail-2' => array(
'type' => 'object',
'context' => array( 'embed', 'view', 'edit' ),
'properties' => array(
'mail-2-subject' => array(
'description' => __('Subject of the form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-2-sender' => array(
'description' => __('Sending email address of the form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-2-recipient' => array(
'description' => __('Recipient email address of the form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-2-additional-headers' => array(
'description' => __('Additional form headers'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-2-attachment' => array(
'description' => __('Files to attach to the form'),
'type' => 'string',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-2-use-html' => array(
'description' => __('Send emails using HTML formatting'),
'type' => 'boolean',
'context' => array( 'embed', 'view', 'edit' ),
),
'mail-2-exclude-blank' => array(
'description' => __('Exclude lines with blank mail-tags from output'),
'type' => 'boolean',
'context' => array( 'embed', 'view', 'edit' ),
),
),
),
),
),
)
);
#$schema['properties']['meta'] = $this->meta->get_field_schema();
return $this->add_additional_fields_schema( $schema );
}
}
\ No newline at end of file
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