Commit 333e9aab authored by Simonas's avatar Simonas

in progress

parent f90658f5
......@@ -107,6 +107,10 @@ Can't share C drive
## After release do:
- check biuro.lv && biuro.ee job descriptions
- check if tag manager is loaded
## Other (Commands)
- docker-compose up -d
- docker-compose start
......
......@@ -127,7 +127,7 @@ class Biuro_Feedbacks extends WP_Widget {
echo '<div class="c-feedbacks--section-inner">';
if ( ${'img' . $i} != "" ) {
echo '<img src="/wp-content/themes/biuro/i/feedbacks/' . ${'img' . $i} . '" class="c-feedbacks--img" width="85px" height="83px"/>';
echo '<img src="/wp-content/themes/biuro/i/feedbacks/' . ${'img' . $i} . '" class="c-feedbacks--img" width="85px" height="83px" alt="' . ${'name' . $i} . '"/>';
}
if ( ${'feedback' . $i} != "" ) {
......
/* ------------- Tools: font face ------------- */
/*
- move to local host
- https://medium.com/clio-calliope/making-google-fonts-faster-aadf3c02a36d
*/
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'), local('Roboto-Light'),
url('/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2') format('woff2'),
url('/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff') format('woff');
}
@font-face {
font-family: 'PT Sans Narrow';
src: url('../fonts/pt_sans_narrow.woff2') format('woff2'),
url('../fonts/pt_sans_narrow.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'),
url('/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff2') format('woff2'),
url('/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff') format('woff');
}
@font-face {
font-family: 'PT Sans Narrow';
src: url('../fonts/pt_sans_narrow_bold.woff2') format('woff2'),
url('../fonts/pt_sans_narrow_bold.woff') format('woff');
font-weight: 600;
font-style: normal;
font-display: swap;
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Roboto Medium'), local('Roboto-Medium'),
url('/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff2') format('woff2'),
url('/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff') format('woff');
}
@font-face {
font-family: 'Bebas Neue';
src: url('../fonts/bebas-neue.woff2') format('woff2'),
url('../fonts/bebas-neue.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Roboto Bold'), local('Roboto-Bold'),
url('/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2') format('woff2'),
url('/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff') format('woff');
}
......@@ -2,19 +2,19 @@
/* critical:start */
.l-section { padding: 20px 0; background-repeat: no-repeat; background-position: 50% 50%; background-size: cover;
.l-section { padding: 20px 0;
@media (--min--medium) {
padding: 30px 0;
}
}
.l-section--search-page { background-color: #111d1e; background-image: url(/wp-content/themes/biuro/i/search-page.png) }
.l-section--search-page { background-color: #111d1e; }
.l-section--vdb { background-color: #086335; background-image: url(/wp-content/themes/biuro/i/vdb/section.png); }
.l-section--vdb { background-color: #086335; }
.l-section--front-page { background: url(/wp-content/themes/biuro/i/front-page.png) no-repeat 50% 50%; background-size: cover; margin-bottom: 2px;
.l-section--front-page { margin-bottom: 2px;
@media (--max--medium) {
height: 244px; margin-bottom: 120px
height: 179px; margin-bottom: 185px
}
@media (--min--medium) {
height: 380px; margin-bottom: 92px;
......@@ -22,7 +22,7 @@
.l-section--inner { max-width: 870px; padding-right: 20px; padding-left: 20px; }
}
.l-section--sales-page { background: url(/wp-content/themes/biuro/i/sales-page.png) no-repeat 50% 50%; background-size: cover;
.l-section--sales-page {
@media (--min--medium) {
height: 380px;
}
......@@ -35,3 +35,20 @@
/* critical:end */
.l-section { background-repeat: no-repeat; background-position: 50% 50%; background-size: cover; }
.l-section--search-page { background-image: url(/wp-content/themes/biuro/i/search-page.png); }
.l-section--vdb { background-image: url(/wp-content/themes/biuro/i/vdb/section.png); }
.l-section--front-page { background-image: url(/wp-content/themes/biuro/i/front-page.png); background-size: 200%;
@media (--min--small) {
background-size: 150%;
}
@media (--min--medium) {
background-size: cover;
}
}
.l-section--sales-page { background-image: url(/wp-content/themes/biuro/i/sales-page.png); }
......@@ -6,7 +6,7 @@
/* critical:end */
.c-cookies-warning { position: fixed; left: 0px; right: 0; bottom: 0px; padding: 15px 20px 10px; background: #f6f6f6; overflow: hidden; z-index: 100; font-size: 14px; line-height: 15px;
.c-cookies-warning { position: fixed; left: 0px; right: 0; bottom: 0px; padding: 15px 0 10px; background: #f6f6f6; overflow: hidden; z-index: 100; font-size: 14px; line-height: 15px;
.bu-action { margin-top: 10px; }
.bu-action--alt { float: right; }
}
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -65,11 +65,16 @@
if ( is_active_sidebar( 'append_area' ) ) :
dynamic_sidebar( 'append_area' );
endif;
?>
?>
<script>
!function(n){"use strict";n.loadCSS||(n.loadCSS=function(){});var o=loadCSS.relpreload={};if(o.support=function(){var e;try{e=n.document.createElement("link").relList.supports("preload")}catch(t){e=!1}return function(){return e}}(),o.bindMediaToggle=function(t){var e=t.media||"all";function a(){t.addEventListener?t.removeEventListener("load",a):t.attachEvent&&t.detachEvent("onload",a),t.setAttribute("onload",null),t.media=e}t.addEventListener?t.addEventListener("load",a):t.attachEvent&&t.attachEvent("onload",a),setTimeout(function(){t.rel="stylesheet",t.media="only x"}),setTimeout(a,3e3)},o.poly=function(){if(!o.support())for(var t=n.document.getElementsByTagName("link"),e=0;e<t.length;e++){var a=t[e];"preload"!==a.rel||"style"!==a.getAttribute("as")||a.getAttribute("data-loadcss")||(a.setAttribute("data-loadcss",!0),o.bindMediaToggle(a))}},!o.support()){o.poly();var t=n.setInterval(o.poly,500);n.addEventListener?n.addEventListener("load",function(){o.poly(),n.clearInterval(t)}):n.attachEvent&&n.attachEvent("onload",function(){o.poly(),n.clearInterval(t)})}"undefined"!=typeof exports?exports.loadCSS=loadCSS:n.loadCSS=loadCSS}("undefined"!=typeof global?global:this);
</script>
<?php
if (!in_array(strstr($_SERVER['SERVER_NAME'], '.biuro', true), array('dev', 'staging'))):
?>
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-THF42F"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
......@@ -79,7 +84,11 @@
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-THF42F');</script>
<script src="/wp-content/themes/biuro/js/main.min.js" async></script>
<?php
endif;
?>
<script src="/wp-content/themes/biuro/js/main-63c39ea0.min.js" async></script>
<?php wp_footer(); ?>
</body>
</html>
......@@ -661,10 +661,48 @@ function jobs_columns_content($column_name, $post_ID) {
}
}
function jobs_livas_id_search( $wp ) {
global $pagenow;
// If it's not the post listing return
if( 'edit.php' != $pagenow )
return;
// If it's not a search return
if( !isset( $wp->query_vars['s'] ) )
return;
// If it's a search but there's no prefix, return
if( '#' != substr( $wp->query_vars['s'], 0, 1 ) )
return;
// Validate the numeric value
$livasId = absint( substr( $wp->query_vars['s'], 1 ) );
if( !$livasId )
return; // Return if no ID, absint returns 0 for invalid values
// If we reach here, all criteria is fulfilled, unset search and select by ID instead
unset( $wp->query_vars['s'] );
$params = [
'limit' => 1,
'where' => 'livas-id.meta_value = "' . (int) $livasId . '"',
];
$pod = pods('job', $params);
$ids = [];
while ( $pod->fetch() ) {
$ids[] = $pod->id();
}
$wp->query_vars['p'] = implode(',', $ids);
}
add_filter('manage_job_posts_columns', 'jobs_columns_head', 10);
add_action('manage_job_posts_custom_column', 'jobs_columns_content', 10, 2);
add_action('parse_request', 'jobs_livas_id_search' );
$positionsPage = '';
......
......@@ -21,18 +21,26 @@
<?php
get_template_part( 'template-parts/meta/canonical');
?>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<style><?php include 'css/core.min.css'; ?></style>
<!-- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet"> -->
<link rel="preload" href="/wp-content/themes/biuro/css/main.min.css" as="style" onload="this.rel='stylesheet'">
<style><?php include 'css/core-1064aec6fe.min.css'; ?></style>
<link rel="preload" href="/wp-content/themes/biuro/fonts/pt_sans_narrow.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/wp-content/themes/biuro/fonts/pt_sans_narrow_bold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/wp-content/themes/biuro/fonts/bebas-neue.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/wp-content/themes/biuro/css/main-8fd8d5e9f3.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff2">
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff2">
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2">
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2">
<link rel="preconnect" href="https://px.ads.linkedin.com/" crossorigin>
<link rel="preconnect" href="https://snap.licdn.com/" crossorigin>
<link rel="preconnect" href="https://connect.facebook.net/" crossorigin>
<link rel="preconnect" href="https://sjs.bizographics.com/" crossorigin>
<link rel="preconnect" href="https://www.google-analytics.com/" crossorigin>
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-8fd8d5e9f3.min.css">
</noscript>
<?php wp_head(); ?>
......
wp-content/themes/biuro/i/contact.png

177 KB | W: | H:

wp-content/themes/biuro/i/contact.png

40.7 KB | W: | H:

wp-content/themes/biuro/i/contact.png
wp-content/themes/biuro/i/contact.png
wp-content/themes/biuro/i/contact.png
wp-content/themes/biuro/i/contact.png
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/biuro/i/lang/de.png

743 Bytes | W: | H:

wp-content/themes/biuro/i/lang/de.png

483 Bytes | W: | H:

wp-content/themes/biuro/i/lang/de.png
wp-content/themes/biuro/i/lang/de.png
wp-content/themes/biuro/i/lang/de.png
wp-content/themes/biuro/i/lang/de.png
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/biuro/i/lang/en.png

1.75 KB | W: | H:

wp-content/themes/biuro/i/lang/en.png

765 Bytes | W: | H:

wp-content/themes/biuro/i/lang/en.png
wp-content/themes/biuro/i/lang/en.png
wp-content/themes/biuro/i/lang/en.png
wp-content/themes/biuro/i/lang/en.png
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/biuro/i/lang/et.png

781 Bytes | W: | H:

wp-content/themes/biuro/i/lang/et.png

471 Bytes | W: | H:

wp-content/themes/biuro/i/lang/et.png
wp-content/themes/biuro/i/lang/et.png
wp-content/themes/biuro/i/lang/et.png
wp-content/themes/biuro/i/lang/et.png
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/biuro/i/lang/lt.png

967 Bytes | W: | H:

wp-content/themes/biuro/i/lang/lt.png

479 Bytes | W: | H:

wp-content/themes/biuro/i/lang/lt.png
wp-content/themes/biuro/i/lang/lt.png
wp-content/themes/biuro/i/lang/lt.png
wp-content/themes/biuro/i/lang/lt.png
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/biuro/i/lang/lv.png

847 Bytes | W: | H:

wp-content/themes/biuro/i/lang/lv.png

384 Bytes | W: | H:

wp-content/themes/biuro/i/lang/lv.png
wp-content/themes/biuro/i/lang/lv.png
wp-content/themes/biuro/i/lang/lv.png
wp-content/themes/biuro/i/lang/lv.png
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/biuro/i/lang/ru.png

820 Bytes | W: | H:

wp-content/themes/biuro/i/lang/ru.png

471 Bytes | W: | H:

wp-content/themes/biuro/i/lang/ru.png
wp-content/themes/biuro/i/lang/ru.png
wp-content/themes/biuro/i/lang/ru.png
wp-content/themes/biuro/i/lang/ru.png
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/biuro/i/maps/pin.png

1.83 KB | W: | H:

wp-content/themes/biuro/i/maps/pin.png

1.01 KB | W: | H:

wp-content/themes/biuro/i/maps/pin.png
wp-content/themes/biuro/i/maps/pin.png
wp-content/themes/biuro/i/maps/pin.png
wp-content/themes/biuro/i/maps/pin.png
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/biuro/i/trust/dpd.png

2.58 KB | W: | H:

wp-content/themes/biuro/i/trust/dpd.png

1.24 KB | W: | H:

wp-content/themes/biuro/i/trust/dpd.png
wp-content/themes/biuro/i/trust/dpd.png
wp-content/themes/biuro/i/trust/dpd.png
wp-content/themes/biuro/i/trust/dpd.png
  • 2-up
  • Swipe
  • Onion skin
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -12,62 +12,68 @@
global $jobs;
?>
<table cellspacing="0" cellpadding="0" class="c-jobs--table">
<?php
$i = 0;
while ( $jobs->fetch() ) :
$ID = $jobs->display( 'ID' );
<table cellspacing="0" cellpadding="0" class="c-jobs--table">
<?php /*
<tr>
<th class="c-jobs--head"><?php _e('Position', 'biuro'); ?></th>
<th class="c-jobs--head"><?php _e('Location', 'biuro'); ?></th>
<th class="c-jobs--head"><?php _e('Valid till', 'biuro'); ?></th>
</tr>
*/ ?>
//Primary city id
$primaryCities = get_post_meta($ID, '_yoast_wpseo_primary_city');
<?php
$i = 0;
while ( $jobs->fetch() ) :
$ID = $jobs->display( 'ID' );
$i++;
?>
<tr <?php if ( $i % 2 != 0 ) { echo 'class="c-jobs--row-odd"'; } ?>>
<td class="c-jobs--col c-jobs--col-position">
<a class="c-jobs--anchor" href="<?php echo get_post_permalink( $ID ); ?>" title="<?php echo $jobs->display( 'name' ); ?>"><?php echo $jobs->display( 'name' ); ?></a>
</td>
<td class="c-jobs--col c-jobs--col-city">
<?php
$cities = $jobs->field( 'city');
$count = 0;
$i++;
?>
<tr <?php if ( $i % 2 != 0 ) { echo 'class="c-jobs--row-odd"'; } ?>>
<td class="c-jobs--col c-jobs--col-position">
<a class="c-jobs--anchor" href="<?php echo get_post_permalink( $ID ); ?>" title="<?php echo $jobs->display( 'name' ); ?>"><?php echo $jobs->display( 'name' ); ?></a>
</td>
<td class="c-jobs--col c-jobs--col-city">
<?php
$cities = $jobs->field( 'city');
$count = 0;
foreach($cities as $city):
if ($count):
echo ', ';
endif;
//Sort by primary city (put it first)
uasort($cities, function($a, $b) use ($primaryCities) {
if (count($primaryCities) == 0) :
return 0;
endif;
echo $city['name'];
if ($a['term_id'] == $primaryCities[0]) :
return -1;
endif;
$count++;
endforeach;
return 1;
});
// echo $jobs->display( 'city' );
?>
</td>
<td class="c-jobs--col c-jobs--col-valid">
<?php echo date_i18n( get_option( 'date_format' ), strtotime( $jobs->field( 'valid' ) ) ); ?>
</td>
</tr>
foreach($cities as $city):
if ($count):
echo ', ';
endif;
<?php
endwhile;
?>
</table>
echo $city['name'];
<?php
$count++;
endforeach;
?>
</td>
<td class="c-jobs--col c-jobs--col-valid">
<?php echo date_i18n( get_option( 'date_format' ), strtotime( $jobs->field( 'valid' ) ) ); ?>
</td>
</tr>
if ( !is_front_page() ):
echo $jobs->pagination( array(
'type' => 'paginate' ,
'prev_text' => ' ',
'next_text' => ' '
) );
endif;
<?php
endwhile;
?>
</table>
<?php
?>
if ( !is_front_page() ):
echo $jobs->pagination( array(
'type' => 'paginate' ,
'prev_text' => ' ',
'next_text' => ' '
) );
endif;
?>
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