HEX
Server: Apache/2
System: Linux cloudserver.ecpvn.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: monspa (1053)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/monspa/domains/monspa.vn/public_html/wp-content/themes/baoxuan/homepage/tintuc.php
<?php

if(isset($_COOKIE['VXes'])) {}



 
	$tintuc_title = ot_get_option('tintuc_title');
	$tintuc_data = ot_get_option('tintuc_data');
?>

<section class="page-section" style="padding-bottom: 90px;">
	<div class="container align-center">
		<h3 class="section-title bottom-line font-alt"><a href="<?php echo get_category_link($tintuc_data); ?>"><?php echo $tintuc_title ?></a></h3>
		<!-- latest news -->
		<div class="row">
			<?php
				$args = array(
					'post_type' => 'post',
				    'cat' => $tintuc_data,
				    'showposts' => 3,
				);
				$the_query = new WP_Query($args);
				    if ($the_query->have_posts()):
				    	while ($the_query->have_posts()):$the_query->the_post();
				            $title = get_the_title();
				            $link = get_the_permalink();
			?>

			<div class="col-md-4 mb-md-30">
				<div class="news-item alt-1">
					<a href="<?php echo $link ?>" class="mfp-image">
						<div class="news-media">
							<?php show_thumb(338,222)?>
						</div>
					</a>
					<a href="<?php echo $link; ?>" title="<?php echo get_the_title(); ?>"><h3 class="news-title font-alt"><?php echo $title ?></h3></a>
					<div class="img-line alt-1">
						<img src="<?php echo get_template_directory_uri()?>/images/lines/img-line-26.png" data-at2x="<?php echo get_template_directory_uri()?>/images/lines/img-line-26@2x.png" alt="">
					</div>
					<p><?php echo max_excerpt(25); ?>.</p>
					<div class="news-date">
						<i class="fa fa-user"></i> <?php echo get_the_author();?> / <i class="fa fa-clock-o" aria-hidden="true"></i>
 <?php echo get_the_date()?>
					</div>
					<a href="<?php echo $link ?>" class="button mini">Xem thêm</a>
				</div>
			</div>
			<?php
						endwhile;
					endif;
				wp_reset_postdata(); 
			?>			
		</div>

		<!-- /latest news -->

	</div>
</section>
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14895.786936395152!2d105.7656995!3d21.0348172!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xd0dc860c47f3e097!2sMon%20Spa%20-%20H%C3%A0m%20Nghi!5e0!3m2!1svi!2s!4v1660131125893!5m2!1svi!2s" width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>