File "single.php"

Full path: /home/xs854402/smcse.co.jp/public_html/test.smcse.co.jp/wp-content/themes/Sumitomo-Mitsui/single.php
File size: 2.92 B (2.92 KB bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php get_header('employment'); ?>
<main>
    <?php include('template/bottom-blog.php'); ?>
    <?php include('template/breadcrumb.php'); ?>
    <section class="p-blog">
        <div class="p-blog__single">
            <div class="p-blog__inner l-inner">
                <?php
                if ( have_posts() ) :
                while ( have_posts() ) : the_post();
                ?>
                    <div class="p-blog__container">
                        <div class="p-blog__postContents">
                            <div class="p-item__info">
                                <time class="p-item__time" datetime="<?php the_time('c'); ?>"><?php the_time( 'Y年m月d日' ); ?></time>
                                <?php
                                $terms = get_the_terms($post->ID, 'blog-cat');
                                if ( $terms ) {
                                    foreach ( $terms as $term ) {
                                        echo '<a href="'.esc_url(get_term_link($term)).'" class="p-item__category">'.$term->name.'</a>';
                                    }
                                }
                                ?>
                            </div>
                            <h1 class="p-blog__postTitle"><?php the_title(); ?></h1>
                            <?php
                            $tags = get_the_tags();
                            if($tags) :
                            ?>
                                <div class="p-blog__tags">
                                    <?php
                                    if($tags){
                                        foreach( $tags as $tag ) {
                                            echo '<a href="'.get_tag_link($tag->term_id).'" class="p-blog__tag">'.$tag->name.'</a>';
                                        }
                                    }
                                    ?>
                                </div>
                            <?php endif;?>
                            <div class="p-blog__thumbnail">
                                <?php if (has_post_thumbnail()) : ?>
                                    <div class="p-news__thumbnail">
                                            <?php the_post_thumbnail('post-thumbnail', array('alt' => the_title_attribute('echo=0'))); ?>
                                    </div>
                                <?php endif; ?>
                            </div>
                            <div class="p-blog__content">
                                <?php the_content(); ?>
                            </div>
                        </div>
                        <div class="p-blog__sidebar">
                            <?php include('template/sidebar.php'); ?>
                        </div>
                    </div>
                <?php
                endwhile;
                endif;
                ?>
            </div>
        </div>
    </section>
</main>
<?php get_footer('employment');