예제 #1
0
<div <?php 
post_class('media post');
?>
 >
    <?php 
if (has_post_thumbnail()) {
    ?>
    <a class="pull-left thumbnail" href="<?php 
    the_permalink();
    ?>
">
        <span class="post-format-tag"><i class="fa fa-music"></i> Audio</span>
        <?php 
    newsflash_post_thumb(array(150, 120));
    ?>
    </a>
    <?php 
}
?>

    <div class="media-body">
        <h3 class="media-heading"><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></h3>

        <div class="post-meta">In <?php 
the_category(',');
예제 #2
0
<?php

if (have_posts()) {
    the_post();
    ?>
<div class="slider thumbnail">
    <?php 
    newsflash_post_thumb(array(600, 300));
    ?>
    <div class="caption">
        <h3 class="media-heading"><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a></h3>

        <div class="post-meta">In <?php 
    the_category(',');
    ?>
 / by <a href="<?php 
    echo get_author_posts_url(get_the_author_meta('ID'));
    ?>
"><?php 
    the_author();
    ?>
</a> / on <?php 
    echo get_the_date();
    ?>
 /
예제 #3
0
            echo wp_oembed_get(get_post_meta(get_the_ID(), 'videourl', true), array('width' => 850));
            ?>


    <?php 
        } else {
            if (get_post_format() == 'gallery') {
                ?>

        <?php 
                newsflash_post_thumb('newsflash-post-thumb');
                ?>

    <?php 
            } else {
                newsflash_post_thumb('newsflash-post-thumb');
            }
        }
    }
    ?>
<div class="entry-content">
<?php 
    if (get_post_format() == 'audio') {
        echo do_shortcode('[audio]');
    }
    the_content();
    ?>
</div>
<?php 
    wp_link_pages();
    ?>
예제 #4
0
<div <?php 
post_class('panel panel-default product');
?>
 >
    <div class="panel-body"><div class="media">
    <?php 
if (has_post_thumbnail()) {
    ?>
    <a class="pull-left" href="<?php 
    the_permalink();
    ?>
">
        <?php 
    newsflash_post_thumb(array(100, 90));
    ?>
    </a>
    <?php 
}
?>

    <div class="media-body">
        <h3 class="media-heading"><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></h3>

        <div class="post-meta">In <?php 
the_terms(get_the_ID(), 'ptype');
예제 #5
0
        the_post();
        ?>
 
<div  <?php 
        post_class('post box arc');
        ?>
>
<h2 class="entry-title"><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>&nbsp;</h2> 
<?php 
        newsflash_post_thumb('edenfresh-responsive-blog-thumb');
        ?>
<div class="entry-content"><?php 
        the_excerpt();
        ?>
<div class="breadcrumb">Posted on <?php 
        echo get_the_date();
        ?>
 / Posted by <a href="<?php 
        echo get_author_posts_url(get_the_author_meta('ID'));
        ?>
"><?php 
        the_author();
        ?>
</a> / <a href="<?php 
        the_permalink();
예제 #6
0
<div <?php 
post_class('media post');
?>
 >
    <?php 
if (has_post_thumbnail()) {
    ?>
    <a class="pull-left thumbnail" href="<?php 
    the_permalink();
    ?>
">
        <span class="post-format-tag"><i class="fa fa-picture-o"></i> Gallery</span>
        <?php 
    newsflash_post_thumb('newsflash-archive-thumb');
    ?>
    </a>
    <?php 
}
?>

    <div class="media-body">
        <h3 class="media-heading"><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></h3>
        <div class="post-meta">In <?php 
the_category(',');
?>
예제 #7
0
            echo wp_oembed_get($meta['videourl'], array('width' => 850));
            ?>


                    <?php 
        } else {
            if (get_post_format() == 'gallery') {
                ?>

                        <?php 
                newsflash_post_gallery(900, 0);
                ?>

                    <?php 
            } else {
                newsflash_post_thumb(array(1100, 0));
            }
        }
    }
    ?>
                    <div class="entry-content">
                        <?php 
    if (get_post_format() == 'audio') {
        echo do_shortcode('[audio]');
    }
    ?>
                        <?php 
    the_content();
    ?>
                    </div>
                    <?php