| 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 : |
<style type="text/css">
.cotfooter a {
color:#FFF;
}
</style>
<?php
global $data;
$off_chuyenmucthunhat = isset($data['off_chuyenmucthunhat'])? $data['off_chuyenmucthunhat'] : "";
if( $off_chuyenmucthunhat != 0) {
?>
<div class="container module_tintuc_khachhang">
<div class="col-xs-12 homenews1">
<?php
$footer1_category = isset($data['footer1_category']) ? $data['footer1_category'] : 0;
$category_id = get_cat_ID( $footer1_category );
$category_link = get_category_link( $category_id );
$args = array(
//'category_name' => $slug, // ID or slug category can hien thi
'cat' => $category_id,
'post_type' => 'post', // Kiểu dự liệu
'showposts' => 4, // Số sản phẩm
);
$dem =0; $rongrong=150;$daidai =275;
$my_query = new WP_Query( $args );
?>
<h4 class="tieudenewsf"> <a title="<?php echo $data['footer1_category']; ?>" href="<?php echo esc_url( $category_link ); ?>"><span class="glyphicon glyphicon-credit-card"></span><?php echo $data['footer1_category']; ?></a> <a class="title_link_no" title="<?php echo $data['footer1_category']; ?>" href="<?php echo esc_url( $category_link ); ?>"><span class="glyphicon glyphicon-forward"></span>Xem tất cả</a> </h4>
<?php if ( $my_query->have_posts() ):?>
<div class="row">
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); $dem++;?>
<div class="col-xs-6 col-md-3 tintuchome">
<?php
$image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ));?>
<?php if($image !="") {?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute()?>"><?php the_post_thumbnail('thumb-archive'); ?></a>
<?php } else { ?>
<a href="<?php the_permalink()?>" title="<?php the_title_attribute() ?>"><img width="278" height="180" src="<?php echo show_thumb_image() ?>" alt="<?php the_title_attribute()?>" class="img-responsive" /></a>
<?php } ?>
<h3><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query();?>
</div>
<!-- end row -->
</div>
</div>
<!-- end container -->
<?php } ?>
<div class="container module_newfooter">
<div class="row">
<?php
$footer2_category = isset($data['footer2_category'])? $data['footer2_category'] : 0;
$category_id2 = get_cat_ID( $footer2_category );
$category_link2 = get_category_link( $category_id2 );
$args = array(
//'category_name' => $slug, // ID or slug category can hien thi
'cat' => $category_id2,
'post_type' => 'post', // Kiểu dữ liệu
'showposts' => 8, // Số sản phẩm
);
$dem =0; $rongrong=150 ; $daidai =308 ; $width =120 ; $height=100;
$my_query = new WP_Query( $args );
?>
<?php if ( $my_query->have_posts() ):?>
<div class="col-xs-12 col-md-9">
<div class="row">
<h4 class="tieudenewsf"> <a title="<?php echo $footer2_category; ?>" href="<?php echo esc_url( $footer2_category ); ?>"><span class="glyphicon glyphicon-credit-card"></span><?php echo $footer2_category; ?></a> <a rel="nofollow" class="title_link_no" title="<?php echo $footer2_category; ?>" href="<?php echo esc_url( $category_link2 ); ?>"><span class="glyphicon glyphicon-forward"></span>Xem tất cả</a> </h4>
<div class="homenews2 col-xs-12 col-md-5">
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); $dem++;?>
<?php if ($dem ==1) { ?>
<?php
$image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ));?>
<?php if($image !="") {?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>">
<?php the_post_thumbnail('thumb-archive_311'); ?>
</a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"> <img width="311" height="200" src="<?php echo show_thumb_image() ?>" alt="<?php the_title_attribute() ?>" class="img-responsive" /> </a>
<?php } ?>
<!--<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>-->
<h2><small><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></small></h2>
<p><?php echo $excerpt = cut_string(get_the_excerpt(),200,'...'); ?></p>
<?php if ($dem ==1) { echo '</div><div class="col-xs-12 col-md-7 benphainhe">';} ?>
<!-- end col-md-5 -->
<?php } if ($dem ==2) { ?>
<?php
$image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ));?>
<?php if($image !="") {?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"><?php the_post_thumbnail('thumb-archive_180'); ?></a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"> <img width="180" src="<?php echo show_thumb_image() ?>" alt="<?php the_title_attribute() ?>" class="img-responsive" /> </a>
<?php } ?>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p><?php echo $excerpt = cut_string(get_the_excerpt(),200,'...'); ?></p>
<!--<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 } if ($dem >2) { ?>
<h3><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">- <?php the_title(); ?></a></h3>
<!--<p><?php //echo $excerpt = cut_string(get_the_excerpt(),100,'...'); ?></p>-->
<?php } endwhile; ?>
</div>
</div>
<?php endif; ?>
<?php wp_reset_query();?>
</div>
<div class="col-xs-12 col-md-3 hidden-xs">
<div class="row">
<div class="alert email_khuyenmai">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Email newsletter')) : else : ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<div class="footer" id="footer">
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-6 col-sm-6 cotfooter">
<?php global $data; echo $data['diachi_website']; ?>
</div>
<div class="col-xs-12 col-md-6 col-sm-6">
<div class="col-xs-12 col-md-6 cotfooter">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Widget footer 2')) : else : ?>
<?php endif; ?>
</div>
<div class="col-xs-12 col-md-6 cotfooter">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Widget footer 3')) : else : ?>
<?php endif; ?>
</div>
</div>
</div><!-- end row -->
</div>
</div>
<link href="<?php bloginfo('template_url'); ?>/mystyle.css?ver=<?=time()?>" type="text/css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="<?php bloginfo('template_url'); ?>/js/hoverIntent.js"></script>
<script src="<?php bloginfo('template_url'); ?>/js/superfish.js"></script>
<script language="javascript">
jQuery(document).ready(function(){
jQuery('ul#mainmenu_nhe').superfish({
animation: {height:'show'}, // slide-down effect without fade-in
delay: 1200 // 1.2 second delay on mouseout
});
});
</script>
<script type="text/javascript" src="<?php bloginfo('template_url');?>/js/addclass.js"></script>
<?php wp_footer(); ?>
</body>
</html>