Created
June 10, 2015 07:11
-
-
Save rali14/ef63da45cf8930046a32 to your computer and use it in GitHub Desktop.
Fix missing argument.
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; | |
$skills = wp_get_object_terms( $post->ID, 'resume_skill', array( 'fields' => 'names' ) ); | |
$education = get_post_meta( $post->ID, '_candidate_education', true ); | |
$experience = get_post_meta( $post->ID, '_candidate_experience', true ); | |
$info = jobify_theme_mod( 'resume-display-sidebar', 'jobify_listings_display_area'); | |
$has_local_info = $education || $experience; | |
$col_description = 'top' == $info ? '12' : ( $has_local_info ? '6' : '10' ); | |
$col_info = 'top' == $info ? '12' : ( 'side' == $info ? '4' : '4' ); | |
?> | |
<div class="single-resume-content row"> | |
<?php if ( resume_manager_user_can_view_resume( $post->ID ) ) : ?> | |
<?php do_action( 'single_resume_start' ); ?> | |
<?php locate_template( array( 'sidebar-single-resume-top.php' ), true, false ); ?> | |
<div class="resume_description col-md-<?php echo $col_description; ?> col-sm-12"> | |
<h2 class="job-overview-title"><?php _e( 'Description', 'jobify' ); ?></h2> | |
<?php echo apply_filters( 'the_resume_description', get_the_content() ); ?> | |
</div> | |
<?php if ( $has_local_info ) : ?> | |
<div class="resume-info col-md-<?php echo $col_info; ?> col-sm-8 col-xs-12"> | |
<?php if ( $education ) : ?> | |
<h2 class="job-overview-title"><?php _e( 'Education', 'jobify' ); ?></h2> | |
<dl class="resume-manager-education"> | |
<?php | |
foreach( $education as $item ) : ?> | |
<dt> | |
<h3><?php echo esc_html( $item['location'] ); ?></h3> | |
</dt> | |
<dd> | |
<small class="date"><?php echo esc_html( $item['date'] ); ?></small> | |
<strong class="qualification"><?php echo esc_html( $item['qualification'] ); ?></strong> | |
<?php echo wpautop( wptexturize( $item['notes'] ) ); ?> | |
</dd> | |
<?php endforeach; | |
?> | |
</dl> | |
<?php endif; ?> | |
<?php if ( $experience ) : ?> | |
<h2 class="job-overview-title"><?php _e( 'Experience', 'jobify' ); ?></h2> | |
<dl class="resume-manager-experience"> | |
<?php | |
foreach( $experience as $item ) : ?> | |
<dt> | |
<h3><?php echo esc_html( $item['employer'] ); ?></h3> | |
</dt> | |
<dd> | |
<small class="date"><?php echo esc_html( $item['date'] ); ?></small> | |
<strong class="job_title"><?php echo esc_html( $item['job_title'] ); ?></strong> | |
<?php echo wpautop( wptexturize( $item['notes'] ) ); ?> | |
</dd> | |
<?php endforeach; | |
?> | |
</dl> | |
<?php endif; ?> | |
</div> | |
<?php endif; ?> | |
<?php locate_template( array( 'sidebar-single-resume.php' ), true, false ); ?> | |
<?php do_action( 'single_resume_end' ); ?> | |
<?php else : ?> | |
<?php get_job_manager_template_part( 'access-denied', 'single-resume', 'resume_manager', RESUME_MANAGER_PLUGIN_DIR . '/templates/' ); ?> | |
<?php endif; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment