Commit 3693878b authored by Simonas's avatar Simonas

Theme development in progress

parent f4544b35
...@@ -12,8 +12,8 @@ DB_USERNAME=dev_user ...@@ -12,8 +12,8 @@ DB_USERNAME=dev_user
DB_PASSWORD=Y6V6bFkD6@GyD!wTShgFmWz! DB_PASSWORD=Y6V6bFkD6@GyD!wTShgFmWz!
DB_ROOT_PASSWORD=q@z!z29AO5rpzMjsDhjnFKyF DB_ROOT_PASSWORD=q@z!z29AO5rpzMjsDhjnFKyF
UID=1000 UID=33
GID=1000 GID=33
NGINX_NAME_LT=dev.biuro.lt NGINX_NAME_LT=dev.biuro.lt
NGINX_NAME_LV=dev.biuro.lv NGINX_NAME_LV=dev.biuro.lv
......
...@@ -113,9 +113,9 @@ Restart docker (sometimes PC restart may be required) ...@@ -113,9 +113,9 @@ Restart docker (sometimes PC restart may be required)
- docker load --input ourdemo.tar - docker load --input ourdemo.tar
- docker build -t simoncereska/biuro-staging:0.0.6 . - docker build -t simoncereska/biuro-staging:0.0.7 .
- docker login --username=simoncereska --password=rlgjsPeOuF2T6VgW8fGss81h - docker login --username=simoncereska --password=rlgjsPeOuF2T6VgW8fGss81h
- docker push simoncereska/biuro-staging:0.0.6 - docker push simoncereska/biuro-staging:0.0.7
- sudo chown -R www-data:www-data wordpress/wp-content/plugins - sudo chown -R www-data:www-data wordpress/wp-content/plugins
......
This diff is collapsed.
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# 301 biuro.ee redirects # 301 biuro.ee redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
rewrite ^/toeoepakkumised$ / permanent; # rewrite ^/toeoepakkumised$ / permanent;
rewrite ^/toeoepakkumised/(.*)$ /? permanent; # rewrite ^/toeoepakkumised/(.*)$ /? permanent;
# Biuro SEO issues # Biuro SEO issues
# https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=0 # https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=0
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# 301 biuro.lt redirects # 301 biuro.lt redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
rewrite ^/darbo-pasiulymai$ / permanent; # rewrite ^/darbo-pasiulymai$ / permanent;
rewrite ^/darbo-pasiulymai/(.*)$ /? permanent; # rewrite ^/darbo-pasiulymai/(.*)$ /? permanent;
rewrite ^/employers/staf-search-and-selection-in-lithuania/?$ /employers/staff-search-and-selection-in-lithuania/ permanent; rewrite ^/employers/staf-search-and-selection-in-lithuania/?$ /employers/staff-search-and-selection-in-lithuania/ permanent;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# 301 biuro.lv redirects # 301 biuro.lv redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
rewrite ^/darba-piedavajumi$ / permanent; # rewrite ^/darba-piedavajumi$ / permanent;
rewrite ^/darba-piedavajumi/(.*)$ /? permanent; # rewrite ^/darba-piedavajumi/(.*)$ /? permanent;
# Biuro SEO issues # Biuro SEO issues
# https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=0 # https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=0
......
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
/** { border: 1px solid #000; }*/ /** { border: 1px solid #000; }*/
.l-content { box-shadow: inset 0 0 0 1px green; } /*.l-content { box-shadow: inset 0 0 0 1px green; }*/
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
h4 { margin: 0; padding: 0; } h4 { margin: 0; padding: 0; }
} }
.l-footer { padding-bottom: 100px; box-shadow: inset 0 0 0 1px #f00; } .l-footer { padding-bottom: 100px; box-shadow: inset 0 0 0 1px #666; }
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
/* critical:end */ /* critical:end */
.l-header { box-shadow: inset 0 0 0 1px orange; } /*.l-header { box-shadow: inset 0 0 0 1px orange; }*/
:root{--color--gray:#4d4d4d;--color--green:#006957;--typo--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Light","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--typo--font-size:1.8rem;--typo--weight-slim:100;--typo--weight-regular:400;--typo--weight-bold:600;--typo--line-height:1.2;--typo--font-face:"PT Sans Narrow",sans-serif;--typo--font-face-additional:"Bebas Neue",sans-serif;--layout-width:63em}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}a,body{color:#4d4d4d;color:var(--color--gray)}body{font-size:1.8rem;font-size:var(--typo--font-size);line-height:1.2;line-height:var(--typo--line-height)}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{padding-top:15px;padding-bottom:15px}.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}.c-jobs-list{width:100%;margin:0 0 20px}.c-jobs-list--head{padding:10px}.c-jobs-list--col{padding:0 10px}.c-logo--svg{display:block}.c-nav--sub,.u-hidden{display:none}@media (min-width:48em){:root{--typo--font-size:1.6rem;--typo--line-height:1.3}body{font-family:PT Sans Narrow,sans-serif;font-family:var(--typo--font-face)}.l-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.l-content,.l-header{display:-webkit-box;display:-ms-flexbox;display:flex}.l-aside{-webkit-box-flex:0;-ms-flex:0 0 16.25em;flex:0 0 16.25em}.l-main,.l-nav{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%}.c-nav--main{display:-webkit-box;display:-ms-flexbox;display:flex;padding-left:2em}}@media (max-width:47.999em){body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI Light,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-family:var(--typo--font-family);letter-spacing:-.08rem}}@media (min-width:30em){.c-jobs-list--col{padding:10px}}@media (max-width:29.999em){.c-jobs-list--col-position{padding-top:10px}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
...@@ -37,3 +37,8 @@ qa-: Signify that a QA or Test Engineering team is running an automated UI test ...@@ -37,3 +37,8 @@ qa-: Signify that a QA or Test Engineering team is running an automated UI test
/* critical:start */ /* critical:start */
/** { border: 1px solid #000; }*/ /** { border: 1px solid #000; }*/
/* critical:end */ /* critical:end */
.tmp-contacts {
img { display: none; }
ul { padding-left: 5px }
}
This diff is collapsed.
This diff is collapsed.
...@@ -21,30 +21,45 @@ ...@@ -21,30 +21,45 @@
endif; endif;
?> ?>
<br>
<br>
<div class="l-footer--inner"> <div class="l-footer--inner">
<div class="l-footer--section"> <div class="l-footer--section">
<ul class="o-nav"> <?php
<li><a href="https://dev.biuro.lt/personalo-nuomos-paslaugos/idarbinimo-agentura/" title="Įdarbinimo agentūra" class=" ">Apie įdarbinimo agentūrą</a></li> get_template_part( 'template-parts/menus/menu', 'employees' );
<li><a href="https://dev.biuro.lt/personalo-nuomos-paslaugos/darbuotoju-paieska-ir-atranka/" title="Darbuotojų paieška ir atranka" class=" ">Tarptautinis tinklas</a></li> ?>
<li><a href="https://dev.biuro.lt/personalo-nuomos-paslaugos/naryste-lietuvoje/" title="Narystė lietuvoje" class=" ">Narystė lietuvoje</a></li>
<li><a href="https://dev.biuro.lt/personalo-nuomos-paslaugos/etikos-kodeksas/" title="Etikos kodeksas" class=" ">Etikos kodeksas</a></li>
<li><a href="https://dev.biuro.lt/personalo-nuomos-paslaugos/antikorupcines-priemones/" title="Antikorupcinės priemonės" class=" ">Antikorupcinės priemonės</a></li>
</ul>
</div> </div>
<div class="l-footer--section"> <div class="l-footer--section">
<?php <?php
get_template_part( 'template-parts/menus/menu', 'region' ); get_template_part( 'template-parts/menus/menu', 'employers' );
?> ?>
</div> </div>
<div class="l-footer--section"> <div class="l-footer--section">
<div class="c-share"> <?php
get_template_part( 'template-parts/menus/menu', 'about' );
?>
</div>
<div class="l-footer--section">
<?php
get_template_part( 'template-parts/menus/menu', 'region' );
?>
</div>
</div><!-- inner -->
<div class="u-align--center">
<br>
<br>
&copy; <strong>2012-<?php echo date('Y'); ?> BIURO.</strong>
&nbsp;
&nbsp;
&nbsp;
<?php <?php
$social = get_option('wpseo_social'); $social = get_option('wpseo_social');
if ($social['facebook_site']) : 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> <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>
<br>
<?php <?php
endif; endif;
...@@ -55,11 +70,6 @@ ...@@ -55,11 +70,6 @@
endif; endif;
?> ?>
</div> </div>
</div>
</div><!-- inner -->
<div class="c-copy">&copy; <strong>2012-<?php echo date('Y'); ?> BIURO.</strong></div>
</footer><!-- .l-footer --> </footer><!-- .l-footer -->
...@@ -81,6 +91,6 @@ ...@@ -81,6 +91,6 @@
endif; endif;
?> ?>
<script src="/wp-content/themes/biuro/js/main.min.js" async></script> <script src="/wp-content/themes/biuro/js/main-32abb748.min.js" async></script>
</body> </body>
</html> </html>
...@@ -15,6 +15,18 @@ ...@@ -15,6 +15,18 @@
get_header(); get_header();
?> ?>
<?php
while ( have_posts() ) :
the_post();
the_content();
endwhile;
?>
<br>
<h2>Paskutiniai darbo skelbimai</h2>
<?php <?php
// Use for search // Use for search
// https://pods.io/docs/code/pods/find/ // https://pods.io/docs/code/pods/find/
...@@ -25,7 +37,7 @@ ...@@ -25,7 +37,7 @@
$params = array( $params = array(
'orderby' => 'date DESC', 'orderby' => 'date DESC',
'where' => $where, 'where' => $where,
'limit' => 21 'limit' => 5
); );
$jobs = pods( 'job', $params ); $jobs = pods( 'job', $params );
...@@ -41,5 +53,7 @@ ...@@ -41,5 +53,7 @@
endif; endif;
?> ?>
<br>
<br>
<?php get_footer(); <?php get_footer();
...@@ -219,6 +219,9 @@ function init_biuro_theme() { ...@@ -219,6 +219,9 @@ function init_biuro_theme() {
register_nav_menus( register_nav_menus(
array( array(
'main-menu' => 'Main menu', 'main-menu' => 'Main menu',
'employees-menu' => 'Employees menu' ,
'employers-menu' => 'Employers menu' ,
'about-menu' => 'About menu' ,
'region-menu' => 'Region menu' 'region-menu' => 'Region menu'
) )
); );
......
...@@ -31,16 +31,16 @@ define('cityID', $cityID); ...@@ -31,16 +31,16 @@ define('cityID', $cityID);
get_template_part( 'template-parts/meta/canonical'); get_template_part( 'template-parts/meta/canonical');
?> ?>
<style><?php include 'css/core.min.css'; ?></style> <style><?php include 'css/core-359d5e2ce6.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-371095c0c7.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.min.css"> <link rel="stylesheet" href="/wp-content/themes/biuro/css/main-371095c0c7.min.css">
</noscript> </noscript>
<?php wp_head(); ?> <?php wp_head(); ?>
...@@ -82,4 +82,15 @@ define('cityID', $cityID); ...@@ -82,4 +82,15 @@ define('cityID', $cityID);
</div> </div>
<div id="main" class="l-content"> <div id="main" class="l-content">
<?php
if ( !is_front_page() && get_post_type() == 'page' && get_page_template_slug() == 'page-jobs.php'):
?>
<aside class="l-aside">
<?php
get_template_part( 'template-parts/layout/aside', 'job-list' );
?>
</aside><!-- .l-aside -->
<?php
endif;
?>
<main id="content" class="l-main"> <main id="content" class="l-main">
!function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(n){return e[n]}.bind(null,i));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=0)}([function(e,n,t){e.exports=t(1)},function(e,n,t){var o;!function(e){var n=document.getElementById("cookie-warning"),t=document.getElementById("cookie-agree"),o=document.getElementById("cookie-close"),i=!!r()&&localStorage.getItem("biuro-agree");function r(){try{return localStorage.setItem("a","a"),localStorage.removeItem("a"),!0}catch(e){return!1}}n&&t&&o&&!i&&(n.style.display="block",t.addEventListener("click",function(){r()&&localStorage.setItem("biuro-agree","true"),n.style.display="none"}),o.addEventListener("click",function(){n.style.display="none"}))}(window),window,(o=document.getElementById("js-divisions-map"))&&fetch("/wp-json/biuro-api/v1/divisions?lang="+o.dataset.lang).then(function(e){return e.json()}).then(function(e){!function e(n,t){if(window.google){var o=new window.google.maps.Map(n,{mapTypeId:window.google.maps.MapTypeId.ROADMAP});window.google.maps.event.addListenerOnce(o,"bounds_changed",function(){this.getZoom()>15&&this.setZoom(14)});var i=[],r=document.querySelector(".js-active-region"),a=r&&r.dataset.id?r.dataset.id:"";t[a]?i=t[a]:Object.keys(t).forEach(function(e){var n=t[e];"city"===e.substr(0,4)&&(i=i.concat(n))}),function(e,n){for(var t,o=new window.google.maps.LatLngBounds,i=0;i<n.length;i++){var r=n[i],a=new window.google.maps.LatLng(r.lat,r.lng),c=new window.google.maps.Marker({position:a,map:e,icon:"/wp-content/themes/biuro/i/maps/pin.png",title:r.title});o.extend(a),c.content=r.content,window.google.maps.event.addListener(c,"click",function(){t&&t.close(),(t=new window.google.maps.InfoWindow({content:this.content})).open(e,this)})}e.fitBounds(o)}(o,i.filter(function(e){return e.lat&&e.lng}))}else setTimeout(function(){e(n,t)},250)}(o,e)})}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -35,7 +35,6 @@ get_header(); ...@@ -35,7 +35,6 @@ get_header();
*/ */
?> ?>
<div id="custom">
<?php <?php
while ( have_posts() ) : while ( have_posts() ) :
...@@ -50,7 +49,11 @@ get_header(); ...@@ -50,7 +49,11 @@ get_header();
endwhile; endwhile;
?> ?>
</div><!-- #custom -->
<div style="overflow: hidden; margin-bottom: 2rem;">
<button style="float: left; text-align: center; color: #fff; background: #006957; padding: 10px; width: 48%; border: 0; border-radius: 3px; cursor: pointer; ">Kandidatuoti</button>
<button style="float: right; text-align: center; color: #000; background: #ccc; padding: 10px; width: 48%; border: 0; border-radius: 3px; cursor: pointer;">Dalintis</button>
</div>
<?php get_footer(); <?php get_footer();
......
...@@ -42,16 +42,17 @@ global $jobs; ...@@ -42,16 +42,17 @@ global $jobs;
<?php <?php
endwhile; endwhile;
?> ?>
</table> </table>
<?php <?php
if ( !is_front_page() ):
echo $jobs->pagination( array( echo $jobs->pagination( array(
'type' => 'paginate' , 'type' => 'paginate' ,
'prev_text' => '‹ ' . pll__('Previous'), 'prev_text' => '‹ ' . pll__('Previous'),
'next_text' => pll__('Next') . ' ›' 'next_text' => pll__('Next') . ' ›'
) ); ) );
endif;
?> ?>
<h3>Miestas</h3>
<div style="border: 1px solid #666;">
<?php
getSiteTree( 'city' );
?>
</div>
<h3>Sritis</h3>
<div style="border: 1px solid #666;">
<?php
getSiteTree( 'field' );
?>
</div>
<h3>Tipas</h3>
<div style="border: 1px solid #666;">
<?php
getSiteTree( 'type' );
?>
</div>
<?php
/*
getSiteTree( 'company' );
*/
?>
<?php <?php
getSiteTree( 'city' ); $jobID = get_the_ID();
?> ?>
<br> <br>
<br> <br>
<!-- <h3>Job: <?php echo $jobID; ?></h3> -->
<?php <div>
getSiteTree( 'field' ); <button style="display: block; text-align: center; color: #fff; background: #006957; padding: 10px; width: 100%; border: 0; border-radius: 3px; cursor: pointer;">Kandidatuoti</button>
?> </div>
<div class="tmp-contacts">
<?php <?php
/* // $page = get_page( $jobID );
getSiteTree( 'company' );
*/ // debug( $page );
$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 "%' . searchQuery . '%" OR t.post_content LIKE "%' . searchQuery . '%")';
$params = array(
'where' => 't.id=' . $jobID,
'limit' => 1
);
$contacts = pods( 'job', $params );
while ( $contacts->fetch() ) :
echo $contacts->display( 'contact' );
endwhile;
?> ?>
</div>
<?php
/*
<h4><?php pll_e('about'); ?>:</h4>
*/
?>
<?php
$menu = 'about-menu';
$about = '';
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu ] ) ) {
$o = wp_get_nav_menu_object( $locations[ $menu ] );
echo '<h4>' . $o->name . '</h4>';
if ( $o ) {
$items = wp_get_nav_menu_items($o->term_id);
$about .= '<ul class="o-nav c-nav--about">';
foreach( $items as $item ) {
$title = $item->title;
$url = $item->url;
$about .= '<li><a class="act" href="' . $url . '" title="' . $title . '">' . $title . '</a></li>';
}
$about .= '</ul>';
}
}
echo $about;
?>
<?php
/*
<h4><?php pll_e('employees'); ?>:</h4>
*/
?>
<?php
$menu = 'employees-menu';
$employees = '';
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu ] ) ) {
$o = wp_get_nav_menu_object( $locations[ $menu ] );
echo '<h4>' . $o->name . '</h4>';
if ( $o ) {
$items = wp_get_nav_menu_items($o->term_id);
$employees .= '<ul class="o-nav c-nav--employees">';
foreach( $items as $item ) {
$title = $item->title;
$url = $item->url;
$employees .= '<li><a class="act" href="' . $url . '" title="' . $title . '">' . $title . '</a></li>';
}
$employees .= '</ul>';
}
}
echo $employees;
?>
<?php
/*
<h4><?php pll_e('employers'); ?>:</h4>
*/
?>
<?php
$menu = 'employers-menu';
$employers = '';
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu ] ) ) {
$o = wp_get_nav_menu_object( $locations[ $menu ] );
echo '<h4>' . $o->name . '</h4>';
if ( $o ) {
$items = wp_get_nav_menu_items($o->term_id);
$employers .= '<ul class="o-nav c-nav--employers">';
foreach( $items as $item ) {
$title = $item->title;
$url = $item->url;
$employers .= '<li><a class="act" href="' . $url . '" title="' . $title . '">' . $title . '</a></li>';
}
$employers .= '</ul>';
}
}
echo $employers;
?>
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu ] ) ) { if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu ] ) ) {
$o = wp_get_nav_menu_object( $locations[ $menu ] ); $o = wp_get_nav_menu_object( $locations[ $menu ] );
if ($o) { echo '<h4>' . $o->name . '</h4>';
if ( $o ) {
$items = wp_get_nav_menu_items($o->term_id); $items = wp_get_nav_menu_items($o->term_id);
$region .= '<ul class="o-nav c-nav--region">'; $region .= '<ul class="o-nav c-nav--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