function prefix_insert_post_ads($content) { global $post; $next_post = get_adjacent_post(true, '', true); if ($next_post) { $next_post_code = "<div class=\"clear clearfix well\"><strong>" . __('UpNext') . " <span class=\"glyphicon glyphicon-chevron-right\"></span></strong> <a href=\"" . $next_post->guid . "\">" . $next_post->post_title . "</a></div>"; if (is_single() && $next_post) { $content = prefix_insert_after_paragraph($next_post_code, 2, $content); } } $ad_code = get_theme_setting('post_ads'); if (is_single() && $ad_code != '') { $content = prefix_insert_after_paragraph($ad_code, 1, $content); } return $content; }
?> /favicon.ico" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <link rel="profile" href="http://gmpg.org/xfn/11" /> </head> <body <?php body_class(); ?> > <?php if (get_theme_setting('analytics_code') != "" && get_theme_setting('analytics_code') !== FALSE) { themeinfo('analytics_code'); } ?> <!-- Top Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="collapsible"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php
get_template_part('pagination', 'single'); ?> <?php if (function_exists('related_posts')) { ?> <div id="related-posts"> <?php related_posts(); ?> </div> <?php } ?> <?php if (get_theme_setting('hide_post_comments') != "on") { ?> <div id="comments"> <?php comments_template(); ?> </div> <?php } ?> <?php } ?>
<?php if (is_page()) { $hide_share = get_theme_setting('hide_page_share') == "on"; } else { $hide_share = get_theme_setting('hide_share') == "on"; } $hide_author = get_theme_setting('hide_author') == "on"; $hide_date = get_theme_setting('hide_date') == "on"; $link = urlencode(get_the_permalink()); $desc = urlencode(get_the_title()); $img_obj = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full', false, ''); $img_src = urlencode($img_obj[0]); if (!($hide_share && ($hide_author && $hide_date || is_page()))) { ?> <div class="share clearfix"> <?php if (!$hide_share) { ?> <div class="buttons"> <a class="btn btn-facebook" target="_blank" title="Share on facebook" href="http://www.facebook.com/sharer.php?u=<?php echo $link; ?> &t=<?php echo $desc; ?> "> <i class="fa fa-facebook fa-lg fb"></i> <?php _e('Share'); ?> </a>
</div><!-- container --><footer class="footer"> <ul class="inline"><?php wp_list_pages('sort_column=menu_order&title_li=&depth=1'); ?> </ul> <p class="copyright"><?php if (get_theme_setting('footer_text') != "" && get_theme_setting('footer_text') !== FALSE) { themeinfo('footer_text'); } ?> </p> </footer> <?php wp_footer(); ?> <!-- Powered By: MagXpress WordPress Theme by Shailan (http://shailan.com/wordpress/themes/magxpress) --> </body> </html>