Guest User

Untitled

a guest
Feb 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.26 KB | None | 0 0
  1. <div class="enigma_blog_area ">
  2. <?php $wl_theme_options = weblizar_get_options();
  3. if($wl_theme_options['blog_title'] !='') { ?>
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <div class="enigma_heading_title">
  8. <h3><?php echo esc_attr($wl_theme_options['blog_title']); ?></h3>
  9. </div>
  10. </div>
  11. </div>
  12. </div>
  13. <?php } ?>
  14. <div class="container">
  15. <div class="row" id="enigma_blog_section">
  16. <?php if ( have_posts()) :
  17. $posts_count =wp_count_posts()->publish;
  18. if($wl_theme_options['blog_category']) {
  19. $category = $wl_theme_options['blog_category'];
  20. $args = array( 'post_type' => 'post','posts_per_page' => $posts_count ,'ignore_sticky_posts' => 1, 'cat' => $category);
  21. } else {
  22. $args = array( 'post_type' => 'post','posts_per_page' => $posts_count ,'ignore_sticky_posts' => 1); }
  23. $post_type_data = new WP_Query( $args );
  24. while($post_type_data->have_posts()):
  25. $post_type_data->the_post();
  26. ?>
  27. <div class="col-md-4 col-sm-12 scrollimation scale-in d2 pull-left">
  28. <div class="enigma_blog_thumb_wrapper">
  29. <div class="enigma_blog_thumb_wrapper_showcase">
  30. <?php $img = array('class' => 'enigma_img_responsive');
  31. if(has_post_thumbnail()):
  32. the_post_thumbnail('home_post_thumb',$img);
  33. endif; ?>
  34. <div class="enigma_blog_thumb_wrapper_showcase_overlay">
  35. <div class="enigma_blog_thumb_wrapper_showcase_overlay_inner ">
  36. <div class="enigma_blog_thumb_wrapper_showcase_icons">
  37. <a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><i class="fa fa-link"></i></a>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  43. <?php if(get_the_tag_list() != '') { ?>
  44. <p class="enigma_tags"><?php the_tags('Tags :&nbsp;', '', '<br />'); ?></p>
  45. <?php } ?>
  46. <p><?php echo the_content(); ?></p>
  47. <div class="enigma_blog_thumb_footer">
  48. <ul class="enigma_blog_thumb_date">
  49. <li><i class="fa fa-user"></i><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo get_the_author(); ?></a></li>
  50. <li><i class="fa fa-clock-o"></i>
  51. <?php if ( ('d M y') == get_option( 'date_format' ) ) : ?>
  52. <?php echo get_the_date('F d ,Y'); ?>
  53. <?php else : ?>
  54. <?php echo get_the_date(); ?>
  55. <?php endif; ?>
  56. </li>
  57. <li><i class="fa fa-comments-o"></i><?php comments_popup_link( '0', '1', '%', '', '-'); ?></li>
  58. </ul>
  59. </div>
  60. </div>
  61. </div>
  62. <?php endwhile;
  63. else : ?>
  64. <div class="col-md-4 col-sm-12 scrollimation scale-in d2 pull-left">
  65. <div class="enigma_blog_thumb_wrapper">
  66. <div class="enigma_blog_thumb_wrapper_showcase">
  67. <img alt="Enigma" src="<?php echo WL_TEMPLATE_DIR_URI ?>/images/wall/img(11).jpg">
  68. <div class="enigma_blog_thumb_wrapper_showcase_overlay">
  69. <div class="enigma_blog_thumb_wrapper_showcase_overlay_inner ">
  70. <div class="enigma_blog_thumb_wrapper_showcase_icons">
  71. <a title="Enigma" href="#"><i class="fa fa-link"></i></a>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <h2><a href="#"><?php _e('NO Post','enigma'); ?></a></h2>
  77.  
  78. <div class="enigma_tags">
  79. <?php _e('Tags :&nbsp;','enigma'); ?>
  80. <a href="#"><?php _e('Bootstrap','enigma'); ?></a>
  81. <a href="#"><?php _e('HTML5','enigma'); ?></a>
  82.  
  83. </div>
  84. <p><?php _e('Add You Post To show post here..','enigma'); ?></p>
  85. <a href="#" class="enigma_blog_read_btn"><i class="fa fa-plus-circle"></i><?php _e('Read More','enigma'); ?></a>
  86. <div class="enigma_blog_thumb_footer">
  87. <ul class="enigma_blog_thumb_date">
  88. <li><i class="fa fa-user"></i><a href="#"><?php _e('By Admin','enigma'); ?></a></li>
  89. <li><i class="fa fa-clock-o"></i><?php _e(' November 9 2013','enigma'); ?></li>
  90. <li><i class="fa fa-comments-o"></i><a href="#"><?php _e('10','enigma'); ?></a></li>
  91. </ul>
  92. </div>
  93. </div>
  94. </div>
  95. <?php endif; ?>
  96.  
  97. </div>
  98. <div class="enigma_carousel-navi">
  99. <div id="port-next" class="enigma_carousel-prev" ><i class="fa fa-arrow-left"></i></div>
  100. <div id="port-prev" class="enigma_carousel-next" ><i class="fa fa-arrow-right"></i></div>
  101. </div>
  102. </div>
  103. </div>
  104. <script>
  105.  
  106. // jQuery CarouFredSel For blog
  107.  
  108. jQuery('#enigma_blog_section').wl_caroufredsel({
  109. width: '100%',
  110. responsive: true,
  111. scroll : {
  112. items : 1,
  113. duration : <?php echo $wl_theme_options['blog_speed'] ?>,
  114. timeoutDuration : 2000
  115. },
  116. circular: true,
  117. direction: 'left',
  118. items: {
  119. height: 'variable',
  120. visible: {
  121. min: 1,
  122. max: 3
  123. },
  124.  
  125. },
  126. prev: '#port-prev',
  127. next: '#port-next',
  128. auto: {
  129. play: true
  130. }
  131. });
  132. </script>
Add Comment
Please, Sign In to add comment