<repo_name>eat-code/ico<file_sep>/post-format/content-image.php
<?php if( is_single() ): ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class('icocrypt-post melody-single-post single-content-flat'); ?>>
<?php else: ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class('icocrypt-post melody-single-post melody-index-post'); ?>>
<?php endif; ?>

    <?php if ( has_post_thumbnail() && !is_single() ){ ?>
        <div class="blog-details-img">
            <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('melody-gallery', array('class' => 'img-fluid')); ?></a>
        </div>
    <?php }  ?>

    <div class="icocrypt-blog-content clearfix">
        <?php if (is_single()) { ?>
            <div class="thm-post-top">
                <!-- Content Single Top -->
                <?php get_template_part( 'post-format/content-single-top' ); ?>

                <div class="melody-single-post-feature text-center">
                    <?php the_post_thumbnail('melody-large', array('class' => 'img-fluid')); ?>
                </div>
            </div>
            <div class="row">
                <div class="col">
                    <div class="entry-blog">
                        <?php
                            get_template_part( 'post-format/entry-content-blog' );
                        ?>
                    </div> <!--/.entry-meta -->
                </div>
            </div>
        <?php } ?>
        <!-- Content Single Bottom -->
        <?php get_template_part( 'post-format/content-single-bottom' ); ?>

        <?php if(get_theme_mod( 'blog_read_more', false )) { ?>
            <?php if(!is_single()){ ?>
                <?php if ( get_theme_mod( 'blog_continue_en', true ) ) {  ?>
                     <?php   if ( get_theme_mod( 'blog_continue', 'Read More' ) ) { ?>
                        <a class="btn btn-read-more" href="<?php the_permalink(); ?>"><i class="fa fa-arrow-right"></i></a>
                    <?php } ?>
                <?php }?>
            <?php }?>
        <?php }?>
    </div>
</article><!--/#post-->
<file_sep>/404.php
<?php 
/*
*Template Name: 404 Page Template
*/
get_header('alternative');
$bg_img = get_theme_mod( '404_bg_img', get_parent_theme_file_uri( 'images/404.jpg' ) );
$error_img = get_theme_mod( '404_img', get_parent_theme_file_uri( 'images/404.png' ) );

$html = esc_html( '<a href="http://www.example.com/">A link</a>');

?>
<div class="text-center icocrypt-error-wrapper" style="background-image: url(<?php echo $bg_img; ?>)">
       <!--  <h1 class="error-title"><?php  echo esc_html(get_theme_mod( '404_title', esc_html__('Page not found', 'icocrypt'))); ?></h1> -->
        <div class="error-img">
        	<img src="<?php echo $error_img; ?>" alt="">
        </div>
        <p class="error-message"><?php  echo esc_html(get_theme_mod( '404_description', '' )); ?></p>
        <div class="error-button">
        	<p><?php echo __('Sorry, we cant find  the page you are looking for '.'</br>'.'
Click '.'<a href="'.home_url('/').'">here</a>'.' to come back to home page.', 'icocrypt'); ?></p>

    </div>
</div>
<?php get_footer('alternative'); ?><file_sep>/post-format/entry-content-blog.php
<!-- Single Page content -->
<div class="entry-summary clearfix">
    <?php 
        if ( is_single() ) {
            the_content();
        }
        wp_link_pages( array(
            'before'      => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'icocrypt' ) . '</span>',
            'after'       => '</div>',
            'link_before' => '<span>',
            'link_after'  => '</span>',
        ) );
    ?>
</div> <!-- //.entry-summary -->
<div class="row single-social-share">
    
    <?php if ( get_theme_mod( 'blog_tags_single', true ) && get_the_tag_list() ) { ?>
        <div class="col-md-7 single-tag">
            <?php echo get_the_tag_list(); ?>
        </div>
    <?php } ?>
    <div class="col-md-5 text-md-right">
        <span class="d-inline-block single-share-text"><?php echo esc_attr__( 'Share', 'icocrypt' ); ?></span>
        <span class="d-inline-block"><?php get_template_part( 'post-format/social-buttons' ); ?></span>
    </div>
</div>

<div class="single-author-meta">
    <div class="media">
      <div class="thm-author-img" title="Written by <?php echo get_the_author_meta('display_name'); ?>" data-toggle="tooltip">
            <?php echo get_avatar( get_the_author_meta( 'ID' ) , 90 ); ?>
        </div>
      <div class="media-body">
        <div class="row">
            <div class="col-md-6 col-9 single-user-info">
                <a href="<?php the_permalink(); ?>"><h4 class="mt-0"> <?php the_author_posts_link(); ?></h4></a>
                </a>
                <?php
                    echo get_the_author_meta('description'); 
                ?>
            </div>
            <div class="col-md-6 col-3 text-right">
                <?php $user_follow = get_the_author_meta('follow'); ?>
                <a href="<?php echo $user_follow; ?>" class="btn btn-follow" target="_blank"><?php echo esc_attr__( 'Follow', 'icocrypt' );; ?></a>
            </div>
        </div>
      </div>
    </div>
