Exemple #1
0
/**
 * Job details
 * 
 * This template is responsible for displaying job details on job details page
 * (template single.php) and job preview page (template preview.php)
 * 
 * @author Greg Winiarski
 * @package Templates
 * @subpackage JobBoard
 */
/* @var $job Wpjb_Model_Job */
/* @var $company Wpjb_Model_Employer */
?>

    <?php 
$job = wpjb_view("job");
?>
    <?php 
$company = $job->getCompany(true);
?>

    <div itemscope itemtype="http://schema.org/JobPosting">
    <meta itemprop="title" content="<?php 
esc_attr_e($job->job_title);
?>
" />
    <meta itemprop="datePosted" content="<?php 
esc_attr_e($job->job_created_at);
?>
" />
    
Exemple #2
0
function wpjb_form_helper_listing(Daq_Form_Element $field, array $options = array())
{
    $listing = wpjb_view("listing");
    foreach ($field->getOptions() as $option) {
        $id = $option["value"];
        $l = $listing[$id];
        ?>
        <label class="wpjb-listing-type-item" for="listing_<?php 
        echo $id;
        ?>
">
            <input name="listing" id="listing_<?php 
        echo $id;
        ?>
" type="radio" value="<?php 
        echo $id;
        ?>
" <?php 
        if ($field->getValue() == $id) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
            <span class="wpjb-listing-type-item-s1"><?php 
        esc_html_e($l->title);
        ?>
</span>
            <span class="wpjb-listing-type-item-s2"><?php 
        echo $l->getTextPrice();
        ?>
</span>
            <span class="wpjb-listing-type-item-s3">
                <?php 
        if ($l->description) {
            ?>
                <?php 
            echo $l->description;
            ?>
                <?php 
        } else {
            ?>
                <?php 
            _e("visible for {$l->visible} days", WPJB_DOMAIN);
            ?>
                <?php 
        }
        ?>
            </span>
        </label>    
    <?php 
    }
}