Commit c7062efa authored by Simonas's avatar Simonas

Updated packages & livas-id redirect

parent 4146d595
This diff is collapsed.
{ {
"name": "biuro", "name": "biuro",
"version": "0.0.0", "version": "1.0.0",
"description": "Our WP progressive web app theme", "description": "Biuro WP theme",
"scripts": { "scripts": {
"dev": "gulp --require @babel/register --gulpfile tasks", "dev": "gulp --require @babel/register --gulpfile tasks",
"build": "SET NODE_ENV=production & gulp build --require @babel/register --gulpfile tasks" "build": "SET NODE_ENV=production & gulp build --require @babel/register --gulpfile tasks"
}, },
"author": "Simon", "private": true,
"author": "Biuro",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.3.4", "@babel/core": "^7.4.4",
"@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.3.4", "@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.3.4", "@babel/preset-env": "^7.4.4",
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0", "@babel/register": "^7.4.4",
"@babel/runtime": "^7.3.4", "@babel/runtime": "^7.4.4",
"autoprefixer": "^9.4.10", "autoprefixer": "^9.5.1",
"babel-loader": "^8.0.5", "babel-loader": "^8.0.6",
"browser-sync": "^2.24.6", "browser-sync": "^2.26.5",
"connect-modrewrite": "^0.10.2", "connect-modrewrite": "^0.10.2",
"css-mqpacker": "^7.0.0", "css-mqpacker": "^7.0.0",
"cssnano": "^4.1.10", "cssnano": "^4.1.10",
"del": "^3.0.0", "del": "^4.1.1",
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0", "eslint-config-standard": "^12.0.0",
"eslint-config-standard-preact": "^1.1.6", "eslint-config-standard-preact": "^1.1.6",
"eslint-plugin-import": "^2.16.0", "eslint-plugin-import": "^2.17.2",
"eslint-plugin-node": "^8.0.1", "eslint-plugin-node": "^9.0.1",
"eslint-plugin-promise": "^4.0.1", "eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0", "eslint-plugin-standard": "^4.0.0",
"glob": "^7.1.3", "glob": "^7.1.4",
"gulp": "^4.0.0", "gulp": "^4.0.2",
"gulp-cached": "^1.1.1", "gulp-cached": "^1.1.1",
"gulp-html-tag-include": "^1.0.1", "gulp-html-tag-include": "^1.0.1",
"gulp-htmlmin": "^5.0.1", "gulp-htmlmin": "^5.0.1",
...@@ -40,22 +42,22 @@ ...@@ -40,22 +42,22 @@
"gulp-rev": "^9.0.0", "gulp-rev": "^9.0.0",
"gulp-sourcemaps": "^2.6.5", "gulp-sourcemaps": "^2.6.5",
"http2": "^3.3.7", "http2": "^3.3.7",
"postcss": "^7.0.14", "postcss": "^7.0.16",
"postcss-browser-reporter": "^0.5.0", "postcss-browser-reporter": "^0.6.0",
"postcss-critical-split": "^2.5.1", "postcss-critical-split": "^2.5.3",
"postcss-custom-media": "^7.0.7", "postcss-custom-media": "^7.0.8",
"postcss-extend": "^1.0.5", "postcss-extend": "^1.0.5",
"postcss-import": "^12.0.1", "postcss-import": "^12.0.1",
"postcss-nested": "^4.1.2", "postcss-nested": "^4.1.2",
"postcss-preset-env": "^6.6.0", "postcss-preset-env": "^6.6.0",
"postcss-reporter": "^6.0.1", "postcss-reporter": "^6.0.1",
"precss": "^4.0.0", "precss": "^4.0.0",
"stylelint": "^9.10.1", "stylelint": "^10.0.1",
"stylelint-config-standard": "^18.2.0", "stylelint-config-standard": "^18.3.0",
"webpack": "^4.29.6", "webpack": "^4.31.0",
"webpack-bundle-analyzer": "^3.1.0", "webpack-bundle-analyzer": "^3.3.2",
"webpack-dev-middleware": "^3.6.1", "webpack-dev-middleware": "^3.6.2",
"webpack-hot-middleware": "^2.22.3", "webpack-hot-middleware": "^2.24.4",
"write-file-webpack-plugin": "^4.3.2" "write-file-webpack-plugin": "^4.3.2"
}, },
"dependencies": { "dependencies": {
......
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.
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-THF42F');</script> })(window,document,'script','dataLayer','GTM-THF42F');</script>
<script src="/wp-content/themes/biuro/js/main-63c39ea0.min.js" async></script> <script src="/wp-content/themes/biuro/js/main.min.js" async></script>
<?php wp_footer(); ?> <?php wp_footer(); ?>
</body> </body>
</html> </html>
...@@ -616,6 +616,33 @@ function template_include($template) { ...@@ -616,6 +616,33 @@ function template_include($template) {
} }
// Redirect to single job page by LIVAS Job ID
function livas_job_id_redirect() {
global $query_string;
wp_parse_str( $query_string, $searchQuery );
if ($searchQuery['name'] == 'livas-id' && is_numeric($searchQuery['page'])):
$jobs = pods( 'job', array(
'where' => 'livas-id.meta_value = "' . $searchQuery['page'] . '"',
'limit' => 1
));
if ( 0 < $jobs->total() ):
while ( $jobs->fetch() ) :
wp_redirect( get_post_permalink( $jobs->display( 'ID' ) ) );
die;
endwhile;
endif;
endif;
}
add_action( 'template_redirect', 'livas_job_id_redirect' );
$positionsPage = ''; $positionsPage = '';
$positionsQuery = new WP_Query( array( $positionsQuery = new WP_Query( array(
......
...@@ -23,16 +23,16 @@ ...@@ -23,16 +23,16 @@
?> ?>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<style><?php include 'css/core-c7abebb5d4.min.css'; ?></style> <style><?php include 'css/core.min.css'; ?></style>
<link rel="preload" href="/wp-content/themes/biuro/css/main-5c7f0fe5d1.min.css" as="style" onload="this.rel='stylesheet'"> <link rel="preload" href="/wp-content/themes/biuro/css/main.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/fonts/pt_sans_narrow.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/wp-content/themes/biuro/fonts/pt_sans_narrow.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/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/fonts/bebas-neue.woff2" as="font" type="font/woff2" crossorigin>
<noscript> <noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-5c7f0fe5d1.min.css"> <link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css">
</noscript> </noscript>
<?php wp_head(); ?> <?php wp_head(); ?>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment