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
/*-----------------------------------------------------------------------------------*/ | |
/* Tabs Shortcodes | |
/*-----------------------------------------------------------------------------------*/ | |
$tabs_divs = ''; | |
function tabs_group($atts, $content = null ) { | |
global $tabs_divs; | |
$tabs_divs = ''; |
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 | |
/** | |
* Custom fields for Resume Manager | |
* | |
* @package PetSitter | |
* @since 1.4.0 | |
*/ | |
// Adding Gallery field to front-end |
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 | |
/** | |
* Resume Category | |
* | |
* @package PetSitter | |
* @since PetSitter 1.4.7 | |
*/ | |
get_header(); ?> |
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_filter( 'register_post_type_resume', 'post_type_resume', 10, 1 ); | |
function post_type_resume( $args ) { | |
$args[ 'exclude_from_search' ] = false; | |
return $args; | |
} |
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
/** For Comments (Blog & Resumes) **/ | |
add_filter('login_url','petsitter__custom_login_url'); | |
if(!function_exists('petsitter__custom_login_url')) { | |
function petsitter__custom_login_url($login_url) { | |
global $petsitter_data; | |
if(isset($petsitter_data['petsitter__job-manager-login-page'])) { | |
return get_permalink($petsitter_data['petsitter__job-manager-login-page']); | |
} |
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 Permalink | |
function change_job_listing_slug_name( $args ) { | |
$args['rewrite']['slug'] = _x( 'careers', 'Job permalink - resave permalinks after changing this', 'petsitter' ); | |
$args['labels']['name'] = _x( 'Careers', 'New Name for Jobs', 'petsitter' ); | |
$args['labels']['singular_name'] = _x( 'Career', 'New Singular Label for Job', 'petsitter' ); | |
$args['has_archive'] = _x( 'careers', 'Jobs Archieve permalink', 'petsitter' ); | |
return $args; | |
} | |
add_filter( 'register_post_type_job_listing', 'change_job_listing_slug_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
/* | |
* Add Jobs Column | |
*/ | |
function users_job_listings_column( $cols ) { | |
$cols['user_job_listings'] = __('Jobs', 'petsitter'); | |
return $cols; | |
} | |
/* | |
* Print Jobs Column Value |
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
function rocket_woo_single_4columns( $number ){ | |
return 4; | |
} | |
add_filter( 'woocommerce_product_thumbnails_columns', 'rocket_woo_single_4columns'); |
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 | |
add_filter( 'woocommerce_pagination_args', 'rocket_woo_pagination' ); | |
function rocket_woo_pagination( $args ) { | |
$args['prev_text'] = '<i class="fa fa-angle-left"></i>'; | |
$args['next_text'] = '<i class="fa fa-angle-right"></i>'; | |
return $args; | |
} |
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
function get_the_resume_ids( $post = null ) { | |
$post = get_post( $post ); | |
if ( $post->post_type !== 'resume' ) | |
return ''; | |
if ( ! get_option( 'resume_manager_enable_categories' ) ) | |
return ''; | |
$categories = wp_get_object_terms( $post->ID, 'resume_category', array( 'fields' => 'ids' ) ); |
OlderNewer