Sindbad~EG File Manager

Current Path : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt/
Upload File :
Current File : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt/index.php

<?php
/*
 * Security 	: blocking direct access
 * Source		: http://codex.wordpress.org/Theme_Development#Template_Files
*/
defined('ABSPATH') or die("Access Restricted");

get_header();

	if ( mwp_option( 'home-type') == 1 ) {
		$no_lazyload 		= mwp_option('home-blog-nolazyload');
		$excludepost 		= mwp_option('home-blog-ep');
		$list_exclude_post 	= explode(',', $excludepost);
		$get_ppp 			= mwp_option('home-blog-ppp');
		$list_exclude_cat 	= mwp_option('home-blog-ec');
		$show_desc			= mwp_option('home-blog-style-desc');
		$show_cat			= mwp_option('home-blog-style-category');
		$page_per_page 		= (get_query_var('paged')) ? get_query_var('paged') : 1;
		$yvd_thumb			= mwp_option('thumbnail-vyd');
		$exclude_post 		= base64_encode(serialize($list_exclude_post));
		$exclude_cat 		= base64_encode(serialize($list_exclude_cat));
		
		$get_categories_vid = mwp_option('category-videos');
		$get_categories_gal = mwp_option('category-gallery');
		$get_categories_vid_base = base64_encode(serialize(mwp_option('category-videos')));
		$get_categories_gal_base = base64_encode(serialize(mwp_option('category-gallery')));
		
		$blog_shadow 		= mwp_option('style-shadow');
		$blog_container 	= mwp_option('container-color');

		$param_query_blog 	= array(
			'post__not_in' 		=> $list_exclude_post,
			'category__not_in' 	=> $list_exclude_cat,
			'posts_per_page' 	=> $get_ppp,
			'paged' 			=> $page_per_page
		);
		$published_posts = wp_count_posts()->publish;
		query_posts($param_query_blog);
		
		if ( mwp_option( 'home-blog-style') == 1 ) {
			$class_num = 1;
		} elseif ( mwp_option( 'home-blog-style') == 2 ) {
			$class_num = 2;
		} elseif ( mwp_option( 'home-blog-style') == 3 ) {
			$class_num = 3;
		}
					
		if ($blog_shadow == 1 && $blog_container == 0) {
			$post_shdow = ' ps'.$class_num.'-shadow';
		} elseif ($blog_shadow == 1 && $blog_container == 1) {
			$post_shdow = ' ps'.$class_num.'-shadow';
		} elseif ($blog_shadow == 0 && $blog_container == 1) {
			$post_shdow = ' ps'.$class_num.'-container';
		} else {
			$post_shdow = '';
		}
	}
	
	/*
	 * Sliders 
	 *
	 * Styles 1 & 4 & 6 & 7
	 *
	*/
	if (mwp_option('slider-show') == 1) :
		if (is_home() || is_front_page()) :
			if (mwp_option('slider-style') == 1) {
				require_once( get_template_directory() . '/includes/sliders/slider-1.php' );
			} elseif (mwp_option('slider-style') == 4) {
				require_once( get_template_directory() . '/includes/sliders/slider-4.php' );
			} elseif (mwp_option('slider-style') == 5) {
				require_once( get_template_directory() . '/includes/sliders/slider-5.php' );
			} elseif (mwp_option('slider-style') == 6) {
				require_once( get_template_directory() . '/includes/sliders/slider-6.php' );
			}
		endif;
	endif;	
	
	/*
	 * Block B
	 *
	 * Layout 2 & 4 & 5
	 *
	*/
	if ( mwp_option( 'home-type') == 2 ) {
		if ( 
			mwp_option( 'home-layout') == '02' || 
			mwp_option( 'home-layout') == '04' ||
			mwp_option( 'home-layout') == '05'
		) {
			if (function_exists('dynamic_sidebar') && dynamic_sidebar('home-large')) : else :
			endif;
		}
	}
	
	/*
	 * Blog
	 *
	 * Style 1 & 2 & 3 & 4 & 5 Only
	 *
	*/
	if ( mwp_option( 'home-blog-style') <= 2 && mwp_option( 'home-type') == 1 ||
		mwp_option( 'home-type') == 2 ) {
		
		/*
		 * Add Stiky Wrapper
		 *	 
		 * Fix Theia Sticky Sidebar on scroll
		 *
		 * OPEN Wrapper TAG
		 *
		*/
		if (mwp_option('slider-style') == 2 || mwp_option('slider-style') == 3) {
			// Nothing TO DO
		} else {
			echo '<div class="wrapper">';
		}
		?>
		<div id="content">			
			<?php
			/*
			 * Silder
			 *
			 * Style 2 & 3
			 *
			*/
			if (mwp_option('slider-show') == 1) {
				if (is_home()) {
					if (mwp_option('slider-style') == 2) {
						require_once( get_template_directory() . '/includes/sliders/slider-2.php' );
					} elseif (mwp_option('slider-style') == 3) {
						require_once( get_template_directory() . '/includes/sliders/slider-3.php' );
					}
				}
			}
			/*
			 * Blog
			 *
			*/
			if ( mwp_option( 'home-type') == 1 ) {

				if ( have_posts() ) :
	
					if ( mwp_option( 'home-blog-style') == 1 ) {
						require_once( get_template_directory() . '/includes/blog/blog-1.php' );
					} elseif ( mwp_option( 'home-blog-style') == 2 ) {
						require_once( get_template_directory() . '/includes/blog/blog-2.php' );
					}
					
				endif;
			}
			/*
			 * Block A
			 *
			 * Layout From 1 To 8
			 *
			*/
			if ( mwp_option( 'home-type') == 2 ) {
				if (
					mwp_option( 'home-layout') == '01' ||
					mwp_option( 'home-layout') == '02' ||
					mwp_option( 'home-layout') == '03' ||
					mwp_option( 'home-layout') == '04'
				) {
					if (function_exists('dynamic_sidebar') && dynamic_sidebar('home')) : else :
					endif;
				}
			}
			?>
		</div>
		<?php
		/*
		 * Block A - Sidebar
		 *
		 * Layout From 1 To 8
		 *
		*/
		if ( mwp_option( 'home-type') == 1 ) {
			get_sidebar();
		} elseif ( mwp_option( 'home-type') == 2 ) {
			if (
				mwp_option( 'home-layout') == '01' ||
				mwp_option( 'home-layout') == '02' ||
				mwp_option( 'home-layout') == '03' ||
				mwp_option( 'home-layout') == '04'
			) {
				get_sidebar();
			}
		}
		
		/*
		 * Add Stiky Wrapper
		 *	 
		 * Fix Theia Sticky Sidebar on scroll
		 *
		 * CLOSE Wrapper TAG
		 *
		*/
		if (mwp_option('slider-style') == 2 || mwp_option('slider-style') == 3) {
			// Nothing TO DO
		} else {
			echo '</div>';
		}
	}
	
	/*
	 * Blog
	 *
	 * Style 5
	 *
	*/
	if ( mwp_option( 'home-type') == 1 ) {

		if ( have_posts() ) :
			if ( mwp_option( 'home-blog-style') == 3 ) {
				require_once( get_template_directory() . '/includes/blog/blog-3.php' );
			}
		endif;
	}
	
	/*
	 * Block B - Bottom
	 *
	 * Layout 3 & 4
	 *
	*/
	if ( mwp_option( 'home-type') == 2 ) {
		if ( 
			mwp_option( 'home-layout') == '03' || 
			mwp_option( 'home-layout') == '04'
		) {
			if (function_exists('dynamic_sidebar') && dynamic_sidebar('home-large-b')) : else :
			endif;
		}
	}
	
/*
 * Footer
 *
*/
get_footer();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists