<?php



/*



Template Name: Home1



*/





$post_meta = get_post_meta(get_the_ID());

$st_section1 = $post_meta['st_section1_id'][0];

$st_section2 = $post_meta['st_section2_id'][0];

$st_section3 = $post_meta['st_section3_id'][0];



if (class_exists("\\Elementor\\Plugin")) {

    $post_ID1 = $st_section1;

    $post_ID2 = $st_section2;

    $post_ID3 = $st_section3;

    $pluginElementor = \Elementor\Plugin::instance();

    $content1 = $pluginElementor->frontend->get_builder_content($post_ID1);

    $content2 = $pluginElementor->frontend->get_builder_content($post_ID2);

    $content3 = $pluginElementor->frontend->get_builder_content($post_ID3);

}



$args = array(

    'post_type' => 'home_block',

    'posts_per_page' => -1,

    'orderby' => 'menu_order',

	'order' => 'ASC',

);



$home_block = get_posts($args);



$custom_logo_id = get_theme_mod('custom_logo');

$logo_image = wp_get_attachment_image_src($custom_logo_id, 'full');



$logo2 = get_custom('logo_2');

$logo3 = get_custom('logo_3');


?>

	

<!DOCTYPE html

	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">



<head>

	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0" />

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<meta prefix="og: http://ogp.me/ns#" property="og:image"

		content="https://imas.org.sg/imasconference2024/share.jpg?v4" />

	<meta name="format-detection" content="telephone=no">

	<title><?php echo get_bloginfo( 'name' ); ?> | <?php echo get_bloginfo( 'description' ); ?></title>

<base href="<?php echo get_template_directory_uri(); ?>/">

<meta property="og:description" content="Business leaders across the globe are faced with an increasing scope of responsibility and complexity of decision-making amidst unprecedented volatility and market." />

		
<meta name="description" content="Business leaders across the globe are faced with an increasing scope of responsibility and complexity of decision-making amidst unprecedented volatility and market."/>



<meta name="twitter:description" content="Business leaders across the globe are faced with an increasing scope of responsibility and complexity of decision-making amidst unprecedented volatility and market." />

<meta property="og:image" content="https://imas.org.sg/imasconference2024/share.jpg?v4">

	<link rel="Shortcut Icon" href="images/favicon.ico" type="image/x-icon" />

	<link rel="Bookmark" href="images/favicon.ico" type="image/x-icon" />

	<link rel="icon" href="images/favicon.ico" type="image/x-icon" />

	<link href="css/conferenceFont.css?<?php echo date('YmdHis');?>" rel="stylesheet" type="text/css" />

	<link href="css/iconfont.css" rel="stylesheet" type="text/css" />

	<link href="css/layout.css?v2" rel="stylesheet" type="text/css" />

	<link href="css/nav.css?v2" rel="stylesheet" type="text/css" />

	<link href="css/template.css" rel="stylesheet" type="text/css" />

	<link href="css/conferenceForm.css" rel="stylesheet" type="text/css" />

	<link href="css/conferenceFormResponsive.css" rel="stylesheet" type="text/css" />

	<link href="css/cont.css?v6" rel="stylesheet" type="text/css" />

	<link href="css/responsive.css" rel="stylesheet" type="text/css" />

	<link href="https://fonts.googleapis.com/css?family=Open+Sans:300i,400,600,700&display=swap" rel="stylesheet">

	<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>

	<script type="text/javascript" src="js/jquery.nav.js"></script>

	<script type="text/javascript" src="js/default.js"></script>



<?php wp_head(); ?>

<style>
.mobile_div {
	position:relative;
}

.logo_hidden {
	position:absolute;
	bottom:-10px;
	height:60px;
	left:100px;
	width:40%;
}

.subTitle {
	font-size:19px;
}
</style>

</head>



