/**
  * Registers widgets, and widget areas.
  *
  * @since Jobify 1.0
  *
  * @return void
  */
 function widgets_init()
 {
     $widgets = array('class-widget-resumes-map.php', 'class-widget-resumes-recent.php', 'class-widget-resume-links.php', 'class-widget-resume-categories.php', 'class-widget-resume-skills.php', 'class-widget-resume-file.php');
     foreach ($widgets as $widget) {
         require_once get_template_directory() . '/inc/integrations/wp-resume-manager/widgets/' . $widget;
     }
     register_widget('Jobify_Widget_Resumes');
     register_widget('Jobify_Widget_Resumes_Map');
     register_widget('Jobify_Widget_Resume_Links');
     register_widget('Jobify_Widget_Resume_Categories');
     if (get_option('resume_manager_enable_skills')) {
         register_widget('Jobify_Widget_Resume_Skills');
     }
     if (get_option('resume_manager_enable_resume_upload')) {
         register_widget('Jobify_Widget_Resume_File');
     }
     if ('side' == jobify_theme_mod('jobify_listings', 'jobify_listings_display_area')) {
         register_sidebar(array('name' => __('Resume Page Sidebar', 'jobify'), 'id' => 'sidebar-single-resume', 'description' => __('Choose what should display on single resume listings.', 'jobify'), 'before_widget' => '<aside id="%1$s" class="job_listing-widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="job_listing-widget-title">', 'after_title' => '</h3>'));
     } else {
         $columns = jobify_theme_mod('jobify_listings', 'jobify_listings_topbar_columns');
         for ($i = 1; $i <= $columns; $i++) {
             register_sidebar(array('name' => sprintf(__('Resume Info Column %s', 'jobify'), $i), 'id' => sprintf('single-resume-top-%s', $i), 'description' => sprintf(__('Choose what should display on resume listings column #%s.', 'jobify'), $i), 'before_widget' => '<aside id="%1$s" class="job_listing-widget-top %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="resume-widget-title-top">', 'after_title' => '</h3>'));
         }
     }
 }
 public function enqueue_scripts()
 {
     if (!$this->page_needs_map()) {
         return;
     }
     wp_enqueue_script('google-maps', '//maps.googleapis.com/maps/api/js?v=3&libraries=geometry,places');
     wp_enqueue_script('jobify-job-manager-map', get_template_directory_uri() . '/inc/integrations/wp-job-manager/js/wp-job-manager-map.min.js', array('jquery', 'google-maps', 'underscore', 'wp-job-manager-ajax-filters'));
     $settings = array('useClusters' => jobify_theme_mod('map', 'clusters'), 'autoFit' => jobify_theme_mod('map', 'autofit'), 'gridSize' => jobify_theme_mod('map', 'grid-size'), 'mapOptions' => array('zoom' => jobify_theme_mod('map', 'zoom'), 'maxZoom' => jobify_theme_mod('map', 'max-zoom')), 'title' => __('%d Items Found', 'jobify'));
     if ('' != ($center = jobify_theme_mod('map', 'center'))) {
         $settings['mapOptions']['center'] = array_map('trim', explode(',', $center));
     }
     wp_localize_script('jobify-job-manager-map', 'jobifyMapSettings', $settings);
 }
<?php

/**
 *
 */
if ('side' == jobify_theme_mod('jobify_listings', 'jobify_listings_display_area')) {
    return;
}
$columns = jobify_theme_mod('jobify_listings', 'jobify_listings_topbar_columns');
$colspan = jobify_theme_mod('jobify_listings', 'jobify_listings_topbar_colspan');
$colspan = array_map('trim', explode(' ', $colspan));
$args = array('before_widget' => '<aside class="job_listing-widget-top default-widget">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="job_listing-widget-title-top">', 'after_title' => '</h3>');
?>

<div class="job-meta-top row">

	<?php 
do_action('single_job_listing_info_before');
?>

	<?php 
