if ( is_array( $this -> candidates ) and count( $this -> candidates ) ):
foreach ( $this -> candidates as $candidate_id ):
$candidate = \front\factory\GlobelusUser::user_details( $candidate_id );
?>
if ( $candidate['highlight'] ):?>
Kandydat wyróżniony
endif;?>
if ( file_exists( \front\factory\GlobelusCandidates::avatar_url( $candidate['id'] ) ) ):?>
;?>)
else:?>

endif;?>
= $lang['plec'];?>:
if ( $candidate['sex'] == '1' )
echo $lang['mezczyzna'];
else if ( $candidate['sex'] == '0' )
echo $lang['kobieta'];
else
echo '-';
?>
if ( $candidate['date_of_birth'] and $candidate['date_of_birth'] != '1970-01-01' ):?>
, = $lang['wiek'];?>: = $age = \S::date_diff( $candidate['date_of_birth'], date( 'Y-m-d H:i:s' ), 60 * 60 * 24 * 365.25 );?> = \front\factory\Globelus::age_word_translations( $age );?>
endif;?>
if ( is_array( $candidate['positions'] ) and count( $candidate['positions'] ) ):
echo '
Chętnie podejmę pracę na stanowisku:
';
foreach ( $candidate['positions'] as $position ):
if ( !$position['id_position'] )
continue;
echo ' ● ' . \front\factory\Globelus::position_name( $position['id_position'] ) . ''; if ( $position['experience'] ) echo ' - ' . $lang['moj-staz-na-tym-stanowisku'] . ' ' . $this -> positions_experience[ $position['experience'] ];
if ( $position != end( $candidate['positions'] ) )
echo '
';
endforeach;
echo '
';
endif;
?>
= $candidate['sex'] ? $lang['ostatnio-szukal-pracy'] : $lang['ostatnio-szukala-pracy'];?>: = $candidate['last_refresh'] ? date( 'Y-m-d', strtotime( $candidate['last_refresh'] ) ) : date( 'Y-m-d', strtotime( $candidate['register_date'] ) );?>
= $advert['short_text'];?>
= $lang['profil-kandydata'];?>