</div>

 <?php
    if ( is_singular( 'post' ) ){
        $count_post = esc_attr( get_post_meta( $post->ID, '_post_views_count', true) );
        if( $count_post == ''){
            $count_post = 1;
            add_post_meta( $post->ID, '_post_views_count', $count_post);
        }else{
            $count_post = (int)$count_post + 1;
            update_post_meta( $post->ID, '_post_views_count', $count_post);
        }
    } ?>

<div class="usehlhdkjs">
    <?php if ( get_theme_mod( 'blog_single_comment_en', true ) ) {
        if ( comments_open() || get_comments_number() ) {
            comments_template();
        }
    } ?>
</div>
<file_sep>/footer.php

    <?php if ( get_theme_mod( 'footer_en', true )) { ?>
        <footer id="footer-wrap"> 
            <div class="container">
                <div class="row clearfix">
                    <?php if ( get_theme_mod( 'copyright_en', true )) { ?>
                        <div class="col-sm-12 col-md-6">
                            <div class="footer-copyright">
                                <?php if( get_theme_mod( 'copyright_en', true ) ) { ?>
                                    <?php echo wp_kses_post(balanceTags( get_theme_mod( 'copyright_text', '&copy; 2018 IcoCryopt. All Rights Reserved.') )); ?>
                                <?php } ?>
                            </div> <!-- col-md-6 -->
                        </div> <!-- end footer-copyright -->
                    <?php } ?>                        
                    <?php if(get_theme_mod( 'copyright_en', true )){ ?>
                    <div class="col-sm-12 col-md-6 text-md-right">
                    <?php }else{ ?>
                    <div class="col-sm-12 col-md-12 text-center">
                    <?php }?>

                    <?php if ( has_nav_menu( 'footer' ) ) { ?>
                        <div class="footer-menu">
                          <?php  wp_nav_menu(
                                array(
                                    'theme_location'  => 'footer',
                                    'container'       => false,
                                    'menu_class'      => 'footer-nav'
                                )
                            ); ?>
                        </div>
                    <?php  } ?>

                    </div>
                </div><!--/.row clearfix-->    
            </div><!--/.container-->    
        </footer><!--/#footer-wrap-->    
    <?php } ?>
    </div> <!-- #page -->
<?php wp_footer(); ?>
</body>
</html>
<file_sep>/post-format/content.php
<?php if( is_single() ): ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class('icocrypt-post icocrypt-single-post single-content-flat'); ?>>
<?php else: ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class('icocrypt-post icocrypt-single-post icocrypt-index-post'); ?>>
<?php endif; ?>

    <?php if ( has_post_thumbnail() && !is_single() ){ ?>
        <div class="blog-details-img">
            <a href="<?php the_permalink(); ?>">
                <?php the_post_thumbnail('icocrypt-gallery', array('class' => 'img-fluid')); ?>
            </a>
        </div>
    <?php } ?>
       

    <div class="icocrypt-blog-content clearfix">
        <?php if (is_single()) { ?>
            <div class="thm-post-top"> 
                <!-- Content Single Top -->
                <?php get_template_part( 'post-format/content-single-top' ); ?>
                <div class="icocrypt-single-post-feature text-center">
                    <?php the_post_thumbnail('icocrypt-large', array('class' => 'img-fluid')); ?>
                </div>
            </div>
            <div class="row">
                <div class="col">
                    <div class="entry-blog">
                        <?php
                            get_template_part( 'post-format/entry-content-blog' );
                        ?>
                    </div> <!--/.entry-meta -->
                </div>
            </div>
        <?php } ?>
        <!-- Content Single Bottom -->
        <?php get_template_part( 'post-format/content-single-bottom' ); ?>
        
        <?php if(get_theme_mod( 'blog_read_more', false )) { ?>
            <?php if(!is_single()){ ?>
                <?php if ( get_theme_mod( 'blog_continue_en', true ) ) {  ?>
                     <?php   if ( get_theme_mod( 'blog_continue', 'Read More' ) ) { ?>
                        <a class="btn btn-read-more" href="<?php the_permalink(); ?>"><i class="fa fa-arrow-right"></i></a>
                    <?php } ?>
                <?php }?>
            <?php }?>
        <?php }?>
    </div>
</article><!--/#post-->
