%PDF- %PDF-
Direktori : /home/jalalj2hb/www/wp-content/themes/pixel-linear/ |
Current File : /home/jalalj2hb/www/wp-content/themes/pixel-linear/search.php |
<?php /** * Search Template * * * @file search.php * @package Pixel-Linear * @author Pixel Theme Studio * @copyright 2014 - 2015 Pixel Theme Studio Themes * @license license.txt * @version Release: 1.0.0 * @link http://codex.wordpress.org/Theme_Development#Search_Results_.28search.php.29 * @since available since Release 1.0 */ ?> <?php get_header(); ?> <div id="wrapper"> <div class="container pt"> <div class="row"> <div class="col-sm-12"> <div id="content"> <h6><?php _e('We found','pixlin'); ?> <?php $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = esc_html($s, 1); $count = $allsearch->post_count; _e(' – ', 'pixlin'); echo $count . ' '; _e('articles for ', 'pixlin'); _e('<span class="post-search-terms">', 'pixlin'); echo $key; _e('</span><!-- end of .post-search-terms -->', 'pixlin'); wp_reset_query(); ?> </h6> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php $title = get_the_title(); $keys= explode(" ",$s); $title = preg_replace('/('.implode('|', $keys) .')/iu', '<strong class="search-excerpt">\0</strong>', $title); ?> <header> <h1 class="search-page-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'pixlin'), the_title_attribute('echo=0')); ?>"><?php echo $title; ?></a></h1> </header> <section class="post-entry"> <?php the_content(__('Read more »', 'pixlin')); ?> <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'pixlin'), 'after' => '</div><!-- end of .pagination -->')); ?> </section><!-- end of .post-entry --> <footer class="article-footer"> <div class="post-data"> <?php edit_post_link(__('Edit', 'pixlin'), '', ' | '); ?> <?php comments_popup_link(__('No Comments <i class="icon-arrow-down"></i>', 'pixlin'), __('1 Comment <i class="icon-arrow-down"></i>', 'pixlin'), __('% Comments <i class="icon-arrow-down"></i>', 'pixlin')); ?> </div><!-- end of .post-data --> </footer> <br> <hr> </article><!-- end of #post-<?php the_ID(); ?> --> <?php comments_template( '', true ); ?> <?php endwhile; ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <nav class="navigation"> <div class="previous"><?php next_posts_link( __( '‹ Older posts', 'pixlin' ) ); ?></div> <div class="next"><?php previous_posts_link( __( 'Newer posts ›', 'pixlin' ) ); ?></div> </nav><!-- end of .navigation --> <?php endif; ?> <?php else : ?> <article id="post-not-found" class="hentry clearfix"> <header> <h1 class="title-404"><?php _e('Fancy meeting you here!', 'pixlin'); ?></h1> </header> <section> <p><?php _e('Don't panic, we'll get through this together. Let's explore our options here.', 'pixlin'); ?></p> </section> <footer> <h6><?php _e( 'You can return', 'pixlin' ); ?> <a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e( 'Home', 'pixlin' ); ?>"><?php _e( '⏎ Home', 'pixlin' ); ?></a> <?php _e( 'or search for the page you were looking for', 'pixlin' ); ?></h6> <?php get_search_form(); ?> </footer> </article> <?php endif; ?> </div><!-- end of #content --> </div><!-- /col-lg-8 --> </div><!-- /row --> </div> <!-- /container --> </div><!-- /ww --> <?php get_footer(); ?>