| 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/wp_shop/ |
Upload File : |
<?php get_header();?>
<div class="baiviet">
<div class="row">
<div class="col-xs-12 col-sm-9 col-md-9">
<div class="row conten_baiviet">
<div style="margin-top:10px; float:left; width:100%">
<?php if(function_exists('rdfa_breadcrumb')){ rdfa_breadcrumb(); } ?>
</div>
<?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 = 275; $height = 150; while (have_posts()) : the_post(); ?>
<div class="col-xs-12 col-sm-12 col-md-12 noidung_bai_single_cat">
<div class="row">
<div class="col-xs-12 col-sm-4 col-md-4">
<?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(); ?>"><img src="<?php bloginfo('template_url');?>/thumb.php?src=<?php echo$url_thumbnail;?>&w=<?php echo $width;?>&h=<?php echo $height;?>&zc=1&q=95" alt="<?php the_title_attribute(); ?>" width="<?php echo $width;?>" height="<?php echo $height;?>" class="img-thumbnail alignleft" /></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;?>&zc=1&q=95" alt="<?php the_title_attribute(); ?>" width="<?php echo $width;?>" height="<?php echo $height;?>" class="img-thumbnail alignleft" /></a>
<?php } ?>
</div>
<!-- col-xs-12 col-sm-4 col-md-3 -->
<div class="col-xs-12 col-sm-8 col-md-8">
<div class="text-content-news">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a></h2>
<div class="luotxem">
<p> <span class="glyphicon glyphicon-eye-close"></span>
<?php if(function_exists('the_views')) { the_views(); } ?>
</p>
<p> <span class="glyphicon glyphicon-user"></span>
<?php _e('Viết bởi: ','linhit');?>
<?php the_author_posts_link(); ?>
</p>
<p> <span class="glyphicon glyphicon-calendar"></span> Ngày:
<?php the_time(__('d/m/Y','themetiger')) ?>
</p>
</div>
<?php the_excerpt(); ?>
<h6 class="label label-danger"><a style="color:#FFF" href="<?php the_permalink() ?>" rel="nofollow" title="<?php the_title_attribute(); ?>"> Xem tiếp</a></h6>
</div>
<!--end text-content-news-->
</div>
<!-- col-xs-12 col-sm-8 col-md-8 -->
</div>
<!--end row-->
</div>
<!-- col-xs-12 col-sm-12 col-md-12 -->
<div class="clear"></div>
<?php endwhile; ?>
<div class="row">
<?php wp_pagenavi(); ?>
</div>
<!--end row-->
<?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>
<!-- col-xs-12 col-sm-6 col-md-3 -->
</div>
<?php get_footer(); ?>