<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >
<!----Banner Start---->
	<div class="fd_bread_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_bread">
						<h1 class="fd_page_title"><span>gallery</span></h1>
						<nav aria-label="breadcrumb">
						  <ol class="breadcrumb">
							<li class="breadcrumb-item"><a href="<?php echo base_url(); ?>">Home</a></li>
							<li class="breadcrumb-item active" aria-current="page">gallery</li>
						  </ol>
						</nav>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!----Gallery Section Start---->
    <?php if($this->hs->getwebsettings('gallery_section') == 1){  ?> 
	<?php if(!empty($all_portfolio)){ ?>
	<div class="fd_gallery_wrapper fd_inner_gallery">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_heading text-center btm_marger50">
					<?php if($this->hs->getwebsettings('galleryheading_show') == 1){  ?>
						<h2><?php echo $this->hs->getwebsettings('galleryheading_text'); ?></h2>
					<?php } ?>
						<?php if($this->hs->getwebsettings('gallerytitle_show') == 1){  ?>
						<h1><?php echo $this->hs->getwebsettings('gallerytitle_text'); ?></h1>
						<?php } ?>
					</div>
				</div>
				<div class="col-lg-12">
					<div class="grid">
                        <div class="fd_gal_wrapper" id="show_portfolio">
							<div class="grid-sizer"></div>
							<?php 
							  foreach($all_portfolio as $portfolio){ ?>
                            <div class="element-item">
                                <div class="fd_gal_box">
									<div class="fd_gallery_img">
										<img src="<?php echo base_url().$portfolio->portfolio_image; ?>" alt="" class="img-fluid"/>
										<div class="fd_img_overlay">
											<a href="<?php echo base_url().$portfolio->portfolio_image; ?>"><span class="fd_gal_icon"><img src="<?php echo base_url(); ?>themeassets/images/svg/search.svg" alt=""></span></a>
										</div>										
										<div class="fd_galimg_overlay"></div>
									</div>
                                </div>
                            </div>
							<?php 
								} 
							?>
						</div>	
						<div class="fd_btn_wrapper">
							<a href="javascript:;" onclick="loadmore_portfolio();" class="fd_btn" id="loadmre_btn">view more</a>
						</div>
                    </div>
				</div>
			</div>
		</div>
	</div>
	<?php } 
	  } 
	?>
	<!----App Wrapper Section Start---->
	<?php if($this->hs->getwebsettings('mobileapp_section') == 1){ ?> 
	<div class="fd_app_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-6">
					<div class="fd_app_img">
						<?php $mobileapp_img = $this->hs->getwebsettings('mobileapp_img');
							if(!empty($mobileapp_img)){
						?>
						<img src="<?php echo base_url().$mobileapp_img; ?>" alt="" class="img-fluid">
						<?php }else{ ?>
							<img src="<?php echo base_url()?>themeassets/images/app.png" alt="" class="img-fluid">
						<?php } ?>
					</div>
				</div>
				<div class="col-lg-6">
					<div class="fd_app_data">
						<div class="fd_heading">
						<?php if($this->hs->getwebsettings('mobileappheading_show') == 1){  ?>
						    <h2><?php echo $this->hs->getwebsettings('mobileappheading_text'); ?></h2>
						<?php } ?>
							<?php if($this->hs->getwebsettings('mobileapptitle_show') == 1){  ?>
							<h1><?php echo $this->hs->getwebsettings('mobileapptitle_text'); ?></h1>
							<?php } ?>
						</div>
						<?php if($this->hs->getwebsettings('mobileappdescr_show') == 1){  ?>
						<p><?php echo $this->hs->getwebsettings('mobileappdescr_text'); ?></p>
						<?php } ?>
						<?php if($this->hs->getwebsettings('mobileappdownload_show') == 1){  ?>
						<h3><?php echo $this->hs->getwebsettings('mobileappdownload_text'); ?></h3>
						<?php } ?>
						<div class="fd_app_btn">
							<a <?php if($this->hs->getwebsettings('googleplayurl_show') == 1){ ?>href="<?php echo $this->hs->getwebsettings('googleplayurl_text'); } ?>">
							<?php  $google_store_img = $this->hs->getwebsettings('googlestore_img');
							if(!empty($google_store_img)){
							?>
							<img src="<?php echo base_url().$google_store_img; ?>" alt="" class="img-fluid">
							<?php }else{   ?>
								<img src="<?php echo base_url(); ?>themeassets/images/google_play.png" alt="" class="img-fluid">
							<?php } ?>
							</a>
							<a <?php if($this->hs->getwebsettings('iosstoreurl_show') == 1){ ?> href="<?php echo $this->hs->getwebsettings(
							'iosstoreurl_text'); } ?>"><?php  $iosmob_img = $this->hs->getwebsettings('iosstore_img');
							if(!empty($iosmob_img)){
							?>
							<img src="<?php echo base_url().$iosmob_img; ?>" alt="" class="img-fluid"> 
							<?php }else{  ?>
							<img src="<?php echo base_url(); ?>themeassets/images/app_store.png" alt="" class="img-fluid">
							<?php } ?>
							</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="fd_overlay"></div>
	</div>
	<?php } ?>
 