HEX
Server: Apache/2.4.49 (FreeBSD) OpenSSL/1.0.2s-freebsd PHP/5.6.36
System: FreeBSD hosting.icon.bg 11.3-RELEASE-p13 FreeBSD 11.3-RELEASE-p13 #0: Tue Sep 1 06:56:51 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
User: ftpuser (1002)
PHP: 5.6.36
Disabled: NONE
Upload Files
File: /hosting/kak.bg/web/wp-content/themes/Primero/homepage.php
<?php
// Template Name: Homepage
get_header(); ?>

	<?php //get_sidebar(); ?>


		
		<div class="bread-crumbs"></div>
		<!--div class="bread-crumbs"><span>You are here:</span>  <a href="#">Home</a> &rsaquo; About us</div-->
		
		<div class="content-container">
			
			<?php include 'slider.php'; ?>	
			
				
			
			
		</div><!-- close .content-container -->
		<div class="content-container-base-pagination"></div><!-- close .content-container-base or .content-container-base-pagination -->
		
		<div class="content-container">
			
			<?php

					if(have_posts()) 
						while(have_posts()): 
							the_post();
				?>
			
			<div class="tabs">
		        <ul class="tabNavigation">
					<?php
						if(of_get_option('homepage_content', 'yes') == 'yes'):
					?>
					<li><a href="#main"><?php the_title(); ?></a></li>
					<?php
						endif;
					?>
					<?php
						if(of_get_option('latest_video_tab', 'yes') == 'yes'):
					?>
		            <li><a href="#latest"><?php echo of_get_option('latest_videos_tab_text', 'Latest Videos'); ?></a></li>
					<?php
						endif;
					?>
					<?php
						if(of_get_option('recommended_vids', 'no') == 'yes'):
					?>
							<li><a href="#recommendations"><?php echo of_get_option('recommended_tab_text', 'Recommendations'); ?></a></li>
					<?php
						endif;
					?>
					<?php
						if(of_get_option('popular_vids', 'no') == 'yes'):
					?>
		            <li><a href="#popular"><?php echo of_get_option('popular_tab_text', 'Popular Videos'); ?></a></li>
					<?php
						endif;
					?>
					<?php
						if(of_get_option('more_vids', 'no') == 'yes'):
					?>
		            <li><a href="#more"><?php echo of_get_option('more_vids_tab_text', 'More Videos'); ?></a></li>
					<?php
						endif;
					?>
						<?php
						$args = array(
							'post_type' => 'page',
							'numberposts' => -1,
							'post_status' => null,
							'post_parent' => of_get_option('features_parent_page'),
						    'order' => 'ASC',
						    'orderby' => 'menu_order'
						);
						$slides = get_posts($args);
						if($slides):
							foreach($slides as $post): setup_postdata($post);
								$image_id = get_post_thumbnail_id();
								$image_url = wp_get_attachment_image_src($image_id, 'content-slider');
						?>
						<li>
							<a href="#<?php
							$title = get_the_title();
							$loweredTitle = strtolower($title);
							echo str_replace(" ", "_", $loweredTitle);
							?>"><?php the_title(); ?></a>
						</li>
						<?php endforeach; endif;?>
				

					<div class="clearfix"></div>
		        </ul>
		
				<?php
							endwhile;
						?>
				
				
				<?php
					if(of_get_option('homepage_content', 'yes') == 'yes'):
				?>
				
				<div id="main">
					<?php rewind_posts(); ?>
						<?php

								if(have_posts()) 
									while(have_posts()): 
										the_post();
							?>
										
					<?php the_content(); ?>
					
					
					<?php
								endwhile;
							?>
					
					<div class="home-page-older"></div>
		        </div>
				<?php
							endif;
						?>
						
		
				<?php
					if(of_get_option('latest_video_tab', 'yes') == 'yes'):
				?>
		        <div id="latest">
					<?php
						//fetch posts based on our taxonomy  (for 'portfolio' custom post type)
						$tabbed_number_posts = of_get_option('tabbed_number_posts','24');
						
						$args = array(
									'numberposts' => $tabbed_number_posts,
									'post_type' => 'portfolio',
									'post_type' => 'portfolio',
										'tax_query' => array(
											array(
												'taxonomy' => 'p_type',
												'field' => 'slug',
												'terms' => 'featured',
												'operator' => 'NOT IN'
											)
										)
									);
									
										
						$featured_posts = get_posts($args);
						
						include 'tabbed-vids.php';
					?>
					
				
		          
					
					<div class="home-page-older"></div>
					
		        </div>
				<?php
							endif;
						?>
						
				<?php
						if(of_get_option('recommended_vids', 'yes') == 'yes'):
				?>
							<div id="recommendations">
									<?php
										//fetch posts based on our taxonomy  (for 'portfolio' custom post type)
										$tabbed_number_posts = of_get_option('tabbed_number_posts','24');
										
										//$portfolio_type = get_post_meta($post->ID, 'p_type', true);
										//echo '<br /> portfolio_type get post meta: '.$portfolio_type.'<br />';
										
										$args = array(
													'numberposts' => $tabbed_number_posts,
													'post_type' => 'portfolio',
													'p_type' => 'recommended'
													);
															
										$featured_posts = get_posts($args);
										
										include 'tabbed-vids.php';
									?>
												
								</div>
				<?php
						endif;
				?>
				
				<?php
						if(of_get_option('popular_vids', 'yes') == 'yes'):
				?>
								<div id="popular">
									
									
									<?php
										//fetch posts based on our taxonomy  (for 'portfolio' custom post type)
										$tabbed_number_posts = of_get_option('tabbed_number_posts','24');
										
										//$portfolio_type = get_post_meta($post->ID, 'p_type', true);
										//echo '<br /> portfolio_type get post meta: '.$portfolio_type.'<br />';
										
										$args = array(
													'numberposts' => $tabbed_number_posts,
													'post_type' => 'portfolio',
													'p_type' => 'popular'
													);
															
										$featured_posts = get_posts($args);
										
										
										include 'tabbed-vids.php';
									?>
								</div>
				<?php
						endif;
				?>
				
				
				<?php
						if(of_get_option('more_vids', 'yes') == 'yes'):
				?>
								<div id="more">
									
									
									<?php
										//fetch posts based on our taxonomy  (for 'portfolio' custom post type)
										$tabbed_number_posts = of_get_option('tabbed_number_posts','24');
										
										//$portfolio_type = get_post_meta($post->ID, 'p_type', true);
										//echo '<br /> portfolio_type get post meta: '.$portfolio_type.'<br />';
										
										$args = array(
													'numberposts' => $tabbed_number_posts,
													'post_type' => 'portfolio',
													'p_type' => 'more'
													);
															
										$featured_posts = get_posts($args);
										
										
										include 'tabbed-vids.php';
									?>
								</div>
				<?php
						endif;
				?>
				
				
				
				<?php
				$args = array(
					'post_type' => 'page',
					'numberposts' => -1,
					'post_status' => null,
					'post_parent' => of_get_option('features_parent_page'),
				    'order' => 'ASC',
				    'orderby' => 'menu_order'
				);
				$slides = get_posts($args);
				if($slides):
					foreach($slides as $post): setup_postdata($post);
						$image_id = get_post_thumbnail_id();
						$image_url = wp_get_attachment_image_src($image_id, 'content-slider');
				?>				
				
				<div id="<?php
				$title = get_the_title();
				$loweredTitle = strtolower($title);
				echo str_replace(" ", "_", $loweredTitle);
				?>">
					
			
				<?php the_content(); ?>

					<div class="home-page-older"></div>
					
		        </div>
				
				<?php endforeach; endif;?>
				
				
				
		    </div><!-- close .tabs -->
			
			
			<div class="clearfix"></div>
		</div><!-- close .content-container -->
		<div class="content-container-base-pagination">
			<div class="left-pagination"><a href="#"></a></div>
			<div class="right-pagination"></div>
			<div class="center-pagination"></div>
			<div class="clearfix"></div>
		</div><!-- close .content-container-base or .content-container-base-pagination -->
		
	

<?php get_footer(); ?>