示例#1
0
<?php

et_get_mobile_header('mobile');
global $post, $current_user, $user_ID;
$job = $post;
if (have_posts()) {
    the_post();
    $job_cat = et_get_the_job_category($job->ID);
    $job_types = et_get_the_job_type($job->ID);
    $colours = et_get_job_type_colors($job->ID);
    $company = new WP_User($post->post_author);
    $job_location = et_get_post_field($job->ID, 'location');
    ?>

	<div data-role="content" class="post-content resume-contentpage">
		<h1 class="title-resume">
			<?php 
    the_title();
    ?>
			<a href="#" class="post-title-link icon" data-icon="A"></a>
		</h1>
		<div class="content-info inset-shadow">
			<span class="arrow-right"></span>
			<a class="list-link job-employer" data-transition="slide" href="<?php 
    echo get_author_posts_url($post->post_author);
    ?>
"
				title="<?php 
    printf(__('View posted jobs by %s', ET_DOMAIN), $company->display_name);
    ?>
">
<?php

global $job;
$colours = et_get_job_type_colors();
?>
<li class="list-item">
	<a href="<?php 
echo $job['simplyhired_url'];
?>
" target="_blank" data-transition="slide">
		<h2 class="list-title">
			<?php 
the_title();
?>
		</h2>
		<p class="list-subtitle">
			<span class="list-info job-loc"><?php 
echo $job['simplyhired_company'];
?>
</span>
			<?php 
if (count($job['job_types']) > 0) {
    ?>
				<span class="list-info job-title color-<?php 
    echo $colours[$job['job_types'][0]['term_id']];
    ?>
"><span class="icon-label flag"></span><?php 
    echo $job['job_types'][0]['name'];
    ?>
</span>
			<?php