Example #1
0
function cj_authorship_wp_enqueue_scripts()
{
    wp_enqueue_style('cj-authorship-front', plugins_url() . '/' . \CJ_Authorship\CJ_Authorship_Handler::getInstance()->pluginDir . '/css/style.css');
}
    echo $this_post_excerpt;
    ?>
</strong></p>
    </div>
    <?php 
}
?>
	
	<div class="post-meta">
		<span class="posted-by"><?php 
//_ex('By', 'Post Meta', 'bunyad');
?>
            <?php 
if (is_plugin_active("cj-authorship/cj-authorship.php")) {
    $authors = \CJ_Authorship\CJ_Authorship_Handler::getAuthors(get_the_ID());
    $isDisplayed = \CJ_Authorship\CJ_Authorship_Handler::isDisplayed(get_the_ID());
    if (!empty($authors) && $isDisplayed) {
        ?>
			        <span class="reviewer" itemprop="author">By <?php 
        $authorNames = array();
        foreach ($authors as $author) {
            $authorNames[] = $author->fullname;
        }
        echo implode(" and ", $authorNames);
        ?>
</span>
                <?php 
    }
} else {
    ?>
                <span class="reviewer" itemprop="author">By <?php