if (YSettings::g('posts_show_date', 1) == 1) { ?> <span class="date"><?php berg_wp_posted_on(); ?> </span> <?php } ?> <?php the_title(sprintf('<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h3>'); ?> <?php echo get_post_details(); ?> <?php $post_meta = get_post_meta(get_the_ID()); if (isset($post_meta['social_media_share'][0])) { $social_sharer = $post_meta['social_media_share'][0]; if ($social_sharer != 'default') { if ($social_sharer == 'enabled') { get_template_part('social', 'share'); } } else { if (YSettings::g('berg_sharer_posts', 1) == 1) { get_template_part('social', 'share'); } } } else {
if (YSettings::g('posts_show_date', 1) == 1) { ?> <span class="date"><?php berg_wp_posted_on(); ?> </span> <?php } ?> <?php the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h1>'); ?> <?php echo get_post_details('large'); ?> <?php $post_meta = get_post_meta(get_the_ID()); if (isset($post_meta['social_media_share'][0])) { $social_sharer = $post_meta['social_media_share'][0]; if ($social_sharer != 'default') { if ($social_sharer == 'enabled') { get_template_part('social', 'share'); } } else { if (YSettings::g('berg_sharer_posts', 1) == 1) { get_template_part('social', 'share'); } }
if (YSettings::g('blog_show_date', 1) == 1) { ?> <span class="date"> <?php berg_wp_posted_on(); ?> </span> <?php } ?> <?php the_title(sprintf('<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h3>'); ?> <?php echo get_post_details('', 'blog'); ?> <?php the_excerpt(); ?> <div class="blog-button"> <a href="<?php echo esc_url(get_permalink()); ?> " class="btn btn-default"><?php echo __('Read more', THEME_NAME); ?> </a> </div>
<?php include 'functions.php'; session_start(); check_valid_user(); $postid = $_GET['id']; $post = get_post_details($postid); do_html_header($post->title, array('ajax_functions.js')); display_entry($post); $comments = get_comments($postid); display_comments($comments); comments_post_form($postid); do_html_url('blog', 'Home'); do_html_footer();