<body class="pageHome">



	<div id="topBar">

		<div class="wideContainer">

			<div class="navbarWrap">

				<div class="navbar jsNav">

					<ul>

						<li class="current"><a href="#screenHome">Home</a></li>

						<li><a href="#sectionAbout">About the Event</a></li>

						
						<?php if(get_custom('turn_on_programme') == 1): ?>	
						<li class="external"><a href="<?php echo home_url();?>/programme">Programme</a></li>
						<?php endif; ?>						
						<?php if(get_custom('turn_on_speaker_page') == 1): ?>						
						<li class="external"><a href="<?php echo home_url();?>/our-speakers">Our Speakers</a></li>
						<?php endif; ?>
						
						<?php if(get_custom('turn_on_sponsors') == 1): ?>	
						<li><a href="#sectionSponsors">Sponsorship</a></li>
						<?php endif; ?>			
								

					</ul>

				</div>

				<div id="btnMenu" class="showMobile btnMenu"><span class="icon icon-menu"></span><span

						class="icon icon-close"></span></div>

			</div>

			<a href="<?php echo home_url();?>" class="logo"><img src="<?php echo $logo_image[0]; ?>" />

			</a>

			<?php if($logo2 != ''): ?>

			<a href="<?php echo home_url();?>" class="logo2">

				<img src="<?php echo $logo2; ?>">

			</a>

			<?php endif; ?>

			<?php if($logo3 != ''): ?>

			<a href="<?php echo home_url();?>" class="logo3">

				<img src="<?php echo $logo3; ?>">

			</a>

			<?php endif; ?>

		</div>

	</div>



	

	<div id="screenHome" style='background: #050f18 url(<?php echo get_custom('home_banner') ; ?>)  center/cover no-repeat;cursor:pointer' onclick="window.location='https://imas.org.sg/imasconference2024/main/';">
		
		<img src="images/banners/land.png?v3" class="land">
		
		<a href="https://www.bloomberg.com/professional/expertise/buy-side/" target="_blank" class="logo_hidden">
					
				</a>
		<a href="https://imas.org.sg/imasconference2024/main/"><img src="<?php echo get_custom('home_banner_mobile') ; ?>?v4" class="mobile"></a>
		<div class="wideContainer">

			<div class="leftBar"></div>

			<div class="content">

				<div class="subTitle" style="display:none;"><?php echo get_custom('home_banner_text1') ; ?> </div>

				<h1 style="display:none;">

					<?php echo get_custom('home_banner_text2') ; ?>

					

				</h1>

				<div class="subTitle2" style="display:none;">
							<br>
							<img src="images/icon-date.png" width="35"> 9 March 2023 <br>
							<img src="images/icon-location.png" width="35"> PARKROYAL COLLECTION Marina Bay
							

						</div>

						<div class="home_button" style="display:none;">
<p><strong style="color:#fff;font-size:22px;">Registration closes on 2 March.</strong></p>
					<!-- <a href="https://imas.org.sg/imasconference2024/wp-content/uploads/2022/12/IMAS-Bloomberg-Investment-Conference-2023.ics">Save the Date!</a>
					<a href="http://www.imasconference.com/">Login</a>-->

				</div>

			</div>

			<div class="homeFooter">

				<div class="title"><?php echo get_custom('home_banner_text4') ; ?></div>

				<div class="logo">

					<a href="https://imas.org.sg/" target="_blank"><img src="https://imas.org.sg/imasconference2024/wp-content/uploads/2022/10/whitelogo.png" /></a>

				</div>
				
				<!--<a href="https://www.bloomberg.com/professional/expertise/buy-side/" target="_blank" class="logo">
					<img src="images/Bloomberg-Logo-white2.png">
				</a>
				-->





			</div>

		</div>

	</div>

	<div class="sectionRow sectionRow1" id="sectionAbout">

		<div class="wideContainer">

			<div class="leftBar grey"></div>



			<div class="container">

<?php



			// Start the Loop.

			while ( have_posts() ) :

				the_post();



				the_content();



			endwhile; // End the loop.

			?>



			</div>





		</div>

	</div>

		<div class="sectionRow2">

		<div class="sectionRow2Inner">

			<?php foreach($home_block as $counter=>$h): ?>

			<?php

							
				$post_meta = get_post_meta($h->ID);
				
				$subtitle = '';

				$subtitle = $post_meta['st_subtitle'][0];

				$url = wp_get_attachment_url( get_post_thumbnail_id($h->ID), 'full' );

				$content = $h->post_content;

			

			?>

			<?php if($counter % 2 == 0): ?>

			<div class="rowInner">

				<div class="boxPhotoWrap boxPhotoWrap1"><div class="boxPhoto" style="background-image: url(<?php echo $url; ?>)"></div></div>

				<div class="boxContent boxContent1">

					<div class="content">
						<span class="subTitle"><?php echo $subtitle; ?></span><br>
						<h5><?php echo $h->post_title; ?></h5>

						<?php echo do_shortcode($content); ?>

					</div>

				</div>

			</div>

			<?php else: ?>

			<div class="rowInner">

				<div class="boxPhotoWrap boxPhotoWrap2"><div class="boxPhoto" style="background-image: url(<?php echo $url; ?>)"></div></div>

				<div class="boxContent boxContent2">

					<div class="content">

						<span class="subTitle"><?php echo $subtitle; ?></span><br>
						<h5><?php echo $h->post_title; ?></h5>

						<?php echo do_shortcode($content); ?>

					</div>

				</div>

			</div>

			

			<?php endif; ?>

			<?php endforeach; ?>

		</div>

	</div>





	<div class="sectionRow sectionRow3" style="display:none">

		<div class="wideContainer">

			<div class="leftBar blue" style="background:rgba(0, 0, 0, 0.15);"></div>



			<div class="container">

				<div class="row">

					<div class="col-lg-12">

						<div class="sectionHeader">

							<?php echo $content2; ?>





						</div>



					</div>

				</div>



			</div>

		</div>

	</div>



	<div class="sectionRow sectionRow4">

		<div class="wideContainer">

			<div class="leftBar grey"></div>





			<div class="container">

				<div class="row">

					<div class="col-lg-12">

						<div class="sectionHeader">

							<h3>IMAS Investment Conference & Masterclass 2024 <!--COUNTDOWN--></h3>



							<h5>EVENT STARTING IN:</h5>

							<div><span id="countdown"></span></div>

						     

							<!-- <br /><br />  -->

							<!--<h5>EARLY BIRD DISCOUNT ENDING IN:</h5>

							<div><span id="countdownEarly"></span></div>
