This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$configData = "system_date='2014/11/13' | |
system_time='14:40:15' | |
system_ntp='192.168.150.48' | |
system_daylight_enable='1' | |
system_updateinterval='3600' | |
" | |
$regex = [regex]("(\w+)(?=='(.*)')") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function(a){a(".jmfe-date-picker").each(function(){a(this).datepicker({dateFormat:jmfe_date_field.date_format,monthNames:jmfe_date_field.monthNames,monthNamesShort:jmfe_date_field.monthNamesShort,dayNames:jmfe_date_field.dayNames,dayNamesShort:jmfe_date_field.dayNamesShort,dayNamesMin:jmfe_date_field.dayNamesMin})})}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add your own function to filter the fields | |
add_filter( 'submit_resume_form_fields', 'custom_submit_resume_form_fields' ); | |
// This is your function which takes the fields, modifies them, and returns them | |
// You can see the fields which can be changed here: https://github.com/mikejolley/WP-Job-Manager/blob/master/includes/forms/class-wp-job-manager-form-submit-job.php | |
function custom_submit_resume_form_fields( $fields ) { | |
// Here we target one of the job fields (job_title) and change it's label | |
$fields['resume_fields']['candidate_experience']['employer']['label'] = "Organization/Employer"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the custom field taxonomy selected term ID's | |
$field_value = get_custom_field("outsourcing_partial_type"); | |
if ( is_array( $field_value ) ) { | |
foreach ( $field_value as $selected_value ) { | |
$tax = get_term_by( 'id', (int) $selected_value, "outsourcing_partial_type" ); | |
// Set the name of the taxonomy an an item in a new array | |
$tax_labels[] = $tax->name; | |
// Or you could just output it in this for loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change job_listing_meta_end to job_listing_meta_start to output at start | |
add_action( 'job_listing_meta_end', 'add_salary_to_job_listing' ); | |
function add_salary_to_job_listing(){ | |
// Assuming the meta key is job_salary | |
$field_value = get_job_field( 'job_salary' ); | |
echo "<li>Salary: " . $field_value . "</li>"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="single_job_listing" itemscope itemtype="http://schema.org/JobPosting"> | |
<meta itemprop="title" content="<?php echo esc_attr( $post->post_title ); ?>" /> | |
<?php if ( $post->post_status == 'expired' ) : ?> | |
<div class="job-manager-info"><?php _e( 'This listing has expired', 'wp-job-manager' ); ?></div> | |
<?php else : ?> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$date = "15-01-28"; | |
$timestamp = strtotime( $date ); | |
// See http://php.net/manual/en/function.date.php for available formats | |
echo date( "F j, Y", $timestamp ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$categories = get_the_terms( get_the_ID(), 'job_listing_category' ); | |
foreach ( $categories as $category ){ | |
echo $category->name; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Start UL (Unordered List) | |
echo "<ul>"; | |
// Get the field value | |
$amenities = get_custom_field( 'job_amentities' ); | |
// Make sure there is a value | |
if( ! empty( $amentities ) ){ | |
// An Array would be multiple selections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$realisations = get_custom_field( 'candidate_realisation' ); | |
if( ! empty( $realisations ) ){ | |
foreach( $realisations as $realisation ){ | |
echo '<img src="' . $realisation . '" class="_candidate_realisation" />'; | |
} | |
} | |
?> |