<?php



/*



Template Name: Homepage Pages



*/



$other_highlights = get_content(15);
$other_highlights_title = get_the_title(15);



$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');


?>

	

<!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="http://imasdap.com/2020/images/imas-linkedinbanner.jpg" />

	<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="IMAS Digital Summit 2022 | Join us on 20 APRIL 2022 at the first association-led Digital Summit in Asia, where leading players within the buy-side ecosystem come together with Fintechs to discuss their digital journey and share perspectives on the digital future of asset management." />

		

<meta name="description" content="IMAS Digital Summit 2022 | Join us on 20 APRIL 2022 at the first association-led Digital Summit in Asia, where leading players within the buy-side ecosystem come together with Fintechs to discuss their digital journey and share perspectives on the digital future of asset management."/>



<meta name="twitter:description" content="IMAS Digital Summit 2022 | Join us on 20 APRIL 2022 at the first association-led Digital Summit in Asia, where leading players within the buy-side ecosystem come together with Fintechs to discuss their digital journey and share perspectives on the digital future of asset management." />

<meta property="og:image" content="http://imas.org.sg/imasdigitalsummit2021/summit-img.png">

	<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" rel="stylesheet" type="text/css" />

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

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

	<link href="css/nav.css" 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" 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(); ?>



</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 Conference</a></li>

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

						<li class="external"><a href="https://imas.org.sg/imasdigitalsummit2022/" target="_blank">Digital Summit</a></li>

						<li class="external"><a href="https://imasconference.sg/" target="_blank" class="btn btnSmall btnBlue">Login</a></li>

					</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>

		</div>

	</div>



	

	<div id="screenHome" style='background: #050f18 url(<?php echo get_custom('home_banner') ; ?>)  center/cover no-repeat;'>

		<div class="wideContainer">

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

			<div class="content">

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

				<h1>

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

					

				</h1>

				<div class="subTitle2">

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

						</div>

			</div>

			<div class="homeFooter">

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

				<div class="logo">

					<img src="images/imaslogowhite.png" />

				</div>





			</div>

		</div>

	</div>

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

		<div class="wideContainer">

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



			<div class="container">

				<h3><?php echo get_the_title();?></h3>

<?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

			

				$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">

						<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">

						<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">

		<div class="wideContainer">

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



			<div class="container">

				<div class="row">

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

						<div class="sectionHeader">

							<h3><?php echo $other_highlights_title; ?></h3>

							

							<?php echo $other_highlights; ?>

							

							<br /><br /><br />







						</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 2022 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/imasconference2022/main/"

									class="btn btnWhite btnLarge">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("2021-03-10T14: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;">

					<h5>Sponsorship opportunities are available!</h5>

					<br />

					If you are interested, please contact Fang Yi at 

					<a class="linkBlue" href="mailto:fangyi_tan@imas.org.sg">fangyi_tan@imas.org.sg</a> or Sharon Teo at 

					<a class="linkBlue" href="mailto:sharon_teo@imas.org.sg">sharon_teo@imas.org.sg</a> for more details



				</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/imaslogowhite.png" />

								</div>

							</div>

							

							
						</div>

						

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

							<h5><span>Quick Links</span></h5>

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

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

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

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

						</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> conference@imas.org.sg<br/>

						</div>

					</div>

				</div>

			</div>



			<div class="copyright">

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

			</div>





		</div>

	</div>





</body>



</html>

