Advertisement
intownwebdesign

Untitled

Apr 25th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. <?php
  2. /**
  3. * The search template file.
  4. *
  5. * @package Betheme
  6. * @author Muffin group
  7. * @link http://muffingroup.com
  8. */
  9.  
  10. get_header();
  11.  
  12. $translate['search-title'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-title','Ooops...') : __('Ooops...','betheme');
  13. $translate['search-subtitle'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-subtitle','No results found for:') : __('No results found for:','betheme');
  14.  
  15. $translate['published'] = mfn_opts_get('translate') ? mfn_opts_get('translate-published','Published by') : __('Published by','betheme');
  16. $translate['at'] = mfn_opts_get('translate') ? mfn_opts_get('translate-at','at') : __('at','betheme');
  17. $translate['readmore'] = mfn_opts_get('translate') ? mfn_opts_get('translate-readmore','Read more') : __('Read more','betheme');
  18. ?>
  19.  
  20. <div id="Content">
  21. <div class="content_wrapper clearfix">
  22.  
  23.  
  24. <!-- .sections_group -->
  25. <div class="sections_group">
  26.  
  27. <div class="section">
  28. <div class="section_wrapper clearfix">
  29.  
  30. <?php if( have_posts() && trim( $_GET['s'] ) ): ?>
  31.  
  32. <div class="column one column_blog">
  33. <div class="blog_wrapper isotope_wrapper">
  34.  
  35. <div class="posts_group classic">
  36. <?php
  37. while ( have_posts() ):
  38. the_post();
  39. ?>
  40. <div id="post-<?php the_ID(); ?>" <?php post_class( array('post-item', 'clearfix', 'no-img') ); ?>>
  41.  
  42. <div class="post-desc-wrapper">
  43. <div class="post-desc">
  44.  
  45. <?php if( mfn_opts_get( 'blog-meta' ) ): ?>
  46. <div class="post-meta clearfix">
  47. <div class="author-date">
  48. <span class="author"><span><?php echo $translate['published']; ?> </span><i class="icon-user"></i> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo get_the_author_meta( 'display_name' ); ?></a></span>
  49. <span class="date"><span><?php echo $translate['at']; ?> </span><i class="icon-clock"></i> <?php echo get_the_date(); ?></span>
  50. </div>
  51. </div>
  52. <?php endif; ?>
  53.  
  54.  
  55. <div class="post-title">
  56. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  57. </div>
  58.  
  59. <div class="post-excerpt">
  60. <?php the_excerpt(); ?>
  61. </div>
  62.  
  63. <div class="post-footer">
  64. <div class="post-links">
  65. <i class="icon-doc-text"></i> <a href="<?php the_permalink(); ?>" class="post-more"><?php echo $translate['readmore']; ?></a>
  66. </div>
  67. </div>
  68.  
  69. </div>
  70. </div>
  71. </div>
  72. <?php
  73. endwhile;
  74. ?>
  75. </div>
  76.  
  77. <?php
  78. // pagination
  79. if(function_exists( 'mfn_pagination' )):
  80. echo mfn_pagination();
  81. else:
  82. ?>
  83. <div class="nav-next"><?php next_posts_link(__('&larr; Older Entries', 'betheme')) ?></div>
  84. <div class="nav-previous"><?php previous_posts_link(__('Newer Entries &rarr;', 'betheme')) ?></div>
  85. <?php
  86. endif;
  87. ?>
  88.  
  89. </div>
  90. </div>
  91.  
  92. <?php else: ?>
  93.  
  94. <div class="column one search-not-found">
  95.  
  96. <div class="snf-pic">
  97. <i class="themecolor <?php mfn_opts_show( 'error404-icon', 'icon-traffic-cone' ); ?>"></i>
  98. </div>
  99.  
  100. <div class="snf-desc">
  101. <h2><?php echo $translate['search-title']; ?></h2>
  102. <h4><?php echo $translate['search-subtitle'] .' '. esc_html( $_GET['s'] ); ?></h4>
  103. </div>
  104.  
  105. </div>
  106.  
  107. <?php endif; ?>
  108.  
  109. </div>
  110. </div>
  111.  
  112. </div>
  113.  
  114.  
  115. <!-- .four-columns - sidebar -->
  116. <?php if( is_active_sidebar( 'mfn-search' ) ): ?>
  117. <div class="sidebar four columns">
  118. <div class="widget-area clearfix <?php mfn_opts_show( 'sidebar-lines' ); ?>">
  119. <?php dynamic_sidebar( 'mfn-search' ); ?>
  120. </div>
  121. </div>
  122. <?php endif; ?>
  123.  
  124.  
  125. </div>
  126. </div>
  127.  
  128. <?php get_footer();
  129.  
  130. // Omit Closing PHP Tags
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement