View job-submit.php
1 2 3 4 5 6 7 8 9
<?php
/**
* Job Submission Form
*/
if ( ! defined( 'ABSPATH' ) ) exit;
global $job_manager;
?>
<form action="<?php echo $action; ?>" method="post" id="submit-job-form" class="job-manager-form" enctype="multipart/form-data">
View gist:78ac7fc8f313e681bf74
1 2 3 4 5 6 7 8 9
<?php
$jmfe = WP_Job_Manager_Field_Editor_Fields::get_instance();
$job_fields = $jmfe->get_fields( 'job', 'custom' );
$company_fields = $jmfe->get_fields( 'company', 'custom' );
?>
View gist:2744c7b61231d670baf6
1 2 3 4 5 6 7
<?php
$some_field = get_job_field( 'some_meta_key' );
if( ! empty( $some_field ) ) {
echo "<h3>Some Field:</h3>";
echo $some_field;
}
?>
View gist:ccd02279117faaf365f9
1 2 3 4 5 6 7 8 9 10
if( ! function_exists( 'wp_date_format_php_to_js') ){
/**
* Convert a date format to a jQuery UI DatePicker format
*
* @param string $dateFormat a date format
*
* @return string
*/
function wp_date_format_php_to_js( $dateFormat ) {
View gist:1019f3ade7e1e6e0e97f
1 2 3 4 5 6 7 8 9 10
<?php
$sample_gallery_images = get_custom_field( 'sample_gallery_images' );
// If field value is empty don't output anything
if( ! empty( $sample_gallery_images ) && function_exists( 'job_manager_get_resized_image' ) ){
// If it's an array that means there are multiple images
if( is_array( $sample_gallery_images ) ){
foreach( $sample_gallery_images as $gallery_image ){
View phone.min.js
1
jQuery(function(a){a(".jmfe-phone").intlTelInput({ defaultCountry: "za" })});
View gist:4d2d84815689daa033be
1 2 3 4 5 6 7 8 9 10
<?php
$sample_gallery_images = get_custom_field( 'sample_gallery_images' );
// If field value is empty don't output anything
if( ! empty( $sample_gallery_images ) ){
// If it's an array that means there are multiple images
if( is_array( $sample_gallery_images ) ){
foreach( $sample_gallery_images as $gallery_image ){
// This outputs an image with a link to the image itself with a line break after each image
View gist:fe673a7dbf26bf5168b0
1 2 3 4 5 6 7 8 9 10
<?php
$huntfish_license = get_custom_field('huntfish_license');
if( (int) $huntfish_license === 1 ):
?>
 
<a href="" target="_blank"><img src="huntfish_license.png" /></a>
 
<?php
View gist:697c6c478f8824e3a31f
1
jQuery(function(a){a(".jmfe-phone").intlTelInput({ defaultCountry: "gb" })});
View gist:b2b55d5682b48b6e892d
1 2 3 4 5 6 7 8 9 10
<?php
$realisations = get_custom_field( 'candidate_realisation' );
if( ! empty( $realisations ) ){
foreach( $realisations as $realisation ){
echo '<img src="' . $realisation . '" class="_candidate_realisation" />';
}
}
?>
Something went wrong with that request. Please try again.