This file contains hidden or 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 | |
| add_filter( 'job_manager_field_editor_phone_args', 'my_custom_phone_args' ); | |
| function my_custom_phone_args( $args ){ | |
| // Other available arguments, see GitHub for details | |
| // https://github.com/Bluefieldscom/intl-tel-input#options | |
| // | |
| // $args['allowExtensions'] = 'false'; | |
| // $args['autoFormat'] = 'true'; |
This file contains hidden or 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 packages in Field Editor format | |
| * | |
| * | |
| * @since 1.2.2 | |
| * | |
| * @param bool $as_array | |
| * | |
| * @return array|string | |
| */ |
This file contains hidden or 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 | |
| $company_description = get_company_field( 'company_description' ); | |
| if( $company_description ): | |
| ?> | |
| <h4><?php _e( 'About Us', 'petsitter' ); ?></h4> | |
| <?php | |
| echo $company_description; | |
| endif; | |
| ?> |
This file contains hidden or 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 | |
| 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>'; |
This file contains hidden or 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 | |
| $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>"; | |
| } |
This file contains hidden or 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 | |
| /** | |
| * 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"> |
This file contains hidden or 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 | |
| $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 { |
This file contains hidden or 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 | |
| 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; |
This file contains hidden or 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
| # 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 | |
| # |
This file contains hidden or 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 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>' ); ?> |