コード例 #1
0
ファイル: index.php プロジェクト: ArchimidisM/imaginy-theme
<?php

get_header();
?>
<!-- Main Container -->

    <div class="<?php 
echo imaginy_main_content_layout_class();
?>
">
        <div id="imaginy-main-content-container">
        <?php 
echo imaginy_show_breadcrumbs();
?>
                    <?php 
do_action('imaginy_before_main_content');
?>
            
                    <div id="primary">
                    
                        <div id="content" class="clearfix">
                       
                        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
                          
                            <?php 
        get_template_part('content', get_post_format());
        ?>
コード例 #2
0
>

    <?php 
do_action('imaginy_before_post_content');
?>
    
    <header class="entry-header">
    <?php 
if (imaginy_get_embed() != '') {
    echo imaginy_get_embed();
} elseif (has_post_thumbnail()) {
    ?>
    
            <figure>
                <?php 
    the_post_thumbnail('imaginy-blog-image-' . imaginy_main_content_layout_class(), array('class' => 'img-responsive', 'alt' => get_the_title()));
    ?>
       
            </figure>        
    <?php 
}
?>
        <h1 class="entry-title h2">
            <span class="fa fa-microphone post-format-icon"></span>
            <span><a class="transitions" href="<?php 
the_permalink();
?>
" title="<?php 
the_title_attribute();
?>
">