Advertisement
ashishsareen

Single-s-rightphp

Jun 29th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  2.  
  3. <div id="core">
  4.  
  5. <div id="content">
  6.  
  7. <div <?php post_class(); ?>>
  8.  
  9. <?php
  10. $video_input = get_post_meta($post->ID, 'vrg_video', true);
  11. $audio_input = get_post_meta($post->ID, 'vrg_audio', true);
  12. $rating = get_post_meta($post->ID, 'vrg_rating_main', true);
  13. ?>
  14.  
  15. <?php if(has_post_format('video')){
  16. echo ($video_input);
  17. }elseif(has_post_format('audio')){
  18. echo ($audio_input);
  19. }elseif(has_post_format('gallery')){
  20. if (get_option('vergo_post_gallery_dis') == 'true' );
  21. else
  22. echo get_template_part( '/includes/post-types/gallery-slider' );
  23. } else {
  24. if (get_option('vergo_post_image_dis') == 'true' );
  25. else
  26. the_post_thumbnail('format-standard', array('class' => 'main-single'));
  27.  
  28. }?>
  29.  
  30. <div style="clear: both;"></div>
  31.  
  32. <div class="entry">
  33.  
  34. <h2 class="post"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  35.  
  36. <p class="meta"><?php the_time(get_option('date_format')); ?> &bull; <?php the_category(', ') ?><?php if(vrg_ratings()){ ?> &bull; <?php echo vrg_ratings(); } else { }?></p>
  37.  
  38. <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
  39.  
  40. <div style="clear: both;"></div>
  41.  
  42. <?php if($rating) {?>
  43.  
  44. <div class="ratingblock">
  45.  
  46. <?php get_template_part( '/includes/mag-rating' ); ?>
  47.  
  48. </div>
  49.  
  50. <?php } else { }?>
  51.  
  52. <?php the_content(); ?>
  53.  
  54. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:','vergo') . '</span>', 'after' => '</div>' ) ); ?>
  55.  
  56. <?php the_tags( '<p class="tagssingle">','', '</p>'); ?>
  57.  
  58. <div style="clear: both;"></div>
  59.  
  60. <?php
  61. if (get_option('vergo_post_related_dis') == 'true' );
  62. else
  63. get_template_part('/includes/mag-relatedposts');
  64. ?>
  65.  
  66. <?php
  67. if (get_option('vergo_post_author_dis') == 'true' );
  68. else
  69. get_template_part('/includes/mag-authorinfo');
  70. ?>
  71.  
  72. <div style="clear: both;"></div>
  73.  
  74.  
  75. <?php comments_template(); ?>
  76.  
  77. <p>
  78. <?php previous_post_link('<span class="fl" style="width:45%;">&laquo; %link</span>'); ?>
  79. <?php next_post_link('<span class="fr" style="width:45%; text-align:right">%link &raquo;</span>'); ?>
  80.  
  81. </p>
  82.  
  83. <div style="clear: both;"></div>
  84.  
  85. </div>
  86.  
  87. </div>
  88.  
  89. <?php endwhile; else: ?>
  90.  
  91. <p><?php _e('Sorry, no posts matched your criteria','vergo');?>.</p>
  92.  
  93. <?php endif; ?>
  94.  
  95. <div style="clear: both;"></div>
  96.  
  97. </div>
  98.  
  99.  
  100.  
  101. <div id="leftsidebar">
  102.  
  103. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Left Sidebar") ) : ?>
  104.  
  105. <?php endif; ?>
  106.  
  107. </div><!-- #sidebar -->
  108.  
  109. <div id="core_bg"></div>
  110.  
  111. </div><!-- #core -->
  112.  
  113.  
  114.  
  115. <div id="rightsidebar" class="body2">
  116.  
  117. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Right Sidebar") ) : ?>
  118.  
  119. <?php endif; ?>
  120.  
  121. </div><!-- #sidebar -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement