public function body_class($classes)
 {
     global $post;
     if (listify_is_job_manager_archive() && 'side' == $this->position() && $this->display() && !(is_page_template('page-templates/template-home.php') || is_page_template('page-templates/template-full-width-blank.php')) && !has_shortcode($post->post_content, 'jobs')) {
         $classes[] = 'fixed-map';
     }
     return $classes;
 }
 /**
  * Set the body class based on how the map is being output
  */
 public function body_class($classes)
 {
     global $post;
     if (listify_is_job_manager_archive() && 'side' == $this->position() && $this->display() && !listify_is_widgetized_page()) {
         $classes[] = 'fixed-map';
     }
     return $classes;
 }
 /**
  * Add supplimentary body classes so we can target certain things.
  *
  * @since Listify 1.0.0
  *
  * @param array $classes
  * @return array $classes
  */
 public function body_class($classes)
 {
     global $wp_query;
     $categories = true;
     $cats = get_terms('job_listing_category', array('hide_empty' => 0, 'lang' => substr(get_locale(), 0, 2)));
     $categories = is_wp_error($cats) || empty($cats) ? false : true;
     $categories = $categories && get_option('job_manager_enable_categories');
     $categories = $categories && !is_tax('job_listing_category');
     if ($categories) {
         $classes[] = 'wp-job-manager-categories-enabled';
         if (get_option('job_manager_enable_default_category_multiselect') && !listify_is_widgetized_page()) {
             $classes[] = 'wp-job-manager-categories-multi-enabled';
         }
     }
     if ('map' == listify_theme_mod('listing-archive-output')) {
         $classes[] = 'listing-archive-display-map-only';
     }
     if (isset($wp_query->query_vars['gallery'])) {
         $classes[] = 'single-job_listing-gallery';
     }
     if (!listify_theme_mod('gallery-comments')) {
         $classes[] = 'no-gallery-comments';
     }
     if (listify_is_job_manager_archive()) {
         $classes[] = 'job-manager-archive';
     }
     return $classes;
 }
Beispiel #4
0
/**
 * Scripts and Styles
 *
 * Load Styles and Scripts depending on certain conditions. Not all assets
 * will be loaded on every page.
 *
 * @since Listify 1.0.0
 *
 * @return void
 */
function listify_scripts()
{
    /*
     * Styles
     */
    do_action('listify_output_customizer_css');
    /* Supplimentary CSS */
    wp_enqueue_style('listify-fonts', listify_fonts_url());
    /* Custom CSS */
    wp_enqueue_style('listify', get_template_directory_uri() . '/css/style.min.css');
    wp_style_add_data('listify', 'rtl', 'replace');
    /* Output customizer CSS after theme CSS */
    $listify_customizer_css = new Listify_Customizer_CSS();
    $listify_customizer_css->output();
    /*
     * Scripts
     */
    /* Comments */
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    $deps = array('jquery');
    if (listify_has_integration('wp-job-manager-regions') && get_option('job_manager_regions_filter')) {
        $deps[] = 'job-regions';
    }
    wp_enqueue_script('listify', get_template_directory_uri() . '/js/app.min.js', $deps, 20141204, true);
    wp_enqueue_script('salvattore', get_template_directory_uri() . '/js/vendor/salvattore.min.js', array(), '', true);
    wp_localize_script('listify', 'listifySettings', apply_filters('listify_js_settings', array('ajaxurl' => admin_url('admin-ajax.php'), 'homeurl' => home_url('/'), 'archiveurl' => get_post_type_archive_link('job_listing'), 'is_job_manager_archive' => listify_is_job_manager_archive(), 'megamenu' => array('taxonomy' => listify_theme_mod('nav-megamenu')), 'l10n' => array('closed' => __('Closed', 'listify'), 'timeFormat' => get_option('time_format')))));
}
 /**
  * Add supplimentary body classes so we can target certain things.
  *
  * @since Listify 1.0.0
  *
  * @param array $classes
  * @return array $classes
  */
 public function body_class($classes)
 {
     global $wp_query;
     $categories = get_terms('job_listing_category', array('hide_empty' => 0));
     if (get_option('job_manager_enable_categories') && !(is_wp_error($categories) || empty($categories)) && !is_tax('job_listing_category')) {
         $classes[] = 'wp-job-manager-categories-enabled';
         if (get_option('job_manager_enable_default_category_multiselect') && !is_page_template('page-templates/template-home.php')) {
             $classes[] = 'wp-job-manager-categories-multi-enabled';
         }
     }
     if ('map' == listify_theme_mod('listing-archive-output')) {
         $classes[] = 'listing-archive-display-map-only';
     }
     if (isset($wp_query->query_vars['gallery'])) {
         $classes[] = 'single-job_listing-gallery';
     }
     if (listify_is_job_manager_archive()) {
         $classes[] = 'job-manager-archive';
     }
     return $classes;
 }
Beispiel #6
0
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package Listify
 */
?>

	</div><!-- #content -->

	<div class="footer-wrapper">

		<?php 
if (!listify_is_job_manager_archive()) {
    ?>

			<?php 
    get_template_part('content', 'cta');
    ?>

			<?php 
    get_template_part('content', 'aso');
    ?>

			<?php 
    if (is_active_sidebar('widget-area-footer-1') || is_active_sidebar('widget-area-footer-2') || is_active_sidebar('widget-area-footer-3')) {
        ?>

				<footer class="site-footer-widgets">
Beispiel #7
0
/**
 * Scripts and Styles
 *
 * Load Styles and Scripts depending on certain conditions. Not all assets
 * will be loaded on every page.
 *
 * @since Listify 1.0.0
 *
 * @return void
 */
function listify_scripts()
{
    /*
     * Styles
     */
    do_action('listify_output_customizer_css');
    /* Supplimentary CSS */
    wp_enqueue_style('listify-fonts', listify_fonts_url());
    /* Custom CSS */
    wp_enqueue_style('listify', get_template_directory_uri() . '/css/style.min.css');
    wp_style_add_data('listify', 'rtl', 'replace');
    /* Output customizer CSS after theme CSS */
    $listify_customizer_css = new Listify_Customizer_CSS();
    $listify_customizer_css->output();
    /*
     * Scripts
     */
    /* Comments */
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    wp_enqueue_script('listify', get_template_directory_uri() . '/js/app.min.js', array('jquery'), 20141204, true);
    wp_localize_script('listify', 'listifySettings', array('ajaxurl' => admin_url('admin-ajax.php'), 'homeurl' => home_url('/'), 'archiveurl' => get_post_type_archive_link('job_listing'), 'is_job_manager_archive' => listify_is_job_manager_archive(), 'l10n' => array('closed' => __('Closed', 'listify'))));
}