| Server IP : 14.225.204.176 / Your IP : 216.73.216.169 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/venus-cms/wp-content/themes/venus/ |
Upload File : |
<?php
/**
* Display Search page for the theme.
*
* @copyright ZiniMedia 2016
* @version Release: 0.1
* @package venus
* @author ZiniMedia-BM
*/
?>
<?php get_header(); ?>
<!-- main content -->
<main class="main-content">
<section class="flowers">
<div class="container">
<div class="search-page">
<section class="sub-banner">
<?php
/* Search Count */
global $wp_query;
$count = sizeof( $wp_query->posts );
$key = esc_html($s, 1);
?>
<div class="container">
<div class="page-heading">
<h1 class="title title-sz-1 text-primary-1 fw-bold">KẾT QUẢ TÌM KIẾM: <?php echo $key; ?></h1>
</div>
</div>
</section>
<div class="search-result">
<div class="search-result-topic">
<div class="row">
<?php if ( have_posts() ) :
while ( have_posts() ) : the_post();
if (is_search() && ($post->post_type == 'post' || $post->post_type == 'page')) {
if (has_post_thumbnail(get_the_ID())) {
$thumbnail = get_the_post_thumbnail_url( get_the_ID(), "275x208" );
} else {
$thumbnail = get_template_directory_uri() . '/assets/images/upload/service_not_thumb.jpg';
}
?>
<div class="col-6 col-md-4 col-lg-3 search-result-item">
<div class="news-item">
<div class="news-item-img">
<a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail?>" alt="<?php the_title(); ?>" /></a>
</div>
<div class="news-item-text">
<h3 class="title-news dotdotdot" data-toggle="tooltip" data-placement="bottom"
title="<?php the_title(); ?>">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<div class="meta">
<i class="fa fa-clock-o"></i> <?php echo get_the_date(); ?>
</div>
</div>
</div>
</div>
<?php
}
endwhile;
endif;?>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- e: main content -->
<?php get_footer(); ?>