Commit db88f722 authored by Simonas's avatar Simonas

release 1.12.2 update

parent d1f224c6
......@@ -3,9 +3,11 @@
// $time_start = microtime(true);
function debug($arr) {
echo '<div style="position: fixed; top: 0; left: 0; border: 1px solid red; padding: 25px; background: #fff; z-index: 99999; height: 100vh; overflow-y: auto;" >';
echo '<pre>';
print_r( $arr );
echo '</pre>';
echo '</div>';
}
function delog($str, $label = 'Label') {
......
......@@ -257,6 +257,8 @@ get_header();
?> </div>
<?php
if (!$pod->field( 'hide-salary' )):
echo '<b>' . __('Salary', 'biuro') . ':</b> ';
if ($pod->field( 'salary_from' ) > 0):
......@@ -270,6 +272,8 @@ get_header();
_e('(neto)', 'biuro');
endif;
endif;
endif;
if ( is_active_sidebar( 'hiring_organization' ) ) :
......
......@@ -18,11 +18,10 @@
return false;
endif;
if ($childID == $ID):
return true;
endif;
return ($childID == $ID) ? true : false;
return ( get_post_meta( $childID, 'page', true ) == "employees-contacts" && pods( 'division' )->find( array( 'limit' => 1, 'where'=>"page-id.ID = " . $ID ) )->total() ) ? true : false;
// used to be used for Contacts sub pages
// return ( get_post_meta( $childID, 'page', true ) == "employees-contacts" && pods( 'division' )->find( array( 'limit' => 1, 'where'=>"page-id.ID = " . $ID ) )->total() ) ? true : false;
}
foreach( $menu_items as $menu_item ):
......
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