Sindbad~EG File Manager

Current Path : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt-mobile/includes/archive/
Upload File :
Current File : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt-mobile/includes/archive/archive-3.php

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

	$show_desc			= mwp_option('mobile-posts-desc');
	$show_cat			= mwp_option('mobile-posts-cat');
	$show_date			= mwp_option('mobile-posts-date');
	$no_lazyload		= mwp_option('mobile-atf-nolazyload');
	$get_cats_vid 		= mwp_option('category-videos');
	$get_cats_gal 		= mwp_option('category-gallery');
	$get_posts_style	= mwp_option('mobile-posts-style');

	/*
	 * hAtom Settings
	 *
	*/
	$hentry = mwp_option('seo-hatom');
	if ($hentry == 1) {
		$hentry_class 	= '';
		$title_entry 	= '';
		$summary_entry 	= '';
	} else {
		$hentry_class 	= ' hentry';
		$title_entry 	= ' entry-title';
		$summary_entry 	= ' entry-summary';
	}
	
	if ( have_posts() ) : ?>
	
	<ul class="list-posts">
		<?php
		$c = 0; 
		while ( have_posts() ) : the_post(); 
		$c++;
		?>
		<li class="s3 post<?php echo $hentry_class; ?>">
			<div class="thumbnail">
				<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
					<?php if(!empty($no_lazyload) && $c <= $no_lazyload || mwp_option('lazyload-mobile') == 0) {
						mwp_smart_thumb_nolazy('mwp-medium', $post->ID, 520, 290);
					} else {
						mwp_smart_thumb('mwp-medium', $post->ID, 520, 290);
					} ?>
					<?php if ($show_cat == 1) { ?>
					<span class="category"><?php echo mwp_display_category_name($post->ID); ?></span>
					<?php } ?>
					<div class="ps-3i">
						<?php if ($show_date == 1) { ?>
						<div class="meta"><?php mwp_posted_ago(); ?></div>
						<?php } ?>
						<h2 class="<?php echo $title_entry; ?>"><?php the_title(); ?></h2>
					</div>
				</a>
			</div>
			<?php if ($hentry == 0) { mwp_meta_hidden(); } ?>
		</li>
		<?php mwp_home_infeed_ad($c, 's3'); ?>
		<?php endwhile; ?>
	</ul>
		
	<?php 
	if (mwp_option('mobile-load-posts') == 1) {
		if (get_next_posts_link()) { 
			?>
			<div class="wrap-load">
				<div class="post-load">
					<a class="pagination__next load-next-button" href="<?php echo next_posts($wp_query->max_num_pages, false) ?>"><?php esc_html_e( 'load more posts', MWP_TEXT_DOMAIN ); ?></a>
				</div>
			</div>
			<?php 
		} 
		?>
		<script src="<?php echo MWP_PATH_URL; ?>/js/infinite-scroll.min.js" defer="defer"></script>
		<script>
		jQuery(document).ready(function() {
		var infScroll = new InfiniteScroll( '.list-posts', {
			path: '.pagination__next',
			append: '.s3',
			checkLastPage: true,
			prefill: false,
			responseType: 'document',
			outlayer: false,
			scrollThreshold: 400,
			elementScroll: false,
			loadOnScroll: true,
			history: 'replace',
			historyTitle: true,
			hideNav: '.wrap-load',
			button: '.load-next-button',
			<?php if (mwp_option('lazyload-mobile') == 1) { ?>
			onInit: function() {
				this.on('append',function() {
					jQuery(window).lazyLoadXT();
					setCSSHEIGHT (".list-posts", ".s<?php echo esc_attr($get_posts_style); ?>");
				})
			},
			<?php } else { ?>
			onInit: function() {
				this.on('append',function() {
					setCSSHEIGHT (".list-posts", ".s<?php echo esc_attr($get_posts_style); ?>");
				})
			},
			<?php } ?>
			debug: false,
		})
		});
		</script>
		<?php
	} else {
		if(function_exists('mwp_pagenavi')) { 
			mwp_pagenavi(); 
		}
	}

	endif; // have_posts()

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