%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/public_html/demo/riverwalkpoa/wp-content/themes/sandwich/
Upload File :
Create Path :
Current File : /home/graphicd/public_html/demo/riverwalkpoa/wp-content/themes/sandwich/single.php

<?php
    get_header();
?>
<?php
    $sandwich_width = get_theme_mod('sandwich_site_width_control','full_width');
    if ($sandwich_width == 'full_width'){
        $container_fluid = 'container-fluid';
    }else{
        $container_fluid = 'container';
    }
?>
    <div class="<?php echo esc_html($container_fluid); ?>">
        <div class="row">
            <div class="col-md-12 col-sm-12">
                <div id="primary" class="content-area">
                    <main id="main" class="site-main">

                        <?php
                            while ( have_posts() ) :
                                the_post();
                        ?>

                        <div class="single_post_heading">
                            <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
                        </div>
                        <?php
                            if ( 'post' === get_post_type() ) :
                                ?>
                                <?php if(get_theme_mod('sandwich_blog_post_meta_display',true)): ?>
                                    <div class="entry-meta-wrapper">
                                        <span><i class="fa fa-user"></i> <?php the_author_posts_link(); ?></span>
                                        <span><i class="fa fa-clock-o"></i> <?php echo get_the_date('l, F j, Y'); ?></span>
                                        <?php
                                        $sandwich_comment_count = get_comments_number();
                                        if($sandwich_comment_count == 0 ){
                                            $sandwich_single_comment = "No Comment";
                                        }elseif($sandwich_comment_count ==1){
                                            $sandwich_single_comment = $sandwich_comment_count." "."Comment";
                                        }else{
                                            $sandwich_single_comment = $sandwich_comment_count." "."Comments";
                                        }
                                        ?>
                                        <span><i class="fa fa-comments-o"></i> <a href="<?php the_permalink(); ?>"><?php echo $sandwich_single_comment; ?></a></span>
                                    </div><!-- .entry-meta -->
                                <?php endif; ?>
                            <?php endif; ?>
                        <div class="single_post_thumbnail">
                            <?php if (get_theme_mod('sandwich_blog_post_featured_image_display',true)): ?>
                                <?php
                                the_post_thumbnail('post_image');
                                ?>
                            <?php endif; ?>
                        </div>

                        <div class="entry-content">
                            <div class="post_content">
                                <?php
                                    the_content();
                                ?>
                            </div>
                        </div><!-- .entry-content -->

						<div class="author-profile">
							<div class="author_image">
								<div class="author_table_cell">
									<?php echo get_avatar( get_the_author_meta('ID') ); ?>
								</div>
							</div>
							<div class="author_description">
								<h4><?php echo get_the_author_meta('display_name'); ?></h4>
								<p><?php echo get_the_author_meta('description'); ?></p>
							</div>
                        </div>
                            <div class="related_post">
                                <div class="previous_post">
                                    <?php previous_post_link(); ?>
                                </div>
                                <div class="next_post">
                                    <?php next_post_link(); ?>
                                </div>
                            </div>
                            <?php

                                    if ( comments_open() || get_comments_number() ) :
                                        comments_template();
                                    endif;

                                endwhile; // End of the loop.
                            ?>

                    </main><!-- #main -->
                </div><!-- #primary -->
            </div>
        </div>
    </div>

<?php
get_footer();

Zerion Mini Shell 1.0