PATH:
home
/
letacommog
/
conciergerie_leblanc-closed
/
wp-content
/
themes
/
salient
<?php /** * The template for search results. * * @package Salient WordPress Theme * @version 9.0.2 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } get_header(); global $nectar_options; $header_format = ( ! empty( $nectar_options['header_format'] ) ) ? $nectar_options['header_format'] : 'default'; $theme_skin = ( ! empty( $nectar_options['theme-skin'] ) ) ? $nectar_options['theme-skin'] : 'original'; if ( $header_format == 'centered-menu-bottom-bar' ) { $theme_skin = 'material'; } $search_results_layout = ( ! empty( $nectar_options['search-results-layout'] ) ) ? $nectar_options['search-results-layout'] : 'default'; $search_results_header_bg_color = ( ! empty( $nectar_options['search-results-header-bg-color'] ) ) ? $nectar_options['search-results-header-bg-color'] : '#f4f4f4'; $search_results_header_font_color = ( ! empty( $nectar_options['search-results-header-font-color'] ) ) ? $nectar_options['search-results-header-font-color'] : '#000000'; $search_results_header_bg_image = ( ! empty( $nectar_options['search-results-header-bg-image'] ) && isset( $nectar_options['search-results-header-bg-image'] ) ) ? nectar_options_img( $nectar_options['search-results-header-bg-image'] ) : null; ?> <div id="page-header-bg" data-midnight="light" data-text-effect="none" data-bg-pos="center" data-alignment="center" data-alignment-v="middle" data-height="250" style="background-color: <?php echo esc_attr( $search_results_header_bg_color ); ?>;"> <?php if ( $search_results_header_bg_image ) { ?> <div class="page-header-bg-image-wrap" id="nectar-page-header-p-wrap"> <div class="page-header-bg-image" style="background-image: url(<?php echo esc_url( $search_results_header_bg_image ); ?>);"></div> </div> <div class="page-header-overlay-color" style="background-color: #333333;"></div> <?php } ?> <div class="container"> <div class="row"> <div class="col span_6 "> <div class="inner-wrap"> <h1 style="color: <?php echo esc_attr( $search_results_header_font_color ); ?>;"><?php echo esc_html__( 'Results For', 'salient' ); ?> <span>"<?php echo esc_html( get_search_query( false ) ); ?>"</span></h1> <?php if ( $wp_query->found_posts ) { echo '<span class="result-num" style="color: ' . esc_attr( $search_results_header_font_color ) . ';">' . esc_html( $wp_query->found_posts ) . ' ' . esc_html__( 'results found', 'salient' ) . '</span>'; } ?> </div> </div> </div> </div> </div> <div class="container-wrap" data-layout="<?php echo esc_attr( $search_results_layout ); ?>"> <div class="container main-content"> <div class="row"> <?php $search_col_span = ( $search_results_layout == 'default' ) ? '9' : '12'; ?> <div class="col span_<?php echo esc_attr( $search_col_span ); // WPCS: XSS ok. ?>"> <div id="search-results" data-layout="<?php echo esc_attr( $search_results_layout ); ?>"> <?php add_filter( 'wp_get_attachment_image_attributes', 'nectar_remove_lazy_load_functionality' ); if ( have_posts() ) : while ( have_posts() ) : the_post(); $using_post_thumb = has_post_thumbnail( $post->ID ); if ( get_post_type( $post->ID ) == 'post' ) { ?> <article class="result" data-post-thumb="<?php echo esc_attr( $using_post_thumb ); ?>"> <div class="inner-wrap"> <?php if ( has_post_thumbnail( $post->ID ) ) { echo '<a href="' . esc_url( get_permalink() ) . '">' . get_the_post_thumbnail( $post->ID, 'full', array( 'title' => '' ) ) . '</a>'; } ?> <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <span><?php echo esc_html__( 'Blog Post', 'salient' ); ?></span></h2> <?php if ( $search_results_layout == 'list-no-sidebar' ) { the_excerpt(); } ?> </div> </article><!--/search-result--> <?php } elseif ( get_post_type( $post->ID ) == 'page' ) { ?> <article class="result"> <div class="inner-wrap"> <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <span><?php echo esc_html__( 'Page', 'salient' ); ?></span></h2> <?php if ( has_excerpt() ) { the_excerpt();} ?> </div> </article><!--/search-result--> <?php } elseif ( get_post_type( $post->ID ) == 'portfolio' ) { ?> <article class="result" data-post-thumb="<?php echo esc_attr( $using_post_thumb ); ?>"> <div class="inner-wrap"> <?php $nectar_custom_project_link = get_post_meta( $post->ID, '_nectar_external_project_url', true ); $nectar_portfolio_project_url = ( ! empty( $nectar_custom_project_link ) ) ? $nectar_custom_project_link : esc_url( get_permalink() ); if ( has_post_thumbnail( $post->ID ) ) { echo '<a href="' . esc_url( $nectar_portfolio_project_url ) . '">' . get_the_post_thumbnail( $post->ID, 'full', array( 'title' => '' ) ) . '</a>'; } ?> <h2 class="title"><a href="<?php echo esc_url( $nectar_portfolio_project_url ); ?>"><?php the_title(); ?></a> <span><?php echo esc_html__( 'Portfolio Item', 'salient' ); ?></span></h2> </div> </article><!--/search-result--> <?php } elseif ( get_post_type( $post->ID ) == 'product' ) { ?> <article class="result" data-post-thumb="<?php echo esc_attr( $using_post_thumb ); ?>"> <div class="inner-wrap"> <?php if ( has_post_thumbnail( $post->ID ) ) { echo '<a href="' . esc_url( get_permalink() ) . '">' . get_the_post_thumbnail( $post->ID, 'full', array( 'title' => '' ) ) . '</a>'; } ?> <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <span><?php echo esc_html__( 'Product', 'salient' ); ?></span></h2> <?php if ( $search_results_layout == 'list-no-sidebar' ) { the_excerpt(); } ?> </div> </article><!--/search-result--> <?php } else { ?> <article class="result" data-post-thumb="<?php echo esc_attr( $using_post_thumb ); ?>"> <div class="inner-wrap"> <?php if ( has_post_thumbnail( $post->ID ) ) { echo '<a href="' . esc_url( get_permalink() ) . '">' . get_the_post_thumbnail( $post->ID, 'full', array( 'title' => '' ) ) . '</a>'; } ?> <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php if ( $search_results_layout == 'list-no-sidebar' ) { the_excerpt(); } ?> </div> </article><!--/search-result--> <?php } ?> <?php endwhile; else : echo '<h3>' . esc_html__( 'Sorry, no results were found.', 'salient' ) . '</h3>'; echo '<p>' . esc_html__( 'Please try again with different keywords.', 'salient' ) . '</p>'; get_search_form(); endif; remove_filter( 'wp_get_attachment_image_attributes', 'nectar_remove_lazy_load_functionality' ); ?> </div><!--/search-results--> <?php if ( get_next_posts_link() || get_previous_posts_link() ) { ?> <div id="pagination" data-layout="<?php echo esc_attr( $search_results_layout ); ?>"> <div class="prev"><?php previous_posts_link( '« Previous Entries' ); ?></div> <div class="next"><?php next_posts_link( 'Next Entries »', '' ); ?></div> </div> <?php } ?> </div><!--/span_9--> <?php if ( $search_results_layout == 'default' ) { ?> <div id="sidebar" class="col span_3 col_last"> <?php get_sidebar(); ?> </div><!--/span_3--> <?php } ?> </div><!--/row--> </div><!--/container--> </div><!--/container-wrap--> <?php get_footer(); ?>
[+]
..
[-] template-contact.php
[edit]
[+]
includes
[-] page-sidebar.php
[edit]
[-] searchform.php
[edit]
[-] page-left-sidebar.php
[edit]
[-] template-no-footer.php
[edit]
[+]
nectar
[-] functions.php
[edit]
[-] comments.php
[edit]
[-] footer.php
[edit]
[-] readme.txt
[edit]
[-] taxonomy-project-attributes.php
[edit]
[-] desktop.ini
[edit]
[-] wpml-config.xml
[edit]
[-] template-no-header-footer.php
[edit]
[-] page.php
[edit]
[-] template-home-1.php
[edit]
[-] taxonomy-project-type.php
[edit]
[-] screenshot.png
[edit]
[-] single-portfolio.php
[edit]
[+]
js
[-] template-home-2.php
[edit]
[-] search.php
[edit]
[+]
lang
[-] 404.php
[edit]
[-] sidebar.php
[edit]
[+]
img
[-] rtl.css
[edit]
[+]
woocommerce
[-] style.css
[edit]
[-] header.php
[edit]
[-] template-home-4.php
[edit]
[+]
css
[-] template-home-3.php
[edit]
[-] index.php
[edit]
[+]
plugins
[-] template-no-header.php
[edit]
[-] single.php
[edit]
[-] template-portfolio.php
[edit]