/var/www/html_us/wp-content/themes/elessi-theme/content-single.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
 * @package nasatheme
 */

global $nasa_opt;

$nasa_main_thumb = (!isset($nasa_opt['main_single_post_image']) || $nasa_opt['main_single_post_image']) && has_post_thumbnail() ? true false;

$categories = !isset($nasa_opt['single_cat_info']) || $nasa_opt['single_cat_info'] ? get_the_category_list(', ') : null;

$tags = !isset($nasa_opt['show_tags_info']) || $nasa_opt['show_tags_info'] ? get_the_tag_list() : null;

$shares null;
if (!isset(
$nasa_opt['show_share_icons_info']) || $nasa_opt['show_share_icons_info']) :
    
$shares shortcode_exists('nasa_share') ? do_shortcode('[nasa_share el_class="text-right mobile-text-left rtl-mobile-text-right rtl-text-left"]') : null;
endif;
?>

<article id="post-<?php the_ID(); ?><?php post_class(); ?>>
    <?php if ($nasa_main_thumb) : ?>
        <div class="entry-image single-blog-image text-center margin-bottom-30">
            <?php the_post_thumbnail(); ?>
        </div>
    <?php endif; ?>
    
    <header class="entry-header margin-bottom-25 text-center">
        <?php if ($categories) :
            echo 
'<div class="nasa-meta-categories">' $categories '</div>';
        endif; 
?>
        <h1 class="entry-title nasa-title-single-post"><?php the_title(); ?></h1>
        
        <?php if (!isset($nasa_opt['show_author_date_info']) || $nasa_opt['show_author_date_info']) : ?>
            <div class="entry-meta single-posted-info">
                <?php elessi_posted_on(); ?>
            </div>
        <?php endif; ?>
    </header>

    <div class="entry-content single-entry-content">
        <?php
        the_content
();
        
wp_link_pages(array(
            
'before' => '<div class="page-links">' esc_html__('Pages:''elessi-theme'),
            
'after' => '</div>',
        ));
        
?>
    </div>

    <?php if ($tags || $shares) : ?>
        <footer class="entry-meta footer-entry-meta single-footer-entry-meta">
            <div class="row">
                <div class="columns large-7 medium-7 nasa-min-height rtl-right">
                    <?php if ($tags) : ?>
                        <div class="nasa-meta-tags rtl-text-right">
                            <?php echo $tags?>
                        </div>
                    <?php endif; ?>
                </div>
                
                <?php if ($shares) : ?>
                    <div class="columns large-5 medium-5 nasa-meta-social mobile-margin-top-20 rtl-left">
                        <?php echo $shares?>
                    </div>
                <?php endif; ?>
            </div>
        </footer>
    <?php endif; ?>

</article>

<?php do_action('nasa_after_content_single_post'); ?>

<div class="nasa-clear-both"></div>

<?php
if (comments_open() || '0' != get_comments_number()):
    
comments_template();
endif;

do_action('nasa_after_single_post');