content-search.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <article id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
  2. <?php
  3. if(has_post_thumbnail()):?>
  4. <figure class="post-thumbnail">
  5. <?php the_post_thumbnail('full',array('class'=>'img-fluid','alt'=>'blog-image'));?>
  6. <div class="click-view">
  7. <a <?php if(!function_exists('spice_software_plus_activate')){ echo 'href="'.esc_url(get_the_permalink()).'"';} else{ echo 'href="'.esc_url(get_the_post_thumbnail_url()).'" data-lightbox="image"';} ?> title="<?php the_title();?>"><i class="fa fa-link"></i></a>
  8. </div>
  9. </figure>
  10. <?php endif;?>
  11. <div class="post-content">
  12. <?php if(get_theme_mod('spice_software_enable_blog_date',true) || get_theme_mod('spice_software_enable_blog_author',true) || get_theme_mod('spice_software_enable_blog_category',true) || get_theme_mod('spice_software_enable_blog_tag',true)): ?>
  13. <?php
  14. if(get_theme_mod('spice_software_enable_blog_date',true)==true):?>
  15. <?php if(has_post_thumbnail()) { echo '<div class="entry-date">'; }else{ echo '<div class="remove-image">'; } ?>
  16. <a href="<?php echo esc_url(home_url()); ?>/<?php echo esc_html(date('Y/m', strtotime(get_the_date()))); ?>"><span class="date"><?php echo esc_html(get_the_date()); ?></span></a>
  17. <?php
  18. echo '</div>';
  19. endif;?>
  20. <?php if(get_theme_mod('spice_software_enable_blog_author',true) || get_theme_mod('spice_software_enable_blog_category',true) || get_theme_mod('spice_software_enable_blog_tag',true)): ?>
  21. <div class="entry-meta">
  22. <?php if(get_theme_mod('spice_software_enable_blog_author',true)==true):?>
  23. <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" alt="<?php esc_attr_e('tag','spice-software'); ?>"><i class="fa fa-user"></i><span class="author"><?php echo esc_html(get_the_author());?>
  24. </span></a>
  25. <?php endif;
  26. if(get_theme_mod('spice_software_enable_blog_category',true)==true):
  27. if ( has_category() ) :
  28. echo '<i class="fa fa-folder-open"></i><span class="cat-links" alt="'.esc_attr__("Categories","spice-software").'">';
  29. the_category( ', ' );
  30. echo '</span>';
  31. endif; endif;
  32. if (get_theme_mod('spice_software_enable_blog_tag', true) === true):
  33. $spice_software_tag_list = get_the_tag_list();
  34. if (!empty($spice_software_tag_list)) {
  35. ?>
  36. <i class="fa fa-tag"></i>
  37. <span class="cat-links posttag"><?php the_tags('', ', ', ''); ?></span>
  38. <?php }
  39. endif;
  40. ?>
  41. </div>
  42. <?php endif;?>
  43. <?php endif;?>
  44. <header class="entry-header blog-title">
  45. <h4 class="entry-title blog-title"><a class="blog-title" href="<?php the_permalink();?>" alt="<?php esc_attr__('blog-title','spice-software'); ?>"><?php the_title();?></a></h4>
  46. </header>
  47. <div class="entry-content">
  48. <?php spice_software_posted_content();?>
  49. <?php
  50. $spice_software_button_show_hide=get_theme_mod('spice_software_blog_content','excerpt');
  51. if($spice_software_button_show_hide=="excerpt")
  52. {
  53. if(get_theme_mod('spice_software_enable_blog_read_button',true)==true):
  54. spice_software_button_title();
  55. endif;
  56. } ?>
  57. </div>
  58. </div>
  59. </article>