the_company_logo();
?>

	<p class="name">
		<?php 
if ($website = get_the_company_website()) {
    ?>
			<a class="website" href="<?php 
    echo esc_url($website);
    ?>
" itemprop="url" target="_blank" rel="nofollow"><?php 
    _e('Website', 'wp-job-manager');
    ?>
</a>
		<?php 
}
?>
		<?php 
the_company_twitter();
?>
		<?php 
the_company_name('<strong itemprop="name">', '</strong>');
?>
	</p>
	<?php 
the_company_tagline('<p class="tagline">', '</p>');
?>
	<?php 
the_company_video();
?>
</div>
Example #2
0
?>
">
		<?php 
the_company_logo();
?>
		<div class="position">
			<h3><?php 
the_title();
?>
</h3>
			<div class="company">
				<?php 
the_company_name('<strong>', '</strong> ');
?>
				<?php 
the_company_tagline('<span class="tagline">', '</span>');
?>
			</div>
		</div>
		<div class="location">
			<?php 
the_job_location(false);
?>
		</div>
		<ul class="meta">
			<li class="job-type <?php 
echo get_the_job_type() ? sanitize_title(get_the_job_type()->slug) : '';
?>
"><?php 
the_job_type();
?>
Example #3
0
">
					<?php 
    get_template_part('assets/svg/heart-svg');
    ?>
				</div>
			<?php 
}
?>
		</aside>
		<div class="card__content">
			<h2 class="card__title" itemprop="name"><?php 
the_title();
?>
</h2>
			<div class="card__tagline" itemprop="description"><?php 
the_company_tagline();
?>
</div>
			<footer class="card__footer">
				<?php 
$rating = get_average_listing_rating($post->ID, 1);
if (!empty($rating)) {
    ?>
					<div class="rating  card__rating" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
						<meta itemprop="ratingValue" content = "<?php 
    echo get_average_listing_rating($post->ID, 1);
    ?>
">
						<meta itemprop="reviewCount" content = "<?php 
    echo get_comments_number($post->ID);
    ?>
        }
    }
    ?>
					</nav>

					<h1 class="entry-title" itemprop="name"><?php 
    echo get_the_title();
    if ($listing_is_claimed) {
        echo '<span class="listing-claimed-icon">';
        get_template_part('assets/svg/checked-icon');
        echo '<span>';
    }
    ?>
