Example #1
0
post_class($post_classes);
?>
 id="article--sidebar--<?php 
the_id();
?>
">
    <a class="flex--asym-quarter-auto <?php 
printf($trim['texthover']);
?>
" rel="bookmark" href="<?php 
the_permalink();
?>
">
        <div class="thumbnail article--sidebar__thumbnail--small">
            <?php 
post_image_html(get_the_ID(), 'tc_post_sidebar', true);
?>
            <div class="archive-trim-bottom <?php 
printf($trim['bg']);
?>
"></div>
        </div>
        <div class="post-content article__postcontent">
            <header class="article--sidebar__header">
                <h5 class="title article--sidebar__title vspace--quarter">
                    <?php 
the_title();
?>
                </h5>
                <h6 class="post-date article__postmeta">
                    <time datetime="<?php 
Example #2
0
post_class('article--archive');
?>
 id="article--archive--<?php 
the_id();
?>
">
    <a class="article--archive__link flex--two-col--div <?php 
printf($trim['texthover']);
?>
" rel="bookmark" href="<?php 
the_permalink();
?>
">
        <div class="thumbnail article--archive__thumbnail">
            <?php 
post_image_html(get_the_ID(), 'tc_post_archive', true);
?>
            <div class="archive-trim-bottom <?php 
printf($trim['bg']);
?>
"></div>
        </div>
        <div class="article--archive__content">
            <header class="article--archive__header vspace--half">
                <h3 class="title article--artchive__title text--bold vspace--quarter"><?php 
the_title();
?>
</h3>
                <h5 class="post-date"><time datetime="<?php 
the_date('Y-m-d H:i');
?>
Example #3
0
post_class('article--related');
?>
 id="article--related--<?php 
the_ID();
?>
">
    <a class="<?php 
printf($trim['texthover']);
?>
" rel="bookmark" href="<?php 
the_permalink();
?>
">
        <div class="thumbnail vspace--half">
            <?php 
post_image_html(get_the_ID(), 'tc_post_related', true);
?>
            <div class="archive-trim-bottom <?php 
printf($trim['bg']);
?>
"></div>
        </div>
        <header>
            <?php 
the_title('<h5 class="title vspace--half">', '</h5>');
?>
            <?php 
if (!is_page()) {
    ?>
                <h5 class="post-date">
                    <time datetime="<?php 
/**
 * Category Article Output
 * -----------------------------------------------------------------------------
 * Articles on either side of the widget have the same HTML, but different
 * classes. I separated this for my sanity.
 *
 * @param   object          $post_id        The post object.
 * @param   string          $image_size     Thumbnail image size.
 * @param   array           $trim_class     Classes for article elements.
 */
function bh_category_article_output($post_id, $image_size, $trim_class)
{
    global $post;
    $post = $post_id;
    setup_postdata($post);
    ?>
 

    <article <?php 
    post_class('article--category');
    ?>
 id="article--category--<?php 
    the_ID();
    ?>
">
        <a class="article--category__link <?php 
    printf($trim_class['text']);
    ?>
" href="<?php 
    the_permalink();
    ?>
" rel="bookmark">
            <div class="article--category__thumb thumbnail">
                <?php 
    post_image_html(get_the_ID(), $image_size, true);
    ?>
            </div>
            <div>
            <h5 class="article--category__title title <?php 
    printf($trim_class['bg']);
    ?>
">
                    <?php 
    the_title();
    ?>
                </h5>
            </div>
        </a>
    </article>

    <?php 
}
Example #5
0
<article <?php 
post_class($post_classes);
?>
 id="article--small--<?php 
the_id();
?>
">
    <a class="article--small__link <?php 
printf($trim['texthover']);
?>
" rel="bookmark" href="<?php 
the_permalink();
?>
">
        <div class="thumbnail article--small__thumb vspace--half">
            <?php 
post_image_html(get_the_ID(), 'tc_home_feature_small', true);
?>
            <div class="archive-trim-bottom <?php 
printf($trim['bg']);
?>
"></div>
        </div>
        <h5 class="title article--small__title"><?php 
the_title();
?>
</h5>
    </a>
</article>
Example #6
0
post_class('article--lead');
?>
 id="article--lead--<?php 
the_id();
?>
">
    <a class="article--lead__link <?php 
printf($trim['texthover']);
?>
" rel="bookmark" href="<?php 
the_permalink();
?>
">
        <div class="thumbnail article--lead__thumb">
            <?php 
post_image_html(get_the_ID(), 'tc_home_feature_lead', true);
?>
            <div class="archive-trim-bottom <?php 
printf($trim['bg']);
?>
"></div>
        </div>
        <h1 class="title article--lead__title"><?php 
the_title();
?>
</h1>
    </a>
    <header class="article--lead__header vspace--half">
        <h4 class="article--lead__author">
            <?php 
if (!kaitain_is_verboten_user($author)) {