Advertisement
Guest User

Untitled

a guest
Nov 5th, 2012
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <section id="omc-main">
  4.  
  5. <article id="omc-full-article">
  6. <?php $omc_comment_type = get_post_meta(get_the_ID(), 'omc_comment_type_page', true); ?>
  7.  
  8. <?php the_post_thumbnail('blog-full-width', array('class' => 'featured-full-width-top page-margin')); ?>
  9.  
  10. <h1><?php the_title(); ?> </h1>
  11.  
  12. <?php the_content();?>
  13.  
  14. <?php if ($omc_comment_type == 'none' || $omc_comment_type == ''|| $omc_comment_type == 'fb') { ?>
  15.  
  16. <div class="omc-page-space"></div>
  17.  
  18. <?php } ?>
  19.  
  20. <br class="clear" />
  21.  
  22. <?php
  23. // Get the current page url for FB comments
  24. $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
  25. ?>
  26.  
  27. <?php if ($omc_comment_type === 'fb' || $omc_comment_type === 'both') { ?>
  28.  
  29. <div class="fb-comments" data-href="<?php echo $url; ?>" data-num-posts="4" data-width="620"></div>
  30.  
  31. <?php } ?>
  32.  
  33. <?php if ($omc_comment_type === 'wp' || $omc_comment_type === 'both') { ?>
  34.  
  35. <?php comments_template( '', true ); ?>
  36.  
  37. <?php } ?>
  38.  
  39. </article><!-- /omc-full-article -->
  40.  
  41. </section><!-- /omc-main -->
  42.  
  43. <?php get_sidebar();?>
  44.  
  45. <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement