Esempio n. 1
0
    <ol class="jobs">

        <?php 
    while (have_posts()) {
        the_post();
        ?>
		
			<?php 
        appthemes_before_post('job_listing');
        ?>

            <?php 
        global $featured_job_cat_id;
        $post_class = array('job');
        $expired = jr_check_expired($post);
        if ($expired) {
            $post_class[] = 'job-expired';
            $action = get_option('jr_expired_action');
            if ($action == 'hide') {
                continue;
            }
        }
        $alt = $alt * -1;
        if ($alt == 1) {
            $post_class[] = 'job-alt';
        }
        if (is_object_in_term($post->ID, 'job_cat', array($featured_job_cat_id))) {
            $post_class[] = 'job-featured';
        }
        ?>
Esempio n. 2
0
                ?>
</a><?php 
            }
            ?>
								</td>
							</tr>
						<?php 
            $count++;
        }
    }
    ?>
						<?php 
    if ($my_query2->have_posts()) {
        while ($my_query2->have_posts()) {
            $my_query2->the_post();
            if (!jr_check_expired($post)) {
                continue;
            }
            ?>
							<tr>
								<td><strong><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a></strong></td>
								<td class="date"><strong><?php 
            the_time(__('j M', 'appthemes'));
            ?>
</strong> <span class="year"><?php 
Esempio n. 3
0
    function jr_expired_message($post)
    {
        $expired = jr_check_expired($post);
        if ($expired) {
            ?>
<p class="expired"><?php 
            _e('<strong>NOTE:</strong> This job listing has expired and may no longer be relevant!', 'appthemes');
            ?>
</p><?php 
        }
    }
Esempio n. 4
0
            _e('How to Apply', 'appthemes');
            ?>
</h2>
						<?php 
            echo apply_filters('the_content', get_post_meta($post->ID, '_how_to_apply', true));
            ?>

					<?php 
        }
        ?>

					<p class="meta"><em><?php 
        the_taxonomies();
        ?>
 <?php 
        if (!jr_check_expired($post) && jr_remaining_days($post) != '-') {
            _e('Job expires in', 'appthemes');
            ?>
 <strong><?php 
            echo jr_remaining_days($post);
            ?>
</strong>.<?php 
        }
        ?>
</em></p>

					<?php 
        if (get_option('jr_ad_stats_all') == 'yes') {
            ?>
<p class="stats"><?php 
            appthemes_stats_counter($post->ID);
Esempio n. 5
0
global $featured_job_cat_id;
$featured_job_cat_name = get_term_by('id', $featured_job_cat_id, 'job_cat')->name;
$args = array('post_type' => 'job_listing', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'job_cat' => $featured_job_cat_name, 'posts_per_page' => -1);
$my_query = new WP_Query($args);
$found = false;
ob_start();
?>
	
<?php 
if ($my_query->have_posts()) {
    $alt = 1;
    echo '<div class="section"><h2 class="pagetitle"><small class="rss"><a href="' . get_term_feed_link($featured_job_cat_id, 'job_cat') . '"><img src="' . get_bloginfo('template_url') . '/images/feed.png" title="' . __('Featured Jobs RSS Feed', 'appthemes') . '" alt="' . __('Featured Jobs RSS Feed', 'appthemes') . '" /></a></small> ' . __('Featured Jobs', 'appthemes') . '</h2><ol class="jobs">';
    while ($my_query->have_posts()) {
        $my_query->the_post();
        $post_class = array('job', 'job-featured');
        $expired = jr_check_expired($my_query->post);
        if ($expired) {
            continue;
        }
        $found = true;
        $alt = $alt * -1;
        if ($alt == 1) {
            $post_class[] = 'job-alt';
        }
        if (is_object_in_term($my_query->post->ID, 'job_cat', array($featured_job_cat_id))) {
            $post_class[] = 'job-featured';
        }
        ?>
	
	<li class="<?php 
        echo implode(' ', $post_class);