View gist:dc063f2d3101f0d5388c
1 2 3
<?php
$facebook_url = get_custom_field('fb_lbox_custom');
if( $facebook_url ) echo do_shortcode( '[easy-fb-like-box url="' . $facebook_url . '" width="370" height="430" theme="light" faces="true" header="false" posts="true" border="false"]' );
View functions.php
1 2 3 4 5 6 7 8 9 10
add_filter( 'submit_job_form_fields', 'heynwa_custom_job_fields', 999999999999 );
function heynwa_custom_job_fields( $fields ) {
if ( isset( $fields[ 'company' ][ 'products' ] ) ){
if( isset( $fields['company']['products']['options'] ) && ! empty( $fields['company']['products']['options'] ) ){
$options = $fields['company']['products']['options'];
// To find out the specific ID of the "products" you can either add &debug to the end of the URL when viewing the company fields
View gist:b61c1cf65103daf7cdca
1 2 3 4
// Because get_object_terms filter was not included until WP 4.2+ we have to use wp_get_object_terms for backwards compatibility.
// Unfortunately this means taxonomies are passed like this: ( 'resume_category', 'resume_skill' ), so we have to remove the quotes,
// and then use explode to convert it into an array of taxonomies.
$tax_array = explode( ", ", str_replace( "'", "", $taxonomies ) );
View content-job_listing.php
1 2 3 4 5 6 7 8 9 10
<?php global $post; ?>
<li <?php job_listing_class(); ?> data-longitude="<?php echo esc_attr( $post->geolocation_lat ); ?>" data-latitude="<?php echo esc_attr( $post->geolocation_long ); ?>">
<a href="<?php the_job_permalink(); ?>">
<?php the_company_logo(); ?>
<div class="position">
<!-- This is the Job Title -->
<h3><?php the_title(); ?></h3>
<div class="company">
<?php the_company_name( '<strong>', '</strong> ' ); ?>
<?php the_company_tagline( '<span class="tagline">', '</span>' ); ?>
View railgun.conf
1 2 3 4 5 6 7 8 9 10
# Port to listen on
wan.port = 2408
 
# Static map of IPs for use in NAT environments
map.file = /etc/railgun/railgun-nat.conf
stderr.file = /var/log/railgun/panic.log
pid.file = /var/run/railgun/railgun.pid
 
# Log only errors by default
#
View gist:d9a0c34faa08bfda1bfa
1 2 3 4 5 6 7 8 9 10
<?php
add_filter( 'resume_manager_resume_education_fields', 'my_custom_remove_education_field_admin' );
add_filter( 'submit_resume_form_fields', 'my_custom_remove_education_field_frontend' );
function my_custom_remove_education_field_admin( $fields ){
unset( $fields['qualification'] );
return $fields;
View gist:8dd22c6a3b7472ec3461
1 2 3 4 5 6 7 8 9 10
<?php
$twitter_username = get_custom_field('company_twitter');
if( ! empty( $twitter_username ) ) {
$clean_twitter = sanitize_text_field( $twitter_username );
// Check for http: or https: in $clean_twitter
if ( $clean_twitter && ! strstr( $clean_twitter, 'http:' ) && ! strstr( $clean_twitter, 'https:' ) ) {
// Check if twitter.com is not in string (means they used username only)
if( ! strstr( $clean_twitter, 'twitter.com' ) ){
$clean_twitter = "https://twitter.com/{$clean_twitter}";
} else {
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 esc_url( $action ); ?>" method="post" id="submit-job-form" class="job-manager-form" enctype="multipart/form-data">
View gist:c8e536f544dfce0ca008
1 2 3 4 5
<?php
$shop_url = get_custom_field( 'shop_url' );
if( ! empty( $shop_url ) ){
echo "<a href=\"" . esc_url( $shop_url ) . "\" target=\"_blank\"><img src=\"//domain.com/banners/gotoshop.jpg\"></a>";
}
View gist:b247f29301907c0f18d1
1 2 3 4 5 6 7 8 9 10
<?php
function custom_listify_single_job_listing_actions_after() {
global $post;
$url = get_post_meta( $post->ID, '_company_website', true );
$offerta_url = get_post_meta( $post->ID, '_company_offerta', true );
if( $offerta_url ) echo "<a href=\"" . esc_url( $url ) . "\" class=\"button\" target=\"_blank\">VAI ALL 'OFFERTA</a>";
echo '<a href="' . esc_url( $url ) . '" class="button" target="_blank">Vai al sito</a>';
Something went wrong with that request. Please try again.