
<?php get_header(); ?>

<?php global $themesbazar; ?>



              
            <!--==========top scroll start==============-->
			<?php if($themesbazar['top_scroll'] == 1 ): ?>
   
                
        <div class="top-scroll-section">
            <div class="container">
                <div class="row">
                    <div class="top_scroll">
                        <div class="col-md-2 col-sm-3">
                            <div class="top_scrool_1">
							<?php echo $themesbazar['top_scroll_title'] ?>
                            </div>
                        </div>
                        <div class="col-md-10 col-sm-9">
							
                                <div class="top_scrool_2">
								
							
															
								   <marquee direction = "left" scrollamount="4px" onmouseover="this.stop()" onmouseout="this.start()">
							<?php 
								$how_post= $themesbazar['how-to-notic'];
								$total_how_post=$how_post-0;
								$themes_bazar = new WP_Query(array(
									'post_type' => 'notic',
									'posts_per_page' => $total_how_post,
									'offset'     =>0,
								));
								while($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>								   
								   <a href="<?php the_permalink()?>"> <?php the_title() ?> <i class="fa fa-square" aria-hidden="true"></i> </a>
								 <?php endwhile?>

								   </marquee>
									
							   
								 
								</div>
							
                        </div>
                    </div>
                </div>
            </div>
        </div>
                
					<?php endif; ?>
			<?php if($themesbazar['top_scroll'] == 2 ): ?>
					<?php endif; ?>
              <!--==========top scroll End==============-->
			  
			  
               
                                       
                                                                                       
                <!--================================
                          silder-section-start
                ===============================-->         
              
            <div class="home-silider-section">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="home-slide owl-carousel">
								<?php 
								$how_post= $themesbazar['how-to-gallery'];
								$total_how_post=$how_post-0;
								$themes_bazar = new WP_Query(array(
									'post_type' => 'home-gallery',
									'posts_per_page' => $total_how_post,
									'offset'     =>0,
								));
								while($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>
                                <div class="home-silde-image">
                                  <img src="<?php echo get_post_meta(get_the_ID(),'home-pic', true); ?>" alt="gallery">
                                </div>
								
							<?php endwhile?>
                            </div>
                            
                        </div>
                      
                    </div>
                </div>
            </div>

                     <!--================================
                                silder-section-End
                        ===============================--> 
                        
                          <!--==========bottom-scroll-section ==============-->
		<?php if($themesbazar['bottom_scroll'] == 1 ): ?>
   
                                
        <div class="bottom-scroll-section">
            <div class="container">
                <div class="row">
                    <div class="bottom_scroll">
                        <div class="col-md-2 col-sm-3">
                            <div class="bottom_scrool_1">
								<?php echo $themesbazar['ann-title'] ?>
                            </div>
                        </div>
                        <div class="col-md-10 col-sm-9">
						
							<div class="bottom_scrool_2">
								  <marquee direction = "left" scrollamount="4px" onmouseover="this.stop()" onmouseout="this.start()">
							<?php 
								$how_post= $themesbazar['how-to-anno'];
								$total_how_post=$how_post-0;
								$themes_bazar = new WP_Query(array(
									'post_type' => 'Announce',
									'posts_per_page' => $total_how_post,
									'offset'     =>0,
								));
								while($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>								   
								   <a href="<?php the_permalink()?>"> <?php the_title() ?> <i class="fa fa-square" aria-hidden="true"></i> </a>
								 <?php endwhile?>

								   </marquee>
								
								
							</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
                <?php endif; ?>
			<?php if($themesbazar['bottom_scroll'] == 2 ): ?>
					<?php endif; ?>
              <!--==========bottom-scroll-section==============--> 




			  
  
        <div class="home-section">
            <div class="container">
                <div class="row">
                    <div class="col-md-9">
                        <!--================ history Section start=================-->
						<?php
					$themes_bazar = new WP_Query(array(
						'post_type' => 'about',
						'posts_per_page' => 1,
						'offset' => 0,
						
					));
					while ($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>
						<div class="history-wrpp">
                            <div class="history-image">
                                 <?php the_post_thumbnail();?>
                            </div> 
                               
                            <div class="history-content">
                            <?php echo excerpt(80); ?><a href="<?php the_permalink()?>"><?php echo $themesbazar['redmore-bt']?></a>
                            </div>
						</div>
						<?php endwhile?>
                        
                <!--================ history Section End=================-->
                
                
  
                <div class="row">
                    
                    <?php
					$themes_bazar = new WP_Query(array(
						'post_type' => 'speech_tow',
						'posts_per_page' => 2,
						'offset' => 0,
						
					));
					while ($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>
					<div class="col-md-6">
                <div class="president-wrpp">
                    <div class="president-deg">
						<?php the_title() ?>
                    </div>
                    <div class="president-image">
                          <?php the_post_thumbnail();?>
                    </div>

                    <div class="president-title">
				 <?php echo excerpt("100"); ?><span style="text-align:right"><a href="<?php the_permalink();?>"><?php echo $themesbazar['redmore-bt']?></a></span>
                    </div>
                </div>
                </div>
				<?php endwhile?>
				
                     
                  
                    </div>
  
                
                <div class="row">
                        <div class="col-md-12">
                            <?php dynamic_sidebar('widget_area_01')?>
                            
                        </div>
                        
                        </div>
                
                
                
                <!--================ services Section start=================-->
						<?php if($themesbazar['home_one'] == 1 ): ?>
                    <div class="row">
                        <div class="col-md-6 col-sm-6">
                           <div class="services-wrpp">
                               <div class="cat-title">
									<?php echo $themesbazar['menuone']?>
                                </div>
                                <div class="service-image">
                                    <img src="<?php echo $themesbazar['image-one']['url']?>" alt="">
                                </div>
                                <div class="services-content">
                                  <?php
									wp_nav_menu( array('theme_location' => 'homemenuone',
									)); ?>
                                </div>
                           </div>
                            
                        </div>
                      <div class="col-md-6 col-sm-6">
                           <div class="services-wrpp">
                               <div class="cat-title">
									<?php echo $themesbazar['menutwo']?>
                                </div>
                                <div class="service-image">
                                    <img src="<?php echo $themesbazar['image-two']['url']?>" alt="">
                                </div>
                                <div class="services-content">
                                    <?php
										wp_nav_menu( array('theme_location' => 'homemenutwo',
									)); ?>
                                </div>
                           </div>
                            
                        </div>
                      
                    </div>
                    <?php endif; ?>
			<?php if($themesbazar['home_one'] == 2 ): ?>
					<?php endif; ?>
						
						
						
						<?php if($themesbazar['home_two'] == 1 ): ?>
                    
                 <div class="row">
                        <div class="col-md-6 col-sm-6">
                           <div class="services-wrpp">
                               <div class="cat-title">
									<?php echo $themesbazar['menuthree']?>
                                </div>
                                <div class="service-image">
                                    <img src="<?php echo $themesbazar['image-three']['url']?>" alt="">
                                </div>
                                <div class="services-content">
                                    <?php
										wp_nav_menu( array('theme_location' => 'homemenuthree',
									)); ?>
                                </div>
                           </div>
                            
                        </div>
                      <div class="col-md-6 col-sm-6">
                           <div class="services-wrpp">
                               <div class="cat-title">
									<?php echo $themesbazar['menufour']?>
                                </div>
                                <div class="service-image">
                                    <img src="<?php echo $themesbazar['image-four']['url']?>" alt="">
                                </div>
                                <div class="services-content">
                                    <?php
										wp_nav_menu( array('theme_location' => 'homemenufour',
									)); ?>
                                </div>
                           </div>
                            
                        </div>
                      
                    </div>
                
                         <?php endif; ?>
			<?php if($themesbazar['home_two'] == 2 ): ?>
					<?php endif; ?>
						
						
						
                  <?php if($themesbazar['home_three'] == 1 ): ?>  
                 <div class="row">
                        <div class="col-md-6 col-sm-6">
                           <div class="services-wrpp">
                               <div class="cat-title">
									<?php echo $themesbazar['menufive']?>
                                </div>
                                <div class="service-image">
                                    <img src="<?php echo $themesbazar['image-five']['url']?>" alt="">
                                </div>
                                <div class="services-content">
                                    <?php
										wp_nav_menu( array('theme_location' => 'homemenufive',
									)); ?>
                                </div>
                           </div>
                            
                        </div>
                      <div class="col-md-6 col-sm-6">
                           <div class="services-wrpp">
                               <div class="cat-title">
									<?php echo $themesbazar['menusix']?> 
                                </div>
                                <div class="bangladesh-image">
                                    <img src="<?php echo $themesbazar['image-six']['url']?>" alt="">
                                </div>
                                <div class="services-content">
                                    <?php
										wp_nav_menu( array('theme_location' => 'homemenusix',
									)); ?>
                                </div>
                           </div>
                            
                        </div>
                      
                    </div>
                
                     <?php endif; ?>
			<?php if($themesbazar['home_three'] == 2 ): ?>
					<?php endif; ?>
						
						
					 <?php if($themesbazar['home_four'] == 1 ): ?> 	
                 <div class="row">
                    <div class="col-md-6 col-sm-6">
                       <div class="services-wrpp">
                           <div class="cat-title">
								<?php echo $themesbazar['menuseven']?> 
                            </div>
                            <div class="service-image">
                                <img src="<?php echo $themesbazar['image-seven']['url']?>" alt="">
                            </div>
                            <div class="services-content">
                                <?php
									wp_nav_menu( array('theme_location' => 'homemenuseven',
								)); ?>
                            </div>
                       </div>

                    </div>
                        <div class="col-md-6 col-sm-6">
                           <div class="services-wrpp">
                               <div class="cat-title">
									<?php echo $themesbazar['menueight']?>
                                </div>
                                <div class="service-image">
                                    <img src="<?php echo $themesbazar['image-eight']['url']?>" alt="">
                                </div>
                                <div class="services-content">
								<?php
									wp_nav_menu( array('theme_location' => 'homemenueight',
								)); ?>
                                </div>
                           </div>
                            
                        </div>
                      
                    </div>
                
                  <?php endif; ?>
			<?php if($themesbazar['home_four'] == 2 ): ?>
					<?php endif; ?>
						
				<?php if($themesbazar['home_five'] == 1 ): ?> 	
                 <div class="row">
                    <div class="col-md-6 col-sm-6">
                       <div class="services-wrpp">
                           <div class="cat-title">
								<?php echo $themesbazar['menunine']?>
                            </div>
                            <div class="service-image">
                                <img src="<?php echo $themesbazar['image-nine']['url']?>" alt="">
                            </div>
                            <div class="services-content">
                                <?php
									wp_nav_menu( array('theme_location' => 'homemenunine',
								)); ?>

                            </div>
                       </div>

                    </div>
                        <div class="col-md-6 col-sm-6">
                           <div class="services-wrpp">
                               <div class="cat-title">
									<?php echo $themesbazar['menuten']?>
                                </div>
                                <div class="service-image">
                                    <img src="<?php echo $themesbazar['image-ten']['url']?>" alt="">
                                </div>
                                <div class="services-content">
                                    <?php
									wp_nav_menu( array('theme_location' => 'homemenuten',
									)); ?>
                                </div>
                           </div>
                            
                        </div>
                      
                    </div>
                <?php endif; ?>
			<?php if($themesbazar['home_five'] == 2 ): ?>
					<?php endif; ?>
                <!--================ services Section End=================-->
                
                
                  
                
                <!--================ Recent Event Section start=================-->
            <div class="video-section">
                <div class="row">
                    <div class="col-md-12">
                       <div class="video-title">
                          <i class="fa fa-plug" aria-hidden="true"></i>
<?php echo $themesbazar['recent-t']?>
                       </div>
                        <div class="video-gallery owl-carousel">
							<?php
								$x=1;
								$how_post= $themesbazar['how-recent'];
								$total_how_post=$how_post-0;
								$themes_bazar = new WP_Query(array(
									'post_type' => 'recent',
									'posts_per_page' => $total_how_post,
									'offset'     =>0,
								));
								while($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>
								<?php $xx=$x++ ?>
							<div class="recent-imgae"> 
								<?php the_post_thumbnail();?>
								<div class="video-content">
								<a href="<?php the_permalink()?>"><?php the_title() ?> </a> 
								</div>
                            
							</div>
                            
                            <?php endwhile?>
                            
                           
                            
                        </div>
                    </div>
                </div>   
            </div>                   
                
                <!--================ Recent Event Section End=================-->
						
						
						
                
                <!--================ video Section start=================-->
            <div class="video-section">
                <div class="row">
                    <div class="col-md-12">
                       <div class="video-title">
                           <i class="fa fa-video-camera" aria-hidden="true"></i><?php echo $themesbazar['videos']?>
                       </div>
                        <div class="video-gallery owl-carousel">
							<?php
								$x=1;
								$how_post= $themesbazar['how-video'];
								$total_how_post=$how_post-0;
								$themes_bazar = new WP_Query(array(
									'post_type' => 'video',
									'posts_per_page' => $total_how_post,
									'offset'     =>0,
								));
								while($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>
								<?php $xx=$x++ ?>
						
                            <div class="video-item">
                              <?php echo the_content();?>
                            </div>
                            
                            <?php endwhile?>
                            
                           
                            
                        </div>
                    </div>
                </div>   
            </div>   
                
                
                
                
                
                <!--================ video Section End=================-->
                  
             
                  
                  
                  
                   
                  
                    </div>
                    
                    <div class="col-md-3 col-sm-8">
                    
                <!--=======president section start========-->
				
				<?php
					$themes_bazar = new WP_Query(array(
						'post_type' => 'speech',
						'posts_per_page' => 2,
						'offset' => 0,
						
					));
					while ($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>
                <div class="president-wrpp">
                    <div class="president-deg">
						<?php the_title() ?>
                    </div>
                    <div class="president-image">
                          <?php the_post_thumbnail();?>
                    </div>

                    <div class="president-title">
				 <?php echo excerpt($themesbazar['excerpt-speech']); ?><span style="text-align:right"><a href="<?php the_permalink();?>"><?php echo $themesbazar['redmore-bt']?></a></span>
                    </div>
                </div>
				<?php endwhile?>
				
                                
                
                
                <!--=======president section End========-->
                
                
                <div class="row">
                        <div class="col-md-12">
                            <?php dynamic_sidebar('sidebar_widget')?>
                            
                        </div>
                        
                        </div>
                
                
                <!--=======notic section Start========-->
                
                <div class="notic-wrpp">
                    <div class="notic-title">
						<?php echo $themesbazar['top_scroll_title'] ?>
                    </div>
                    <div class="notic-content">
                        <ul>
							<?php 
								$how_post= $themesbazar['how-to-notic'];
								$total_how_post=$how_post-0;
								$themes_bazar = new WP_Query(array(
									'post_type' => 'notic',
									'posts_per_page' => $total_how_post,
									'offset'     =>0,
								));
								while($themes_bazar->have_posts()) : $themes_bazar->the_post(); ?>
                            <li><a href="<?php the_permalink()?>"> <?php the_title() ?></a></li>
							<?php endwhile?>
							
                            
                        </ul>
                    </div>
                    
                </div>
                
                
                
                
                
                <!--=======notic section End========-->
              
						
                          
                <!--=======Link section Start========-->
                
                <div class="link-wrpp">
                    <div class="link-title">
						<?php echo $themesbazar['menueleven'] ?>
                    </div>
                    <div class="link-content">
                        <?php
						wp_nav_menu( array('theme_location' => 'homemenueleven',
						)); ?>
                    </div>
                    
                </div>
                
                
                
                
                
                <!--=======Link section End========-->
                       
                       
                       
                       
                       
                        
                    </div>
                    
                </div>
            </div>
        </div>
    
    <?php get_footer();
			get_template_part('include/root');
			wp_footer();
			?>