Example #1
0
    ?>
</div>
	</div>
</div>
<?php 
}
?>

<section class="container">
	<div class="content-wrap">
		<div class="content">
			<?php 
_the_ads($name = 'ads_cat_01', $class = 'asb-cat asb-cat-01');
?>
			<?php 
if (mo_is_minicat()) {
    $p_meta = _hui('post_plugin');
    while (have_posts()) {
        the_post();
        echo '<article class="excerpt-minic">';
        echo '<h2><a' . _post_target_blank() . ' href="' . get_permalink() . '" title="' . get_the_title() . _get_delimiter() . get_bloginfo('name') . '">' . get_the_title() . '</a></h2>';
        echo '<p class="meta">';
        if ($p_meta && $p_meta['date']) {
            echo '<time><i class="fa fa-clock-o"></i>' . get_the_time('Y-m-d') . '</time>';
        }
        if ($p_meta && $p_meta['author']) {
            $author = get_the_author();
            if (_hui('author_link')) {
                $author = '<a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . $author . '</a>';
            }
            echo '<span class="author"><i class="fa fa-user"></i>' . $author . '</span>';
Example #2
0
File: fn.php Project: yszar/linuxwp
function _post_copyright($content)
{
    _moloader('mo_is_minicat', false);
    if (!is_page() && !mo_is_minicat()) {
        if (_hui('ads_post_footer_s')) {
            $content .= '<p class="asb-post-footer"><b>AD:</b><strong>【' . _hui('ads_post_footer_pretitle') . '】</strong><a' . (_hui('ads_post_footer_link_blank') ? ' target="_blank"' : '') . ' href="' . _hui('ads_post_footer_link') . '">' . _hui('ads_post_footer_title') . '</a></p>';
        }
        if (_hui('post_copyright_s')) {
            $content .= '<p class="post-copyright">' . _hui('post_copyright') . '<a href="' . get_bloginfo('url') . '">' . get_bloginfo('name') . '</a> &raquo; <a href="' . get_permalink() . '">' . get_the_title() . '</a></p>';
        }
    }
    return $content;
}