| 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/khohangtieudung.vn/public_html/wp-content/themes/mtw-shop/ |
Upload File : |
<?php get_header();?>
<style type="text/css">
.grid {}
.grid .item {
float: left;
margin: 0 10px 10px 0;
padding: 0;
position: relative;
margin-left: 0;
min-height: 270px;
}
.grid .item:hover {
border:1px solid #CCC;
}
.grid .item .img {
width: 100%;
height: auto;
display: block;
margin: 0 0 1em;
box-shadow: none;
}
.grid .item h2 {
padding: .5em 0;
margin: 0;
font-size: 1em;
line-height: 22px;
font-weight: bold;
min-height: 55px;
overflow: hidden;
height: 55px;
}
.grid .item h2 a {
color: #444;
}
@media (max-width: 767px) {
.grid .item {
float: left;
margin: 0 0px 8px 0;
padding: 0;
position: relative;
margin-left: 0;
min-height: 270px;
}
}
</style>
<div class="container baiviet">
<div class="breadcrumb" typeof="BreadcrumbList" vocab="https://schema.org/">
<?php if(function_exists('bcn_display')){ bcn_display(); } ?>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 grid">
<div class="row conten_baiviet">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; ?>
<?php if (is_category()) { ?>
<h1 class="pagetitle">
<?php single_cat_title(); ?>
</h1>
<?php } elseif( is_tag() ) { ?>
<h1 class="pagetitle">
<?php single_tag_title(); ?>
</h1>
<?php } elseif (is_day()) { ?>
<h1 class="pagetitle">
<?php _e('Archive for','themetiger');?>
<?php the_time('F jS, Y'); ?>
</h1>
<?php } elseif (is_month()) { ?>
<h1 class="pagetitle">
<?php _e('Archive for','themetiger');?>
<?php the_time('F, Y'); ?>
</h1>
<?php } elseif (is_year()) { ?>
<h1 class="pagetitle">
<?php _e('Archive for','themetiger');?>
<?php the_time('Y'); ?>
</h1>
<?php } elseif (is_author()) { ?>
<h1 class="pagetitle">
<?php _e('Tác gi','themetiger');?>
</h1>
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h1 class="pagetitle">
<?php _e('Blog Archives','themetiger');?>
</h1>
<?php } elseif (is_search()){ ?>
<h1 class="pagetitle">
<?php _e('Tìm kiếm','themetiger');?>
</h1>
<?php } ?>
<?php
$width = 300;
$height = 300;
while (have_posts()) : the_post(); ?>
<div class="col-xs-6 col-sm-6 col-md-3 item">
<?php $url_thumbnail = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); if ($url_thumbnail !="") { ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" class="img"><img src="<?php bloginfo('template_url');?>/thumb.php?src=<?php echo$url_thumbnail;?>&w=<?php echo $width;?>&h=<?php echo $height;?>" alt="<?php the_title_attribute(); ?>" /></a>
<?php }else{ ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><img src="<?php bloginfo('template_url');?>/thumb.php?src=<?php echo show_thumb_image() ?>&w=<?php echo $width;?>&h=<?php echo $height;?>" alt="<?php the_title_attribute(); ?>" width="<?php echo $width;?>" height="<?php echo $height;?>" class="img-thumbnail alignleft" /></a>
<?php } ?>
<h2><a href="<?php the_permalink()?>" title="<?php the_title_attribute();?>"><?php the_title();?></a></h2>
</div>
<?php endwhile; ?>
<div class="row">
<?php wp_pagenavi(); ?>
</div>
<?php else : ?>
<div class="row">
<?php
if ( is_category() ) { // If this is a category archive
printf("<h2 class='generic'>".__('Bài viết đang xây dựng nội dung')."</h2>", single_cat_title('',false));
} else if ( is_date() ) { // If this is a date archive
echo("<h2 class='generic'>".__('Bài viết đang xây dựng nội dung','linhit')."</h2>");
} else if ( is_author() ) { // If this is a category archive
$userdata = get_userdatabylogin(get_query_var('author_name'));
printf("<h2 class='generic'>".__('Bài viết đang xây dựng nội dung','linhit')."</h2>", $userdata->display_name);
} else {
echo('<h2 class="generic">'.__('No posts found.','linhit').'</h2><p class="center">'.__('Sorry, but you are looking for something that isn\'t here.','themetiger').'</p>');
}
?>
</div>
<!--end row-->
<?php endif; ?>
</div> <!--end conten_baiviet-->
</div>
<!-- col-xs-12 col-sm-6 col-md-3 -->
<div id="slidebar" class="col-xs-12 col-sm-3 col-md-3 filter-cost">
<?php
do_action('woocommerce_sidebar');
?>
</div> <!-- #slidebar -->
</div>
</div><!-- end baiviet-->
<?php get_footer(); ?>