-->
									<div class="btnCenter"><a href="https://imas.org.sg/imasconference2024/main/" class="btn btnWhite btnLarge" target="_blank">Register Now!</a></div>






						</div>



					</div>

				</div>



			</div>

		</div>

	</div>



	<script>



		function countdown(dateStr, target) {

			var countDownDate = new Date(dateStr).getTime();

			var now = new Date().getTime();

			var distance = countDownDate - now;





			var days = Math.floor(distance / (1000 * 60 * 60 * 24));

			var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));

			var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));

			var seconds = Math.floor((distance % (1000 * 60)) / 1000);



			document.getElementById(target).innerHTML = days + " days " + hours + " hrs " + minutes + " mins";

			//  + seconds + " secs ";



			if (distance < 0) {

				document.getElementById(target).innerHTML = "EXPIRED";

			}

			return distance;

		}



		function setCountDown(dateStr, target) {

			if (countdown(dateStr, target) >= 0) {

				var x = setInterval(function () {

					if (countdown(dateStr, target) < 0) {

						clearInterval(x);



					}

				}, 1000 * 60);

			}

		}



		setCountDown("2024-03-27T09:00:00", "countdown");

		//setCountDown("2021-03-01T23:59:00", "countdownEarly");



	</script>



	<div class="sectionRow sectionRowSponsors" id="sectionSponsors">

		<div class="wideContainer">

			<div class="leftBar default"></div>



			<div class="container">

				

				<div class="sponsorships" style="padding-top:0px;">

					<?php echo $content3; ?>

				</div>



			</div>

		</div>

	</div>










	<div id="footerWrap">

		<div class="wideContainer">

			<div class="leftBar footer"></div>



			<div class="linksWrap">

				<div class="container">

					<div class="row">

					

						<div class="col-lg-6 col-md-4 col-xs-12">

						

						

							<div class="homeFooter homeFooter2">

								<div class="title">Organised by:</div>

								<div class="logo">

									<img src="images/imas-white-300px.png" />

								</div>

								
								<!--<a href="https://www.bloomberg.com/professional/expertise/buy-side/" target="_blank" class="logo logo2">

					<img src="images/Bloomberg-Logo-white2.png" />

				</a>
				-->

							</div>

							

							

						</div>

						

						<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">

							</h5>

							<a href="<?php echo home_url();?>/#screenHome">Home</a><br>

							<a href="<?php echo home_url();?>/#sectionAbout">About the Event</a><br>

							<a href="<?php echo home_url();?>/programme">Programme</a><br>

							<?php if(get_custom('turn_on_speaker_page') == 1): ?>	

							<a href="<?php echo home_url();?>/our-speakers">Our Speakers</a><br>

							<?php endif; ?>

							<a href="<?php echo home_url();?>/#sectionSponsors">Sponsorship</a><br>

						</div>



						<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">

							<h5><span>Contact Us</span></h5>

	

							<b>IMAS Secretariat</b><br/>

							3 Phillip Street<br />

							Royal Group Building #07-01<br />

							Singapore 048693<br />

							<b>Tel:</b> +65 6223 9353<br />

							<b>Fax:</b> +65 6223 9352<br/>

							<b>Email:</b> <a href="mailto:conference@imas.org.sg">conference@imas.org.sg</a><br/>

						</div>

					</div>

				</div>

			</div>



			<div class="copyright">

				<div class="txt">© <?php echo date('Y'); ?> Investment Management Association of Singapore</div>

			</div>





		</div>

	</div>



    <?php wp_footer(); ?>



</body>



</html>

