| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/thucphamxanh.orgs.vn/public_html/wp-content/themes/mtw-thucpham/ |
Upload File : |
<?php get_header();?>
<style type="text/css">
.conten_baiviet h1 {
margin: 15px 0;
padding: 0;
}
.item {
min-height:265px;
}
.item .img {
display: block;
min-height: 165px;
}
.item .img img {
height:auto;
}
.item .name {
margin: 0;
}
.item .name a {
color: #333;
font-weight: normal;
font-size: 14px;
line-height: 20px;
}
.post-price {}
.post-price del {
display:block;
}
.post-price ins {
display:block;
width: 100%;
text-decoration: none;
font-size: 15px;
color: #BB0000;
font-weight: bold;
}
</style>
<div class="container baiviet">
<div class="row">
<div class="col-xs-12 col-sm-9 col-md-9">
<div class="row conten_baiviet">
<div class="breadcrumb"><?php if(function_exists('bcn_display')){ bcn_display(); } ?></div>
<?php
if (have_posts()) :
//$post = $posts[0];
?>
<h1 class="pagetitle">Kết quả tìm kiếm</h1>
<div class="row">
<?php
$width = 275;
$height = 150;
while (have_posts()) : the_post();
?>
<div class="col-md-3 col-sm-4 col-xs-6 item">
<?php $image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ));?>
<?php if($image){?>
<a class="img" href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"><?php the_post_thumbnail('thumb-archive'); ?></a>
<?php } else { ?>
<a class="img" href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"> <img width="100%" height="180" src="<?php echo show_thumb_image() ?>" alt="<?php the_title_attribute() ?>" class="img-responsive" /> </a>
<?php } ?>
<h2 class="name"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="post-price">
<del class="price">
Giá: <span class="woocommerce-Price-amount amount"><?php echo number_format(get_post_meta( get_the_ID(), '_regular_price', true ),0); ?><span class="woocommerce-Price-currencySymbol"> ₫</span></span></del>
<ins class="price">
Giá KM : <span class="woocommerce-Price-amount amount"><?php echo number_format(get_post_meta( get_the_ID(), '_sale_price', true ),0); ?><span class="woocommerce-Price-currencySymbol"> ₫</span></span></ins>
</div>
</div>
<?php endwhile; ?>
</div><!--end row-->
<div class="row" style="clear:both;"><?php wp_pagenavi(); ?></div>
<?php endif; ?>
</div><!-- end conten_baiviet-->
</div>
<div id="slidebar" class="col-xs-12 col-sm-3 col-md-3 filter-cost">
<?php do_action('woocommerce_sidebar');?>
</div>
</div>
</div>
<?php get_footer(); ?>