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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<?php /** * @package flatsome */
global $flatsome_opt; ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if($flatsome_opt['blog_post_style'] == 'default' || !isset($flatsome_opt['blog_post_style'])) { ?> <header class="entry-header text-center"> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="tx-div small"></div> <div class="entry-meta"> <?php flatsome_posted_on(); ?> </div><!-- .entry-meta --> </header><!-- .entry-header -->
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. ?> <div class="entry-image"> <?php if($flatsome_opt['blog_parallax']) { ?><div class="parallax_img" style="overflow:hidden"><div class="parallax_img_inner" data-velocity="0.15"><?php } ?> <?php the_post_thumbnail('large'); ?> <?php if($flatsome_opt['blog_parallax']) { ?></div></div><?php } ?> <div class="post-date large"> <span class="post-date-day"><?php echo get_the_time('d', get_the_ID()); ?></span> <span class="post-date-month"><?php echo get_the_time('M', get_the_ID()); ?></span> </div> </div> <?php } ?> <?php } ?>
<div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'flatsome' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content -->
<?php if(isset($flatsome_opt['blog_share']) && $flatsome_opt['blog_share']) { // SHARE ICONS echo '<div class="blog-share text-center">'; echo '<div class="tx-div medium"></div>'; echo do_shortcode('[share]'); echo '</div>'; } ?>
<footer class="entry-meta"> <?php /* translators: used between list items, there is a space after the comma */ $category_list = get_the_category_list( __( ', ', 'flatsome' ) );
/* translators: used between list items, there is a space after the comma */ $tag_list = get_the_tag_list( '', __( ', ', 'flatsome' ) );
// But this blog has loads of categories so we should probably display them here if ( '' != $tag_list ) { $meta_text = __( 'This entry was posted in %1$s and tagged %2$s.', 'flatsome' ); } else { $meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'flatsome' ); }
printf( $meta_text, $category_list, $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); ?>
</footer><!-- .entry-meta --> <?php if(isset($flatsome_opt['blog_author_box']) && $flatsome_opt['blog_author_box']) { ?> <div class="author-box"> <div class="row"> <div class="large-2 small-3 columns"> <?php
$user = get_the_author_meta('ID'); echo get_avatar($user,90);
?> </div> <div class="large-10 small-9 columns"> <h4 class="author-name"><?php _e('by','flatsome') ?> <?php echo get_the_author_meta('display_name');?></h4> <?php if(get_the_author_meta('yim')){?> <p class="author-title"><?php echo get_the_author_meta('yim'); ?></p> <?php }?>
<p class="author-desc"><?php echo get_the_author_meta('user_description');?></p>
<?php if(get_the_author_meta('aim')){?> <p class="author-twitter"><a href="http://twitter.com/<?php echo get_the_author_meta('aim');?>"><?php echo get_the_author_meta('aim');?></a></p> <?php }?> </div> </div> </div> <?php } ?> <?php flatsome_content_nav( 'nav-below' ); ?> </article><!-- #post-## -->
|