| Server IP : 14.225.204.176 / Your IP : 216.73.216.169 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/langngon.com/wp-content/themes/langngon/ |
Upload File : |
<?php
/**
* Template Name: Contact Template
* Display page for the theme.
*
* @copyright ZiniMedia 2016
* @version Release: 1.0
* @package langngon
* @author ZiniMedia-BM
*/
?>
<?php
//page Lang Ngon original
$the_slug_1 = 'lang-ngon-original';
$args = array(
'name' => $the_slug_1,
'post_type' => 'page',
'post_status' => 'publish',
'numberposts' => 1
);
$my_posts_1 = get_posts($args);
if( $my_posts_1 ){
$page1 = $my_posts_1[0];
wp_reset_query();
}
//page Lang Ngon Corner
$the_slug_2 = 'lang-ngon-corner';
$args = array(
'name' => $the_slug_2,
'post_type' => 'page',
'post_status' => 'publish',
'numberposts' => 1
);
$my_posts_2 = get_posts($args);
if( $my_posts_2 ){
$page2 = $my_posts_2[0];
wp_reset_query();
}
?>
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="parallax-sub-contact">
<div class="parallax-subpage"></div>
</div>
<section>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1 class="highlight contact-title uppercase text-center space30"><?php the_title(); ?></h1>
<div class="row contact-form">
<div class="col-md-6 left">
<div class="row text-left">
<div class="col-12 col-sm-12 col-md-12">
<p><strong><?php echo $page1->post_title?></strong></p>
<p><a href="https://goo.gl/maps/LT4HKfaqrhGNRZfX9"><?php the_field("zini_header_address_1",'option'); ?></a></p>
<p><?php the_field("zini_header_time_1",'option'); ?></p>
<p><a href="https://www.facebook.com/langngon.nhatrang">Follow us on Facebook </a></p>
</div>
<div class="col-12 col-sm-12 col-md-12">
<p><strong><?php echo $page2->post_title?></strong></p>
<p><a href="https://goo.gl/maps/HeVYKupm5BdVH51k9"><?php the_field("zini_header_address_2",'option'); ?></a></p>
<p><?php the_field("zini_header_time_2",'option'); ?></p>
</div>
<div class="col-12 col-sm-12 col-md-12">
<br>
<p style="text-transform: uppercase;font-style: normal">Hotline: <a href="tel:<?php the_field("zini_header_phone_1",'option'); ?>"><?php the_field("zini_header_phone_1",'option'); ?></a> - <a href="tel:<?php the_field("zini_header_phone_2",'option'); ?>"><?php the_field("zini_header_phone_2",'option'); ?></a></p>
</div>
</div>
</div>
<div class="col-md-6">
<?php the_content(); ?>
</div>
</div>
</div>
</div>
</div>
</section>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>