</h1>
					<?php 
    the_company_tagline('<span class="entry-subtitle" itemprop="description">', '</span>');
    ?>

					<?php 
    /**
     * single_job_listing_start hook
     *
     * @hooked job_listing_meta_display - 20
     * @hooked job_listing_company_display - 30
     */
    do_action('single_job_listing_start');
    ?>
				</header><!-- .entry-header -->
				<?php 
    if (is_active_sidebar('listing_content')) {
        ?>
Example #5
0
the_post();
?>
	<header class="page-header">
		<h1 class="page-title"><?php 
printf(__('Jobs at %s', 'jobify'), esc_attr(urldecode(get_query_var(apply_filters('wp_job_manager_companies_company_slug', 'company')))));
?>
</h1>

		<h2 class="page-subtitle"><strong><?php 
printf(_n('%d Job Available', '%d Jobs Available', $wp_query->found_posts, 'jobify'), $wp_query->found_posts);
?>
</strong> <?php 
if (get_the_company_tagline(get_the_ID())) {
    ?>
&bull; <?php 
    the_company_tagline('', '', true, get_the_ID());
}
?>
</h2>
	</header>
	<?php 
rewind_posts();
?>

	<div id="primary" class="content-area">
		<div id="content" class="container" role="main">
			<div class="company-profile row">

				<div class="company-profile-jobs col-md-10 col-sm-8 col-xs-12">
					<?php 
if (have_posts()) {
Example #6
0
    public function widget($args, $instance)
    {
        global $post;
        $placeholders = $this->get_placeholder_strings();
        //only put in the default title if the user hasn't saved anything in the database e.g. $instance is empty (as a whole)
        $title = apply_filters('widget_title', empty($instance) ? $placeholders['title'] : $instance['title'], $instance, $this->id_base);
        $subtitle = empty($instance) ? $placeholders['subtitle'] : $instance['subtitle'];
        $number_of_items = empty($instance['number_of_items']) ? $this->defaults['number_of_items'] : $instance['number_of_items'];
        $show = empty($instance['show']) ? $this->defaults['show'] : $instance['show'];
        $orderby = empty($instance['orderby']) ? $this->defaults['orderby'] : $instance['orderby'];
        $items_ids = empty($instance['items_ids']) ? $this->defaults['items_ids'] : $instance['items_ids'];
        $categories_slug = empty($instance['categories_slug']) ? $this->defaults['categories_slug'] : $instance['categories_slug'];
        echo $args['before_widget'];
        ?>

		<div class="widget_front_page_listing_cards" itemscope itemtype="http://schema.org/LocalBusiness">
			<h3 class="widget_title  widget_title--frontpage">
				<?php 
        echo $title;
        if (!empty($subtitle)) {
            ?>
					<span class="widget_subtitle--frontpage">
						<?php 
            echo $subtitle;
            ?>
					</span>
				<?php 
        }
        ?>
			</h3>
			<?php 
        // lets query some
        $query_args = array('post_type' => 'job_listing', 'post_status' => 'publish');
        if (!empty($number_of_items) && is_numeric($number_of_items)) {
            $query_args['posts_per_page'] = $number_of_items;
        }
        if (!empty($orderby) && is_string($orderby)) {
            $query_args['orderby'] = $orderby;
        }
        if (!empty($show) && $show === 'featured') {
            $query_args['meta_key'] = '_featured';
            $query_args['meta_value'] = '1';
        }
        if (!empty($items_ids) && is_string($items_ids)) {
            $query_args['post__in'] = explode(',', $items_ids);
        }
        if (!empty($categories_slug) && is_string($categories_slug)) {
            $categories_slug = explode(',', $categories_slug);
            foreach ($categories_slug as $key => $cat) {
                $categories_slug[$key] = sanitize_title($cat);
            }
            $query_args['tax_query'] = array('relation' => 'AND', array('taxonomy' => 'job_listing_category', 'field' => 'slug', 'terms' => $categories_slug));
        }
        $listings = new WP_Query($query_args);
        if ($listings->have_posts()) {
            ?>
				<div class="grid  grid--widget  list">
					<?php 
            while ($listings->have_posts()) {
                $listings->the_post();
                $terms = get_the_terms(get_the_ID(), 'job_listing_category');
                $listing_classes = 'card  card--listing  card--widget  ';
                $listing_is_claimed = false;
                if (class_exists('WP_Job_Manager_Claim_Listing')) {
                    $classes = WP_Job_Manager_Claim_Listing()->listing->add_post_class(array());
                    if (isset($classes[0]) && !empty($classes[0])) {
                        $listing_classes .= $classes[0];
                        if ($classes[0] == 'claimed') {
                            $listing_is_claimed = true;
                        }
                    }
                }
                ?>

						<a href="<?php 
                the_job_permalink();
                ?>
" class="grid__item  grid__item--widget">
							<article class="<?php 
                echo $listing_classes;
                ?>
" data-latitude="<?php 
                echo get_post_meta($post->ID, 'geolocation_lat', true);
                ?>
"
							         data-longitude="<?php 
                echo get_post_meta($post->ID, 'geolocation_long', true);
                ?>
"
							         data-img="<?php 
                echo listable_get_post_image_src($post->ID, 'full');
                ?>
"
							         data-permalink="<?php 
                the_job_permalink();
                ?>
">

								<aside class="card__image" style="background-image: url(<?php 
                echo listable_get_post_image_src($post->ID, 'listable-card-image');
                ?>
);">
									<?php 
                global $job_manager_bookmarks;
                if ($job_manager_bookmarks !== null && method_exists($job_manager_bookmarks, 'is_bookmarked')) {
                    $bookmark_state = '';
                    if ($job_manager_bookmarks->is_bookmarked($post->ID)) {
                        $bookmark_state = 'is--bookmarked';
                    }
                    ?>
										<div class="heart <?php 
                    echo $bookmark_state;
                    ?>
">
											<?php 
                    get_template_part('assets/svg/heart-svg');
                    ?>
										</div>
									<?php 
                }
                ?>

								</aside>

								<div class="card__content">
									<h2 class="card__title" itemprop="name"><?php 
                echo get_the_title();
                if ($listing_is_claimed) {
                    echo '<span class="listing-claimed-icon">';
                    get_template_part('assets/svg/checked-icon-small');
                    echo '<span>';
                }
                ?>
</h2>
									<div class="card__tagline"><?php 
                the_company_tagline();
                ?>
</div>
									<footer class="card__footer">
										<?php 
                $rating = get_average_listing_rating($post->ID, 1);
                if (!empty($rating)) {
                    ?>
											<div class="rating  card__rating">
												<span class="js-average-rating"><?php 
                    echo get_average_listing_rating($post->ID, 1);
                    ?>
</span>
											</div>
										<?php 
                } else {
                    if (get_post_meta($post->ID, 'geolocation_street', true)) {
                        ?>
												<div class="card__rating  card__pin">
													<?php 
                        get_template_part('assets/svg/pin-simple-svg');
                        ?>
												</div>
											<?php 
                    }
                }
                ?>

										<?php 
                if (is_array($terms) || is_object($terms)) {
                    ?>

											<ul class="card__tags">
												<?php 
                    foreach ($terms as $term) {
                        $icon_url = listable_get_term_icon_url($term->term_id);
                        $attachment_id = listable_get_term_icon_id($term->term_id);
                        if (empty($icon_url)) {
                            continue;
                        }
                        ?>
													<li>
														<div class="card__tag">
															<div class="pin__icon">
																<?php 
                        listable_display_image($icon_url, '', true, $attachment_id);
                        ?>
															</div>
														</div>
													</li>
												<?php 
                    }
                    ?>
											</ul>

										<?php 
                }
                ?>

										<div class="address  card__address">
											<span class="address__street"><?php 
                echo trim(get_post_meta($post->ID, 'geolocation_street', true), '');
                ?>
</span>
											<span class="address__street-no"><?php 
                echo trim(get_post_meta($post->ID, 'geolocation_street_number', true), '');
                ?>
</span>
											<span class="address__city"><?php 
                echo trim(get_post_meta($post->ID, 'geolocation_city', true), '');
                ?>
</span>
											<span class="address__postcode"><?php 
                echo trim(get_post_meta($post->ID, 'geolocation_postcode', true), '');
                ?>
</span>
											<span class="address__country"><?php 
                echo trim(get_post_meta($post->ID, 'geolocation_country_short', true), '');
                ?>
</span>
											<span class="address__country-short"><?php 
                echo trim(get_post_meta($post->ID, 'geolocation_country_long', true), '');
                ?>
</span>
										</div>
									</footer>
								</div><!-- .card__content -->
							</article><!-- .card.card--listing -->
						</a><!-- .grid_item -->

					<?php 
            }
            wp_reset_postdata();
            ?>

				</div>

			<?php 
        }
        ?>

		</div>
		<?php 
        echo $args['after_widget'];
    }