?>
"  target="_blank" rel="nofollow"><?php 
    sjb_the_company_logo();
    ?>
</a>
                    <?php 
} else {
    sjb_the_company_logo();
}
?>
            </div>
            <div id="sjb-heading">
                <h4 id="sjb_job-heading">
                    <?php 
the_title();
if (sjb_get_the_company_name()) {
    if ($website = sjb_get_the_company_website()) {
        ?>
                            |  <a class="website" href="<?php 
        echo esc_url($website);
        ?>
" target="_blank" rel="nofollow"><?php 
        sjb_the_company_name();
        ?>
</a>
                            <?php 
    } else {
        echo ' | ';
        sjb_the_company_name();
    }
}
Exemplo n.º 2
0
/**
 * sjb_the_company_logo function.
 *
 * @access public
 * @param string $size (default: 'full')
 * @param mixed $default (default: null)
 * @return void
 */
function sjb_the_company_logo($size = 'full', $default = NULL, $post = NULL)
{
    $logo = sjb_get_the_company_logo($post);
    if (!empty($logo) && (strstr($logo, 'http') || file_exists($logo))) {
        if ($size !== 'full') {
            $logo = simple_job_board_get_resized_image($logo, $size);
        }
        echo '<img src="' . esc_attr($logo) . '" alt="' . esc_attr(sjb_get_the_company_name($post)) . '" class="sjbp-pt_img-responsive"/>';
    } elseif ($default) {
        echo '<img src="' . esc_attr($default) . '" alt="' . esc_attr(sjb_get_the_company_name($post)) . '" class="sjbp-pt_img-responsive"/>';
    } else {
        echo '<img src="' . esc_attr(apply_filters('simple_job_board_default_company_logo', plugin_dir_url(dirname(__FILE__)) . 'images/company.png')) . '" alt="' . esc_attr(sjb_get_the_company_name($post)) . '" class="sjbp-pt_img-responsive" />';
    }
}