Commit db88f722 authored by Simonas's avatar Simonas

release 1.12.2 update

parent d1f224c6
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
// $time_start = microtime(true); // $time_start = microtime(true);
function debug($arr) { 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>'; echo '<pre>';
print_r( $arr ); print_r( $arr );
echo '</pre>'; echo '</pre>';
echo '</div>';
} }
function delog($str, $label = 'Label') { function delog($str, $label = 'Label') {
......
...@@ -257,17 +257,21 @@ get_header(); ...@@ -257,17 +257,21 @@ get_header();
?> </div> ?> </div>
<?php <?php
echo '<b>' . __('Salary', 'biuro') . ':</b> '; if (!$pod->field( 'hide-salary' )):
if ($pod->field( 'salary_from' ) > 0): echo '<b>' . __('Salary', 'biuro') . ':</b> ';
echo __('from', 'biuro') . ' ' . $pod->field( 'salary_from' ) . ' ';
endif;
if ($pod->field( 'salary_to' ) > 0): if ($pod->field( 'salary_from' ) > 0):
echo __('to', 'biuro') . ' ' . $pod->field( 'salary_to' ) . ' '; echo __('from', 'biuro') . ' ' . $pod->field( 'salary_from' ) . ' ';
endif; endif;
_e('(neto)', 'biuro'); if ($pod->field( 'salary_to' ) > 0):
echo __('to', 'biuro') . ' ' . $pod->field( 'salary_to' ) . ' ';
endif;
_e('(neto)', 'biuro');
endif;
endif; endif;
endif; endif;
......
...@@ -18,11 +18,10 @@ ...@@ -18,11 +18,10 @@
return false; return false;
endif; endif;
if ($childID == $ID): return ($childID == $ID) ? true : false;
return true;
endif;
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 ): 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