festival_lgbt /wp-content/themes/simple-catch/search.php

Language PHP Lines 67
MD5 Hash 6f5460beff536dce14bfe56c7c0a32b9
Repository https://github.com/Bochet/festival_lgbt.git View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package Catch Themes
 * @subpackage Simple_Catch
 * @since Simple Catch 1.0
 */

get_header(); 

	if( function_exists( 'simplecatch_display_div' ) ) {
		$themeoption_layout = simplecatch_display_div();
	}
      
	if (have_posts()): ?>
		<h2 class="entry-title"><?php printf( __( 'Showing results for: <span class="img-title">%s</span>', 'simplecatch' ), get_search_query() ); ?></h2>
		
		<?php while (have_posts()) : the_post(); ?>
		
			<div <?php post_class();?>>
				
				<h3><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a></h3>
				<?php the_excerpt(); ?>
				<div class="row-end"></div>
			</div> <!-- .post -->
		
		<?php endwhile; 
			// Checking WP Page Numbers plugin exist
			if ( function_exists('wp_pagenavi' ) ) : 
				wp_pagenavi();
			
			// Checking WP-PageNaviplugin exist
			elseif ( function_exists('wp_page_numbers' ) ) : 
				wp_page_numbers();
				 
			else: ?>
				<ul class="default-wp-page">
					<li class="previous"><?php next_posts_link( __( 'Previous', 'simplecatch' ) ); ?></li>
					<li class="next"><?php previous_posts_link( __( 'Next', 'simplecatch' ) ); ?></li>
				</ul>         
		
			<?php endif; 
		
	else : ?>
		<h2><?php printf( __( 'Your search <span> "%s" </span> did not match any documents', 'simplecatch' ), get_search_query() ); ?></h2>
		<div class="post">
			<h5><?php _e( 'A few suggestions', 'simplecatch' ); ?></h5>
			<ul>
				<li><?php _e( 'Make sure all words are spelled correctly', 'simplecatch' ); ?></li>
				<li><?php _e( 'Try different keywords', 'simplecatch' ); ?></li>
				<li><?php _e( 'Try more general keywords', 'simplecatch' ); ?></li>
			</ul> 
		</div> <!-- .post -->
		
<?php endif; ?>

    </div> <!-- #content -->
            
 	<?php 
    if( $themeoption_layout == 'right-sidebar' ) {
        get_sidebar(); 
    }?>
            
</div> <!-- #main -->

<?php get_footer(); ?> 
Back to Top