Commit a406f548 authored by Simonas's avatar Simonas

theme in progress

parent 12235740
-----BEGIN CERTIFICATE-----
MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/
MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT
DkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow
SjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT
GkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAnNMM8FrlLke3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF
q6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8
SMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN8jKkKQDIZ0
Z8h/pZq4UmEUEz9l6YKHy9v6Dlb2honzhT+Xhq+w3Brvaw2VFn3EK6BlspkENnWA
a6xK8xuQSXgvopZPKiAlKQTGdMDQMc2PMTiVFrqoM7hD8bEfwzB/onkxEz0tNvjj
/PIzark5McWvxI0NHWQWM6r6hCm21AvA2H3DkwIDAQABo4IBfTCCAXkwEgYDVR0T
AQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwfwYIKwYBBQUHAQEEczBxMDIG
CCsGAQUFBzABhiZodHRwOi8vaXNyZy50cnVzdGlkLm9jc3AuaWRlbnRydXN0LmNv
bTA7BggrBgEFBQcwAoYvaHR0cDovL2FwcHMuaWRlbnRydXN0LmNvbS9yb290cy9k
c3Ryb290Y2F4My5wN2MwHwYDVR0jBBgwFoAUxKexpHsscfrb4UuQdf/EFWCFiRAw
VAYDVR0gBE0wSzAIBgZngQwBAgEwPwYLKwYBBAGC3x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3qj8
JfFYADxf6g1Mvym4fZMTqtnNrfEjJmn1mrgy7zTDEyKcmf04u2fX1ZBrGWz1Y1+P
pkWXv3WLSVzRmP+59tmGPSu22MAQO2akG5YaOiDf0QKBgQDvboBn/NvT9gxmIEuX
dUT9/Tr2o71fazbs1+dp85yayVHp3ZmsdTn84bFkREczSaBCmzMBiaCYfyclAKMa
EG/SPZIxcbn9Iu3CWOnokSMnNXk1082Rao/VKE9F9murzyFVHni2uRrRLI8TixTk
+kBPNcMcDeLGex/7nWCJaGE/BwKBgQDGVLnBgD0QZT96TxhWm7HrqBigdHiHgW0r
m0KCMNPzWVX1BGBqoWELtrJc6yosFRSRJSsNJjik5+czHvoxelUaGtUHv2XPrap7
bVpVPZaao7kL7QtjhEGg/8wBQcyWq1e67R4SGNUQjADIH/DsxItDiCeyr07TMmBB
lH7kJ2hnLQKBgBPC2gQ7IWWYHCPdrH9+pUgVO2WZ1AppDep0U1wySA2aahFUQdez
ASs28W4mGH5KKFj2+Dm7Qy7y56ctK0j+bEw82rEMAt66oEb3Ea8pM26MAkoIBiJn
WiGspwZONUrD2KtuzWW/V1BGTjS9uObBJMek10qcdsgM53Hb5ljQ7Z3HAoGBAIh/
rWzoxp4vINYb88M/2t82zOQ55O5V/H3jmI2j72vvk0JTpcwdj34RWoaq71Zxl7sh
mpStNpUAalX7vvQonsOdrfpsFzUs8EWMiHxcK/f4MJZtqcXvM4AMLSq8T4NvH60u
HuETqCiAQtV5bkZ2KubqoW/QSe7/H9Ji0kZSfP9tAoGBAMtOM6Gx5snEMAmRJArk
jGvm3B6nHzdJ1kKy7a+/O7Hm4y1GBacKKJdPoACbdwHCLbgs4NH0OmYaB6T5miVI
u5+g1E9eq84i2qhPF3e1ZvSK9G826fGLSw1MeRdEaCm/nJwqudDAlgEJviKFNs0U
HCHAkM7R2ySMwwyhAn6MzFSF
-----END PRIVATE KEY-----
\ No newline at end of file
......@@ -32,9 +32,9 @@ server {
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4;
ssl_certificate /etc/letsencrypt/biuro.lt/certificate.pem;
ssl_certificate_key /etc/letsencrypt/biuro.lt/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/biuro.lt/ca-bundle.pem;
ssl_certificate /etc/letsencrypt/biuro.lt/certificate.crt;
ssl_certificate_key /etc/letsencrypt/biuro.lt/private.key;
ssl_trusted_certificate /etc/letsencrypt/biuro.lt/ca_bundle.crt;
# ssl_protocols TLSv1.2 TLSv1.3;
......
......@@ -7,8 +7,8 @@ export default {
name: 'biuro',
isProduction: ENV === 'production',
certs: {
key: 'certs/biuro.lt/privkey.pem',
cert: 'certs/biuro.lt/certificate.pem'
key: 'certs/biuro.lt/private.key',
cert: 'certs/biuro.lt/certificate.crt'
},
proxy: 'https://dev.biuro.lt'
};
......@@ -26,32 +26,40 @@ export function serveCoreCSS () {
require('postcss-browser-reporter')() // report issue in browser
];
const logError = (error) => {
console.log(error.toString());
this.emit('end');
};
let stream = gulp.src(`wp-content/themes/${conf.name}/css/main.css`);
if (!conf.isProduction) {
stream = stream
.pipe(sourcemaps.init());
.pipe(sourcemaps.init())
.on('error', logError);
}
stream = stream
.pipe(postCSS(p))
.on('error', function (error) {
console.log(error.toString());
this.emit('end');
})
.pipe(rename({ basename: 'core', suffix: '.min' }));
.on('error', logError)
.pipe(rename({ basename: 'core', suffix: '.min' }))
.on('error', logError);
if (conf.isProduction) {
stream = stream
.pipe(rev());
.pipe(rev())
.on('error', logError);
} else {
stream = stream
.pipe(cached('css-core'))
.pipe(sourcemaps.write());
.on('error', logError)
.pipe(sourcemaps.write())
.on('error', logError);
}
stream = stream
.pipe(gulp.dest(`wp-content/themes/${conf.name}/css/`));
.pipe(gulp.dest(`wp-content/themes/${conf.name}/css/`))
.on('error', logError);
return stream;
}
......@@ -26,20 +26,24 @@ export function serveMainCSS () {
require('postcss-browser-reporter')() // report issue in browser
];
const logError = (error) => {
console.log(error.toString());
this.emit('end');
};
let stream = gulp.src(`wp-content/themes/${conf.name}/css/main.css`);
if (!conf.isProduction) {
stream = stream
.pipe(sourcemaps.init());
.pipe(sourcemaps.init())
.on('error', logError);
}
stream = stream
.pipe(postCSS(p))
.on('error', function (error) {
console.log(error.toString());
this.emit('end');
})
.pipe(rename({ suffix: '.min' }));
.on('error', logError)
.pipe(rename({ suffix: '.min' }))
.on('error', logError);
if (conf.isProduction) {
stream = stream
......@@ -47,11 +51,14 @@ export function serveMainCSS () {
} else {
stream = stream
.pipe(cached('css-main'))
.pipe(sourcemaps.write('.'));
.on('error', logError)
.pipe(sourcemaps.write('.'))
.on('error', logError);
}
stream = stream
.pipe(gulp.dest(`wp-content/themes/${conf.name}/css/`));
.pipe(gulp.dest(`wp-content/themes/${conf.name}/css/`))
.on('error', logError);
return stream;
}
......@@ -33,14 +33,15 @@ export function server () {
// server: 'wp-content/themes/${conf.name}/',
proxy: conf.proxy,
// httpModule: 'http2',
notify: false,
https: {
key: conf.certs.key,
cert: conf.certs.cert
},
files: [
`wp-content/themes/${conf.name}/**/*.php`,
`wp-content/themes/${conf.name}/css/main.min.css`
],
// files: [
// // `wp-content/themes/${conf.name}/**/*.php`,
// // `wp-content/themes/${conf.name}/css/main.min.css`
// ],
open: false,
port: 2000,
ui: false,
......@@ -65,7 +66,7 @@ export function server () {
gulp.watch([`wp-content/themes/${conf.name}/css/**/*.css`, `!wp-content/themes/${conf.name}/css/**/*.min.css`], gulp.parallel(serveCoreCSS, serveMainCSS));
gulp.watch(`wp-content/themes/${conf.name}/css/core.min.css`).on('change', () => bs.reload());
// gulp.watch(`wp-content/themes/${conf.name}/css/core.min.css`).on('change', () => bs.reload());
gulp.watch(`wp-content/themes/${conf.name}/js/*.js`).on('change', () => browser.reload());
// gulp.watch(`wp-content/themes/${conf.name}/js/*.js`).on('change', () => browser.reload());
}
......@@ -73,7 +73,7 @@ class Cookies_Warning extends WP_Widget {
// Display the widget
echo '<div id="cookie-warning" class="c-cookies-warning">';
echo '<div class="c-cookies-warning--inner">';
echo '<div class="l-inner">';
// Display content field
if ( $content ) {
......
......@@ -7,4 +7,5 @@ global variables, such as brand colors, configs etc
@import '_settings--colors';
@import '_settings--typography';
@import '_settings--vars';
@import '_settings--layout';
/*@import '_settings--vars';*/
/* ------------- Settings: layout ------------- */
/* critical:start */
:root {
/*--layout-width: 976px;*/
--layout-width: 63em;
}
/* critical:end */
......@@ -4,9 +4,9 @@
:root {
--typo--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--typo--font-size: 2.4rem;
--typo--line-height: 1.286;
--typo--font-face: 'Open Sans', 'system', sans-serif;
--typo--font-size: 1.8rem;
--typo--line-height: 1.2;
--typo--font-face: 'PT Sans Narrow', 'system', sans-serif;
}
/* critical:end */
......@@ -7,6 +7,9 @@
--header-height: 62px;
--border-top: inset 0 2px 1px -1px var(--color-light-gray);
*/
--layout-width: 976px;
/*max-width:976px*/
}
/* critical:end */
/* ------------- Tools: font face ------------- */
/*
@font-face {
font-family: 'Avenir';
src: local('☺'),
url('../fonts/avenir-roman.woff2') format('woff2'),
url('../fonts/avenir-roman.woff') format('woff');
font-family: 'PT Sans Narrow';
font-style: normal;
font-weight: 500;
font-display: swap;
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: 'Avenir';
src: local('☺'),
url('../fonts/avenir-heavy.woff2') format('woff2'),
url('../fonts/avenir-heavy.woff') format('woff');
font-family: 'PT Sans Narrow';
font-style: normal;
font-weight: 600;
font-display: swap;
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: 'Avenir';
src: local('☺'),
url('../fonts/avenir-black.woff2') format('woff2'),
url('../fonts/avenir-black.woff') format('woff');
font-style: normal;
font-weight: 700;
font-display: swap;
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");
}
*/
......@@ -8,7 +8,7 @@ a.k.a. Base, unclassed html elements, e.g. headings, lists, tables, this is the
@import '_element--anchor.css';
@import '_element--body.css';
@import '_element--figure.css';
@import '_element--headers.css';
/*@import '_element--headers.css';*/
@import '_element--html.css';
@import '_element--images.css';
@import '_element--paragraph.css';
......
/* ------------- Elements: anchor ------------- */
a {
/* critical:start */
color: var(--color--gray);
/* critical:end */
&:hover { text-decoration: none; }
}
......@@ -14,3 +8,6 @@ a {
[href^="tel"] { pointer-events: none; text-decoration: none; color: inherit; }
}
/* critical:start */
/* critical:end */
......@@ -2,21 +2,22 @@
/* critical:start */
body { margin: 0; color: var(--color--gray); font-weight: 300;
body {
font-family: var(--typo--font-family);
font-size: calc(24px + 1 * ((100vw - 480px) / 960));
font-size: var(--typo--font-size);
line-height: var(--typo--line-height);
color: var(--color--gray);
@media (--min--small) {
font-size: 1.6rem;
line-height: 1.3;
/*
@media (--min--xx-large) {
font-size: 2.4rem;
:root {
--typo--font-size: 1.6rem;
--typo--line-height: 1.3;
}
*/
}
*/
}
/* critical:end */
/* .fonts-loaded body { font-family: var(--typo--font-face); } */
/* ------------- Elements: paragraph ------------- */
p { margin: 0 0 1.8rem; font-size: var(--typo--font-size); }
p { margin: 0 0 1.6rem; }
/* ------------- Elements: strong ------------- */
b,
strong { font-weight: 600; }
strong { font-weight: 700; }
......@@ -5,9 +5,10 @@ Layout styles (e.g. container, header, main, footer, grid systems etc)
l-: layout classes
========================================================================== */
/*@import '_layout--container.css';*/
/*@import '_layout--header.css';*/
/*@import '_layout--main.css';*/
/*@import '_layout--nav.css';*/
/*@import '_layout--aside.css';*/
@import '_layout--inner.css';
@import '_layout--header.css';
@import '_layout--content.css';
@import '_layout--aside.css';
@import '_layout--main.css';
@import '_layout--footer.css';
/*@import '_layout--nav.css';*/
......@@ -2,6 +2,16 @@
/* critical:start */
.l-aside { }
.l-aside {
@media (--min--small) {
flex: 0 0 195px;
}
@media (--min--medium) {
flex-basis: 215px;
}
@media (--min--medium) {
flex-basis: 235px;
}
}
/* critical:end */
/* ------------- Layout: content ------------- */
/* critical:start */
.l-content { @extend .l-inner;
@media (--min--small) {
display: flex;
}
}
/* critical:end */
.l-content { box-shadow: inset 0 0 0 1px green; }
......@@ -2,8 +2,8 @@
/* critical:start */
.l-footer { clear: both; }
.l-footer { @extend .l-inner; }
/* critical:end */
.l-footer { min-height: 160px; }
.l-footer { padding-bottom: 100px; box-shadow: inset 0 0 0 1px #f00; }
......@@ -2,8 +2,8 @@
/* critical:start */
.l-header { }
.l-header { display: flex; @extend .l-inner; margin-bottom: 1.25em; }
/* critical:end */
/* .l-header { background: rgba(0, 0, 0, .25); } */
.l-header { box-shadow: inset 0 0 0 1px orange; }
/* ------------- Layout: inner ------------- */
/* critical:start */
.l-inner { max-width: var(--layout-width); margin-right: auto; margin-left: auto; padding-right: 1em; padding-left: 1em; }
/* critical:end */
......@@ -2,6 +2,10 @@
/* critical:start */
.l-main { }
.l-main {
@media (--min--small) {
flex: 1 1 100%;
}
}
/* critical:end */
......@@ -10,6 +10,9 @@ c-: Signify that something is a Component. This is a concrete, implementation-sp
@import '_component--cookies-warning.css';
@import '_component--data-controller.css';
@import '_component--job.css';
@import '_component--jobs-list.css';
@import '_component--logo.css';
@import '_component--search.css';
/*
@import '_component--nav.css';
......
......@@ -10,5 +10,4 @@
.bu-action { margin-top: 10px; }
.bu-action--alt { float: right; }
}
.c-cookies-warning--inner { margin: 0 auto; max-width: 976px }
......@@ -2,6 +2,8 @@
/* critical:start */
.c-data-controller { padding: 0 20px; text-align: center; font-size: 88%; }
.c-data-controller { padding: 0 1em; text-align: center; font-size: 88%;
p { margin-bottom: 0; }
}
/* critical:end */
/* ------------- Component: jobs list ------------- */
/* critical:start */
/* critical:end */
.c-jobs-list { width: 100%; margin: 0 0 20px;
th,
td { vertical-align: top; }
a { display: block; }
}
.c-jobs-list--row-odd { background: #F8F8F8; }
.c-jobs-list--head { padding: 10px; font-weight: 700; text-align: left;
@media (--max--small) {
display: none;
}
&:nth-child(n+2) {
@media (--min--small) {
border-left: 1px solid #dfe1e4;
}
}
}
.c-jobs-list--col { padding: 0 10px;
@media (--max--xx-small) {
float: left; width: calc(100% - 20px)
}
@media (--min--xx-small) {
max-width: 260px; padding: 10px;
}
}
.c-jobs-list--col-position {
@media (--max--xx-small) {
padding-top: 10px;
}
}
.c-jobs-list--col-city {
@media (--max--xx-small) {
padding-bottom: 10px; text-align: left;
}
@media (--max--small) {
text-align: right;
}
@media (--min--small) {
border-left: 1px solid #dfe1e4;
}
}
.c-jobs-list--col-valid { display: none;
@media (--min--small) {
display: table-cell; border-left: 1px solid #dfe1e4;
}
}
......@@ -2,6 +2,10 @@
/* critical:start */
.c-logo { display: block; text-decoration: none; }
/* critical:end */
.c-logo { text-decoration: none; }
.c-logo--svg { display: block; }
.c-logo { margin: 41px 20px 25px 23px; }
/* ------------- Layout: container ------------- */
/* ------------- Component: search ------------- */
/* critical:start */
.l-container { }
/* critical:end */
.c-search { margin-top: 40px; }
This diff is collapsed.
:root{--color--gray:#4d4d4d;--color--green:#006957;--typo--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;--typo--font-size:1.8rem;--typo--line-height:1.2;--typo--font-face:"PT Sans Narrow","system",sans-serif;--layout-width:63em}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-family:var(--typo--font-family);font-size:1.8rem;font-size:var(--typo--font-size);line-height:1.2;line-height:var(--typo--line-height);color:#4d4d4d;color:var(--color--gray)}html{min-height:100%;font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}.l-content,.l-footer,.l-header,.l-inner{max-width:63em;max-width:var(--layout-width);margin-right:auto;margin-left:auto;padding-right:1em;padding-left:1em}.l-header{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:1.25em}.o-nav{margin:0;padding:0;list-style:none}.c-cookies-warning{display:none}.c-data-controller{padding:0 1em;text-align:center;font-size:88%}.c-data-controller p{margin-bottom:0}.u-hidden{display:none}@media (min-width:48rem){body{font-size:1.6rem;line-height:1.3}.l-content{display:-webkit-box;display:-ms-flexbox;display:flex}.l-aside{-webkit-box-flex:0;-ms-flex:0 0 195px;flex:0 0 195px}.l-main{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%}}@media (min-width:60rem){.l-aside{-ms-flex-preferred-size:215px;flex-basis:215px;-ms-flex-preferred-size:235px;flex-basis:235px}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -24,6 +24,6 @@
?>
<!-- <script src="/wp-content/themes/biuro/js/main.min.js" async></script> -->
<!-- <script src="/wp-content/themes/biuro/js/main-3fa889f6.min.js" async></script> -->
</body>
</html>
</div>
</main><!-- .l-main -->
</div>
</div><!-- .l-content -->
<footer class="l-footer" style="boder: 1px solid red;">
<div id="fb-root"></div>
<?php
if ( is_active_sidebar( 'footer_main' ) ) :
dynamic_sidebar( 'footer_main' );
endif;
?>
<div class="l-footer">
<div class="share">
<?php
$social = get_option('wpseo_social');
if ($social['facebook_site']) :
?>
<a href="https://www.facebook.com/biuro.lietuva" class="icon icon-blue-dark icon-facebook" title="Facebook" target="_blank" rel="noopener" onclick="dataLayer.push({'event': 'socialClick', 'socialLabel': 'FB click'});"></a>
<?php
if ( is_active_sidebar( 'footer_main' ) ) :
dynamic_sidebar( 'footer_main' );
endif;
endif;
if ($social['linkedin_url']) :
?>
<a href="http://www.linkedin.com/company/2824948" class="icon icon-blue-light icon-linkedin" title="Linkedin" target="_blank" rel="noopener" onclick="dataLayer.push({'event': 'socialClick', 'socialLabel': 'LI click'});"></a>
<?php
endif;
?>
</div>
<div class="copy">&copy; <strong>2012-<?php echo date('Y'); ?> BIURO.</strong> </div>
<?php
get_template_part( 'template-parts/menus/menu', 'region' );
get_template_part( 'template-parts/menus/menu', 'language' );
?>
</div>
</footer><!-- .l-footer -->
<?php
......@@ -35,6 +57,6 @@
endif;
?>
<script src="/wp-content/themes/biuro/js/main.min.js" async></script>
<script src="/wp-content/themes/biuro/js/main-3fa889f6.min.js" async></script>
</body>
</html>
......@@ -12,48 +12,34 @@
* @version 1.0
*/
get_header(); ?>
<?php
while ( have_posts() ) :
the_post();
the_content();
endwhile;
get_header();
?>
<br>
<br>
<h1>Svetainės medis:</h1>
<h2>Darbas + Miestas</h2>
<?php
getSiteTree( 'city' );
?>
// Use for search
// https://pods.io/docs/code/pods/find/
<h2>Darbas + Tag'as</h2>
$where = 'valid.meta_value > "' . date('Y-m-d', strtotime('-1 days')) . '"';
// $where = 'valid.meta_value > "' . date('Y-m-d', strtotime('-1 days')) . '" AND t.post_title LIKE "%' . $search . '%"';
<ul>
<li style="color: red">ToDo: aptarti kaip turi būti LIVAS</li>
</ul>
$params = array(
'orderby' => 'date DESC',
'where' => $where,
'limit' => 21
);
$jobs = pods( 'job', $params );
<h2>Darbas + Sritis</h2>
if ( 0 < $jobs->total() ):
<?php
getSiteTree( 'field' );
?>
get_template_part( 'template-parts/jobs/jobs', 'list' );
<h2>Darbas + Įmonė</h2>
else:
<?php
getSiteTree( 'company' );
?>
get_template_part( 'template-parts/jobs/jobs', 'none' );
endif;
?>
<br>
<br>
<?php get_footer();
......@@ -17,12 +17,12 @@
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<style><?php include 'css/core.min.css'; ?></style>
<style><?php include 'css/core-d4ffa95eff.min.css'; ?></style>
<link rel="preload" href="/wp-content/themes/biuro/css/main.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main-46e283adc3.min.css" as="style" onload="this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-46e283adc3.min.css">
</noscript>
<?php wp_head(); ?>
......
This diff is collapsed.
......@@ -15,15 +15,59 @@
* @version 1.0
*/
$search = get_query_var('s');
$cityID = get_query_var('city');
get_header(); ?>
<?php
while ( have_posts() ) :
if ( is_search() ):
?>
<?php
// Use for search
// https://pods.io/docs/code/pods/find/
$where = 'valid.meta_value > "' . date('Y-m-d', strtotime('-1 days')) . '" AND t.post_title LIKE "%' . $search . '%"';
// 'where' => 't.post_title LIKE "%' . $keyword . '%" OR my_field.meta_value LIKE "%' . $keyword . '%"'
if ($cityID):
$where = $where . ' AND city.term_id = ' . $cityID;
endif;
$params = array(
'orderby' => 'date DESC',
'where' => $where,
'limit' => 21
);
$jobs = pods( 'job', $params );
if ( 0 < $jobs->total() ):
get_template_part( 'template-parts/jobs/jobs', 'list' );
else:
get_template_part( 'template-parts/jobs/jobs', 'none' );
endif;
?>
<?php
else:
?>
<?php
while ( have_posts() ) :
the_post();
the_content();
the_post();
the_content();
endwhile;
endwhile;
endif;
?>
<?php get_footer();
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){!function(e){var t=document.getElementById("cookie-warning"),n=document.getElementById("cookie-agree"),r=document.getElementById("cookie-close"),o=!!u()&&localStorage.getItem("biuro-agree");function u(){try{return localStorage.setItem("a","a"),localStorage.removeItem("a"),!0}catch(e){return!1}}t&&n&&r&&!o&&(t.style.display="block",n.addEventListener("click",function(){u()&&localStorage.setItem("biuro-agree","true"),t.style.display="none"}),r.addEventListener("click",function(){t.style.display="none"}))}(window)}]);
\ No newline at end of file
const cb = () => {
const l = document.createElement('link');
const h = document.getElementsByTagName('head')[0];
l.rel = 'stylesheet';
l.href = '/wp-content/themes/biuro/css/main.min.css';
h.parentNode.insertBefore(l, h);
};
const 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);
}
}
// const cb = () => {
// const l = document.createElement('link');
// const h = document.getElementsByTagName('head')[0];
// l.rel = 'stylesheet';
// l.href = '/wp-content/themes/biuro/css/main.min.css';
// h.parentNode.insertBefore(l, h);
// };
// const 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');
......
This diff is collapsed.
<?php
/**
* Template Name: Search Page
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Biuro
* @since 1.0
* @version 1.0
*/
?>
<?php
get_header();
$search = get_query_var('search');
$cityID = get_query_var('city');
$periodID = get_query_var('period');
$fieldID = get_query_var('field');
$typeID = get_query_var('type');
?>
<form id="filter-form" action="<?php echo esc_url( $searchPageURL ); ?>" method="get" enctype="application/x-www-form-urlencoded">
<ul class="search_box">
<li>
<label for="label">Paieška:</label>
<div id="search-input-block">
<input type="text" name="search" id="search" value="<?php echo $search; ?>" class="input text nolabel" />
<button aria-label="Ieškoti" type="submit" id="filter-action" class="submit action" ></button>
</div>
<a href="<?php echo esc_url( $searchPageURL ); ?>" id="filter-expand" class="url close">Išplėstinė paieška</a></li>
<li class="filter-additional">
<label for="city">Miestas:</label>
<select name="city" id="city" class="el_130">
<option value="">Visi miestai</option>
<?php
$cities = get_terms( array(
'taxonomy' => 'city',
'hide_empty' => false,
));
if ( ! empty( $cities ) && ! is_wp_error( $cities ) ):
foreach ( $cities as $city ):
$name = $city->name;
$termID = $city->term_id;
$selected = ($cityID == $termID) ? 'selected="selected"' : '';
?>
<option value="<?php echo $termID; ?>" <?php echo $selected; ?>><?php echo $name; ?></option>
<?php
endforeach;
endif;
?>
</select>
<label for="period" style="opacity: 0.45">Laikotarpis:</label>
<select name="period" id="period" class="el_130" style="opacity: 0.45">
<option value="">Nesvarbu</option>
<option value="1">Šiandienos</option>
<option value="7">Savaitės</option>
<option value="30">Mėnesio</option>
</select>
</li>
<li class="filter-additional">
<label for="field">Darbo sritis:</label>
<select name="field" id="field" class="el_130">
<option value="">Visos sritys</option>
<?php
$fields = get_terms( array(
'taxonomy' => 'field',
'hide_empty' => false,
));
if ( ! empty( $fields ) && ! is_wp_error( $fields ) ):
foreach ( $fields as $field ):
$name = $field->name;
$termID = $field->term_id;
$selected = ($fieldID == $termID) ? 'selected="selected"' : '';
?>
<option value="<?php echo $termID; ?>" <?php echo $selected; ?>><?php echo $name; ?></option>
<?php
endforeach;
endif;
?>
</select>
<label for="type">Darbo rūšis:</label>
<select name="type" id="type" class="el_130">
<option value="">Visos rūšys</option>
<?php
$types = get_terms( array(
'taxonomy' => 'type',
'hide_empty' => false,
));
if ( ! empty( $types ) && ! is_wp_error( $types ) ):
foreach ( $types as $type ):
$name = $type->name;
$termID = $type->term_id;
$selected = ($typeID == $termID) ? 'selected="selected"' : '';
?>
<option value="<?php echo $termID; ?>" <?php echo $selected; ?>><?php echo $name; ?></option>
<?php
endforeach;
endif;
?>
</select>
<input type="submit" value="Ieškoti" class="filter-button">
<a href="<?php echo esc_url( $searchPageURL ); ?>" class="filter-button">Išvalyti</a>
</li>
</ul>
</form>
<?php
// Use for search
// https://pods.io/docs/code/pods/find/
$where = 'valid.meta_value > "' . date('Y-m-d', strtotime('-1 days')) . '" AND t.post_title LIKE "%' . $search . '%"';
// 'where' => 't.post_title LIKE "%' . $keyword . '%" OR my_field.meta_value LIKE "%' . $keyword . '%"'
if ($cityID):
$where = $where . ' AND city.term_id = ' . $cityID;
endif;
if ($fieldID):
$where = $where . ' AND field.term_id = ' . $fieldID;
endif;
if ($typeID):
$where = $where . ' AND type.term_id = ' . $typeID;
endif;
$params = array(
'orderby' => 'date DESC',
'where' => $where,
'limit' => 9
);
$jobs = pods( 'job', $params );
if ( 0 < $jobs->total() ):
get_template_part( 'template-parts/jobs/jobs', 'list' );
else:
get_template_part( 'template-parts/jobs/jobs', 'none' );
endif;
?>
<?php get_footer();
......@@ -8,15 +8,138 @@
* @version 1.0
*/
global $searchPageURL
$search = get_query_var('s');
$cityID = get_query_var('city');
?>
<form class="c-search" action="<?php echo pll_home_url(); ?>" method="get">
<datalist id="search-cities">
<?php
$cities = get_terms( array(
'taxonomy' => 'city',
'hide_empty' => false,
));
if ( ! empty( $cities ) && ! is_wp_error( $cities ) ):
foreach ( $cities as $city ):
$name = $city->name;
$termID = $city->term_id;
$selected = ($cityID == $termID) ? 'selected="selected"' : '';
?>
<option value="<?php echo $termID; ?>" <?php echo $selected; ?>><?php echo $name; ?></option>
<?php
endforeach;
endif;
?>
</datalist>
<input list="search-cities" id="search-city" name="city" value="<?php echo $cityID; ?>" placeholder="Miestas" />
<input type="text" name="s" id="search" value="<?php echo $search; ?>" />
<input type="submit" value="Ieškoti" class="filter-button" />
<a href="<?php echo pll_home_url(); ?>" class="filter-button">Išvalyti</a>
</form>
<form role="search" id="top-search-form" action="<?php echo esc_url( $searchPageURL ); ?>" method="get">
<?php
/*
<ul class="search_box">
<li>
<label for="label">Paieška:</label>
<div id="search-input-block">
<input type="text" name="search" id="search" value="<?php echo $search; ?>" class="input text nolabel" />
<button aria-label="Ieškoti" type="submit" id="filter-action" class="submit action" ></button>
</div>
<a href="<?php echo pll_home_url(); ?>" id="filter-expand" class="url close">Išplėstinė paieška</a></li>
<li class="filter-additional">
<label for="city">Miestas:</label>
<select name="city" id="city" class="el_130">
<option value="">Visi miestai</option>
<?php
$cities = get_terms( array(
'taxonomy' => 'city',
'hide_empty' => false,
));
if ( ! empty( $cities ) && ! is_wp_error( $cities ) ):
foreach ( $cities as $city ):
$name = $city->name;
$termID = $city->term_id;
$selected = ($cityID == $termID) ? 'selected="selected"' : '';
?>
<option value="<?php echo $termID; ?>" <?php echo $selected; ?>><?php echo $name; ?></option>
<?php
endforeach;
endif;
?>
</select>
<label for="period" style="opacity: 0.45">Laikotarpis:</label>
<select name="period" id="period" class="el_130" style="opacity: 0.45">
<option value="">Nesvarbu</option>
<option value="1">Šiandienos</option>
<option value="7">Savaitės</option>
<option value="30">Mėnesio</option>
</select>
</li>
<li class="filter-additional">
<label for="field">Darbo sritis:</label>
<select name="field" id="field" class="el_130">
<option value="">Visos sritys</option>
<?php
$fields = get_terms( array(
'taxonomy' => 'field',
'hide_empty' => false,
));
if ( ! empty( $fields ) && ! is_wp_error( $fields ) ):
foreach ( $fields as $field ):
$name = $field->name;
$termID = $field->term_id;
$selected = ($fieldID == $termID) ? 'selected="selected"' : '';
?>
<option value="<?php echo $termID; ?>" <?php echo $selected; ?>><?php echo $name; ?></option>
<?php
endforeach;
endif;
?>
</select>
<label for="type">Darbo rūšis:</label>
<select name="type" id="type" class="el_130">
<option value="">Visos rūšys</option>
<?php
$types = get_terms( array(
'taxonomy' => 'type',
'hide_empty' => false,
));
if ( ! empty( $types ) && ! is_wp_error( $types ) ):
foreach ( $types as $type ):
$name = $type->name;
$termID = $type->term_id;
$selected = ($typeID == $termID) ? 'selected="selected"' : '';
?>
<option value="<?php echo $termID; ?>" <?php echo $selected; ?>><?php echo $name; ?></option>
<?php
endforeach;
endif;
?>
</select>
<input type="submit" value="Ieškoti" class="filter-button">
<a href="<?php echo pll_home_url(); ?>" class="filter-button">Išvalyti</a>
</li>
</ul>
</form>
<?php
<form role="search" id="top-search-form" action="<?php echo pll_home_url(); ?>" method="get">
<label for="search"><?php pll_e('Job search'); ?></label>
<div id="search-input-block">
<input type="text" name="search" id="search" value="" class="input text nolabel" />
<button aria-label="Ieškoti" type="submit" id="filter-action" class="submit action" ></button>
</div>
</form>
*/
?>
......@@ -13,12 +13,11 @@ global $jobs;
?>
<table cellspacing="0" cellpadding="0" class="advert_table">
<table cellspacing="0" cellpadding="0" class="c-jobs-list">
<tr>
<th>Pozicija </th>
<th>Vietovė</th>
<th>Data</th>
<th>Rūšis</th>
<th class="c-jobs-list--head">Pozicija </th>
<th class="c-jobs-list--head">Vietovė</th>
<th class="c-jobs-list--head">Galioja iki</th>
</tr>
<?php
......@@ -26,21 +25,18 @@ global $jobs;
$ID = $jobs->display( 'ID' );
$i++;
?>
<tr <?php if ( $i % 2 != 0 ) { echo 'class="bg"'; } ?>>
<td>
<a href="<?php echo get_post_permalink( $ID ); ?>" target="_blank" title="<?php echo $jobs->display( 'name' ); ?>">
<tr <?php if ( $i % 2 != 0 ) { echo 'class="c-jobs-list--row-odd"'; } ?>>
<td class="c-jobs-list--col c-jobs-list--col-position">
<a href="<?php echo get_post_permalink( $ID ); ?>" title="<?php echo $jobs->display( 'name' ); ?>">
<strong><?php echo $jobs->display( 'name' ); ?></strong>
</a>
</td>
<td>
<td class="c-jobs-list--col c-jobs-list--col-city">
<?php echo $jobs->display( 'city' ); ?>
</td>
<td>
Paskelbta: <?php echo get_the_date( 'Y-m-d', $ID ); ?> <br>Galioja iki: <?php echo get_the_date( $jobs->display( 'valid' ) ); ?>
<td class="c-jobs-list--col c-jobs-list--col-valid">
<?php echo $jobs->display( 'valid' ); ?>
</td>
<td>
<?php echo $jobs->display( 'type' ); ?>
</td>
</tr>
<?php
......
<ul id="lang">
<li><?php pll_e('Language'); ?>:&nbsp;</li>
<?php
$translations = pll_the_languages(array('raw'=>1));
foreach ($translations as $code => $lang) :
$classCSS = $lang['current_lang'] ? 'class="act"' : '';
echo '<li><a href="' . $lang['url'] . '" title="' . $lang['name'] . '" ' . $classCSS . '>' . strtoupper($lang['slug']) . '</a></li>';
endforeach;
?>
</ul>
<?php
$menu = 'region-menu';
$region = '';
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu ] ) ) {
$o = wp_get_nav_menu_object( $locations[ $menu ] );
if ($o) {
$items = wp_get_nav_menu_items($o->term_id);
$region .= '<ul class="country">';
foreach( $items as $item ) {
$title = $item->title;
$url = $item->url;
if ($url == '/') {
$region .= '<li><a class="act" href="' . $url . '" title="' . $title . '">' . $title . '</a></li>';
} else {
$region .= '<li><a class="gtm-referral-click" rel="noopener" href="' . $url . '" target="_blank" title="' . $title . '">' . $title . '</a></li>';
}
}
$region .= '</ul>';
}
}
echo $region;
?>
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