for ($i = 1; $i <= $columns; $i++) {
    ?>
		<div class="col-md-<?php 
    echo $colspan[$i - 1];
    ?>
 col-sm-6 col-xs-12">

			<?php 
    do_action('single_job_listing_info_start');
    ?>
Example #4
0
/**
 * Adjust page when responsive is off to normal scale.
 *
 * @since Jobify 1.1
 */
function jobify_nonresponsive_viewport()
{
    if (!jobify_theme_mod('jobify_general', 'responsive')) {
        return;
    }
    echo '<meta name="viewport" content="initial-scale=1">';
}
<?php

/**
 *
 */
if ('top' == jobify_theme_mod('jobify_listings', 'jobify_listings_display_area')) {
    return;
}
$args = array('before_widget' => '<aside class="job_listing-widget default-widget">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="job_listing-widget-title">', 'after_title' => '</h3>');
?>

<?php 
do_action('single_job_listing_info_start');
?>

<div class="job-meta col-md-2 col-sm-6 col-xs-12">

	<?php 
do_action('single_job_listing_info_before');
?>

	<?php 
if (!is_active_sidebar('sidebar-single-job_listing')) {
    ?>

		<?php 
    the_widget('Jobify_Widget_Job_Company_Logo', array(), $args);
    ?>

		<?php 
    the_widget('Jobify_Widget_Job_Type', array(), $args);
Example #6
0
/**
 * Styles the header image displayed on the Appearance > Header admin panel.
 *
 * @since Jobify 1.0
 */
function jobify_admin_header_style()
{
    $header_image = get_header_image();
    $text_color = get_header_textcolor();
    ?>
	<style>
	.site-header {
		background: <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		overflow: hidden;
	}

	.site-branding,
	.site-description {
		color: #<?php 
    echo esc_attr($text_color);
    ?>
;
	}

	.site-header {
		padding: 35px;
		box-shadow: inset rgba(0, 0, 0, .10) 0 -4px 0;
	}

	.site-branding {
		float: left;
	}

	.site-primary-navigation {
		float: right;
	}

	/**
	 * Branding
	 */
	.site-branding {
		text-decoration: none;
	}

	.site-branding:hover {
		text-decoration: none;
	}

	.site-title {
		font: bold 36px/normal 'Montserrat', sans-serif;
		text-transform: uppercase;
		margin: 0;
		padding: 0;
	}

	.site-title span,
	.site-title img {
		float: left;
	}

	<?php 
    if (!display_header_text()) {
        ?>
	.site-branding span {
		position: absolute !important;
		clip: rect(1px 1px 1px 1px); /* IE7 */
		clip: rect(1px, 1px, 1px, 1px);
	}
	<?php 
    }
    ?>
	</style>
<?php 
}
Example #7
0
 * #main and #page div elements.
 *
 * @package Jobify
 * @since Jobify 1.0
 */
?>

		</div><!-- #main -->

		<?php 
if (jobify_theme_mod('jobify_cta', 'jobify_cta_display')) {
    ?>
		<div class="footer-cta" id="footer">
			<div class="container">
				<?php 
    echo wpautop(jobify_theme_mod('jobify_cta', 'jobify_cta_text'));
    ?>
			</div>
		</div>
		<?php 
}
?>

		<footer id="colophon" class="site-footer" role="contentinfo">
			<?php 
if (is_active_sidebar('widget-area-footer')) {
    ?>
			<div class="footer-widgets">
				<div class="container">
					<div class="row">
						<?php 
Example #8
0
/**
 * Output the basic extra CSS for primary and accent colors.
 * Split away from widget colors for brevity.
 *
 * @since Jobify 1.0
 */
function jobify_header_css()
{
    ?>
	<style id="jobify-custom-css">
		a,
		.button:hover,
		a.button-secondary,
		.load_more_jobs,
		.load_more_resumes,
		#wp-submit:hover,
		.btt:hover i,
		#submitcomment:hover,
		#searchsubmit:hover,
		.jobify_widget_slider .button-secondary:hover,
		input[type="submit"]:hover,
		.entry-header a:hover,
		.entry-title a:hover,
		.jobify_widget_slider .soliloquy-container a.button-secondary:hover,
		.job-manager-form.wp-job-manager-bookmarks-form a:hover,
		.job_listing a.view-video:hover,
		.resume a.view-video:hover,
		.job-manager-pagination a,
		.job-manager-pagination span {
			color: <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		}

		.button,
		.button-secondary:hover,
		.search_jobs,
		.search_resumes,
		.load_more_jobs:hover,
		.load_more_resumes:hover,
		.paginate-links .page-numbers:hover,
		#wp-submit,
		button.mfp-close,
		#submitcomment,
		#searchsubmit,
		input[type="submit"],
		.content-grid .featured-image .overlay,
		.nav-menu-primary .sub-menu,
		.nav-menu-primary .children,
		.site-primary-navigation.open,
		.site-primary-navigation.close,
		#pmc_mailchimp div input[type="submit"],
		.mailbag-wrap input[type="submit"],
		.pricing-table-widget .pricing-table-widget-title,
		.jobify_widget_price_table_rcp .pricing-table-widget-title,
		#rcp_registration_form .pricing-table-widget-title,
		.job-tag,
		.job-type,
		.jobify_widget_slider_hero a.button,
		.mfp-close-btn-in button.mfp-close:hover,
		.cluster div,
		.job_listing a.view-video,
		.resume a.view-video,
		.job-manager-form.wp-job-manager-bookmarks-form a,
		.job-manager-pagination a:hover,
		.job-manager-pagination span:hover {
			background: <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		}

		.button:hover,
		a.button-secondary,
		.load_more_jobs,
		.load_more_resumes,
		.paginate-links .page-numbers:hover,
		input[type="text"]:focus,
		input[type="email"]:focus,
		input[type="password"]:focus,
		input[type="search"]:focus,
		input[type="number"]:focus,
		select:focus,
		textarea:focus,
		#wp-submit:hover,
		#submitcomment:hover,
		#searchsubmit:hover,
		input[type="submit"]:hover,
		.job-manager-form.wp-job-manager-bookmarks-form a:hover,
		.cluster div:after,
		.woocommerce-message,
		.woocommerce-error li,
		.job_listing a.view-video:hover,
		.resume a.view-video:hover,
		.job-manager-pagination a,
		.job-manager-pagination span {
			border-color: <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		}

		.nav-menu-primary ul li a,
		.nav-menu-primary li a,
		.primary-menu-toggle i,
		.site-primary-navigation .primary-menu-toggle,
		.site-primary-navigation #searchform input[type="text"],
		.site-primary-navigation #searchform button {
			color: <?php 
    echo jobify_theme_mod('colors', 'navigation');
    ?>
;
		}

		.nav-menu-primary li.login > a,
		.nav-menu-primary li.highlight > a {
			border-color: <?php 
    echo jobify_theme_mod('colors', 'navigation');
    ?>
;
		}

		.site-primary-navigation:not(.open) li.login > a:hover,
		.site-primary-navigation:not(.open) li.highlight > a:hover {
			color: <?php 
    echo jobify_theme_mod('colors', 'header_background');
    ?>
;
			background: <?php 
    echo jobify_theme_mod('colors', 'navigation');
    ?>
;
		}

		.site-header,
		.nav-menu-primary .sub-menu {
			background: <?php 
    echo jobify_theme_mod('colors', 'header_background');
    ?>
;
		}

		.footer-cta {
			color: <?php 
    echo jobify_theme_mod('jobify_cta', 'jobify_cta_text_color');
    ?>
;
			background: <?php 
    echo jobify_theme_mod('jobify_cta', 'jobify_cta_background_color');
    ?>
;
		}

		ul.job_listings .job_listing:hover,
		.job_position_featured,
		li.type-resume:hover {
			box-shadow: inset 5px 0 0 <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		}

		<?php 
    if ('background' == get_option('job_manager_job_cat_what_color')) {
        ?>
		.job_listing .job-category { color: #fff !important; }
		<?php 
    }
    ?>
	</style>
<?php 
}
 /**
  * Registers widgets, and widget areas.
  *
  * @since Jobify 1.0
  *
  * @return void
  */
 function widgets_init()
 {
     /** Widgets */
     $widgets = array('class-widget-job-company-logo.php', 'class-widget-job-type.php', 'class-widget-job-location.php', 'class-widget-job-apply.php', 'class-widget-job-company-social.php', 'class-widget-job-categories.php', 'class-widget-job-more-jobs.php', 'class-widget-job-share.php', 'class-widget-jobs-recent.php', 'class-widget-jobs-spotlight.php', 'class-widget-jobs-search.php', 'class-widget-jobs-map.php');
     foreach ($widgets as $widget) {
         require_once get_template_directory() . '/inc/integrations/wp-job-manager/widgets/' . $widget;
     }
     unregister_widget('WP_Job_Manager_Widget_Recent_Jobs');
     register_widget('Jobify_Widget_Job_Company_Logo');
     register_widget('Jobify_Widget_Job_Type');
     register_widget('Jobify_Widget_Job_Location');
     register_widget('Jobify_Widget_Job_Apply');
     register_widget('Jobify_Widget_Job_Company_Social');
     register_widget('Jobify_Widget_Job_Categories');
     register_widget('Jobify_Widget_Job_More_Jobs');
     register_widget('Jobify_Widget_Job_Share');
     register_widget('Jobify_Widget_Jobs');
     register_widget('Jobify_Widget_Jobs_Spotlight');
     register_widget('Jobify_Widget_Jobs_Search');
     register_widget('Jobify_Widget_Stats');
     register_widget('Jobify_Widget_Map');
     if ('side' == jobify_theme_mod('jobify_listings', 'jobify_listings_display_area')) {
         register_sidebar(array('name' => __('Job Page Sidebar', 'jobify'), 'id' => 'sidebar-single-job_listing', 'description' => __('Choose what should display on single job listings.', 'jobify'), 'before_widget' => '<aside id="%1$s" class="job_listing-widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="job_listing-widget-title">', 'after_title' => '</h3>'));
     } else {
         $columns = jobify_theme_mod('jobify_listings', 'jobify_listings_topbar_columns');
         for ($i = 1; $i <= $columns; $i++) {
             register_sidebar(array('name' => sprintf(__('Job Info Column %s', 'jobify'), $i), 'id' => sprintf('single-job_listing-top-%s', $i), 'description' => sprintf(__('Choose what should display on single job listings column #%s.', 'jobify'), $i), 'before_widget' => '<aside id="%1$s" class="job_listing-widget-top %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="job_listing-widget-title-top">', 'after_title' => '</h3>'));
         }
     }
 }
<?php

/**
 * Job Content
 *
 * @package Jobify
 * @since Jobify 1.0
 */
global $job_manager;
$info = jobify_theme_mod('jobify_listings', 'jobify_listings_display_area');
$col_overview = 'top' == $info ? '12' : (!jobify_get_the_company_description() ? '10' : '6');
$col_company = 'top' == $info ? '12' : '4';
?>

<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 job listing has expired', 'jobify');
    ?>
</div>

	<?php 
} else {
Example #11
0
/**
 * Output the basic extra CSS for primary and accent colors.
 * Split away from widget colors for brevity.
 *
 * @since Jobify 1.0
 */
function jobify_header_css()
{
    ?>
	<style id="jobify-custom-css">
		a,
		.button:hover,
		a.button-secondary,
		.load_more_jobs,
		.load_more_resumes,
		#wp-submit:hover,
		.btt:hover i,
		#submitcomment:hover,
		#searchsubmit:hover,
		.jobify_widget_slider .button-secondary:hover,
		input[type="submit"]:hover,
		.site-primary-navigation #searchform button,
		.entry-header a:hover,
		.entry-title a:hover {
			color: <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		}

		.site-header,
		.button,
		.button-secondary:hover,
		.search_jobs,
		.search_resumes,
		.load_more_jobs:hover,
		.load_more_resumes:hover,
		.paginate-links .page-numbers:hover,
		#wp-submit,
		button.mfp-close,
		#submitcomment,
		#searchsubmit,
		input[type="submit"],
		.content-grid .featured-image .overlay,
		.nav-menu-primary .sub-menu,
		.nav-menu-primary .children,
		.site-primary-navigation.open,
		.site-primary-navigation.close,
		#pmc_mailchimp div input[type="submit"],
		.pricing-table-widget.woocommerce .pricing-table-widget-title {
			background: <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		}

		.button:hover,
		a.button-secondary,
		.load_more_jobs,
		.load_more_resumes,
		.paginate-links .page-numbers:hover,
		input[type="text"]:focus,
		input[type="email"]:focus,
		input[type="password"]:focus,
		input[type="search"]:focus,
		input[type="number"]:focus,
		select:focus,
		textarea:focus,
		#wp-submit:hover,
		#submitcomment:hover,
		#searchsubmit:hover,
		input[type="submit"]:hover {
			border-color: <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		}

		.footer-cta {
			color: <?php 
    echo jobify_theme_mod('jobify_cta', 'jobify_cta_text_color');
    ?>
;
			background: <?php 
    echo jobify_theme_mod('jobify_cta', 'jobify_cta_background_color');
    ?>
;
		}

		ul.job_listings .job_listing:hover,
		.job_position_featured {
			box-shadow: inset 5px 0 0 <?php 
    echo jobify_theme_mod('colors', 'primary');
    ?>
;
		}
	</style>
<?php 
}
Example #12
0
function jobify_theme_login_page()
{
    if (jobify_theme_mod('jobify_general', 'theme_login')) {
        add_action('wp_login_failed', 'jobify_login_fail');
        add_filter('authenticate', 'jobify_authenticate_username_password', 30, 3);
    }
}