Advertisement
Guest User

Untitled

a guest
Nov 11th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. <?php
  2. $options = arcane_get_theme_options();
  3. if(!isset($options['rating_type']))$options['rating_type'] = '';
  4. ?>
  5. <div id="post-<?php the_ID(); ?>" <?php post_class('blog-post'); ?>><!-- blog-post -->
  6.  
  7. <div class="blog-info"><!-- blog-info -->
  8. <div class="post-pinfo">
  9.  
  10. <a data-original-title="<?php esc_html_e("View all posts by", 'arcane'); ?> <?php echo esc_attr(get_the_author()); ?>" data-toggle="tooltip" href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ))); ?>"><?php echo get_avatar( get_the_author_meta('ID'), 60, '', 'author image', array('class' => 'authorimg') ); ?> <?php esc_html_e('by','arcane'); ?> <?php echo esc_attr(get_the_author()); ?></a>
  11. <i>|</i>
  12. <i class="fas fa-tags" aria-hidden="true"></i>
  13.  
  14. <?php the_tags( '', ', ', '<i>|</i>' ); ?>
  15.  
  16. <?php if ( class_exists( 'Disqus' )){ ?>
  17. <a href="<?php echo the_permalink(); ?>#comments" >
  18. <?php comments_number( esc_html__('0 Comments', 'arcane'), esc_html__('1 Comment', 'arcane'), esc_html__('% Comments', 'arcane') ) ?> </a>
  19. <?php }else{ ?>
  20. <a data-original-title="<?php comments_number( esc_html__('No comments in this post', 'arcane'), esc_html__('One comment in this post', 'arcane'), esc_html__('% comments in this post', 'arcane')); ?>" href="<?php echo the_permalink(); ?>#comments" data-toggle="tooltip">
  21. <?php comments_number( esc_html__('0 Comments', 'arcane'), esc_html__('1 Comment', 'arcane'), esc_html__('% Comments', 'arcane') ) ?></a>
  22.  
  23. <?php } ?>
  24.  
  25. <i>|</i>
  26. <span class="date"> <?php the_date(); ?></span>
  27. <div class="clear"></div>
  28. </div>
  29. <div class="clear"></div>
  30. </div><!-- blog-info -->
  31.  
  32.  
  33. <!-- post ratings -->
  34. <?php
  35. $overall_rating = get_post_meta($post->ID, 'overall_rating', true);
  36. $rating_one = get_post_meta($post->ID, 'creteria_1', true);
  37. $rating_two = get_post_meta($post->ID, 'creteria_2', true);
  38. $rating_three = get_post_meta($post->ID, 'creteria_3', true);
  39. $rating_four = get_post_meta($post->ID, 'creteria_4', true);
  40. $rating_five = get_post_meta($post->ID, 'creteria_5', true);
  41.  
  42. if($overall_rating== NULL or $rating_one== NULL && $rating_two== NULL && $rating_three== NULL && $rating_four== NULL && $rating_five== NULL ){
  43.  
  44. }else{
  45. if($options['rating_type'] == 'stars'){
  46. require(get_theme_file_path('post-rating.php'));
  47. }else{
  48. require(get_theme_file_path('post-rating-num.php'));
  49. }
  50.  
  51. } ?><!-- /post ratings -->
  52.  
  53.  
  54. <div class="blog-content wcontainer"><!-- /.blog-content -->
  55. <?php the_content();?>
  56. <div class="clear"></div>
  57. </div><!-- /.blog-content -->
  58.  
  59. <div class="clear"></div>
  60. </div><!-- /.blog-post -->
  61. <?php posts_nav_link(); previous_posts_link(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement