ACC SHELL

Path : /srv/www/vhosts/rozzo/wp-content/themes/amplius/
File Upload :
Current File : //srv/www/vhosts/rozzo/wp-content/themes/amplius/archive.php

<?php

	get_header();
 
// Blog Stuff
	$blog_type = 'mini';

// Sidebar Position
	$sidebar_position = get_option('blog_sidebar', 'right');

// Parallax Background
	$parallax_background = get_option('parallax_background', get_template_directory_uri().'/img/parallax-bg.jpg');

// Parallax Title
	if (is_category()) { $parallax_title = single_cat_title('', false); } 
	elseif( is_tag() ) {  $parallax_title = single_tag_title('', false); }
	elseif (is_day()) {  $parallax_title = get_the_time('F jS, Y'); } 
	elseif (is_month()) { $parallax_title = get_the_time('F, Y'); } 
	elseif (is_year()) { $parallax_title = get_the_time('Y'); }
	elseif (is_author()) { $curauth = get_user_by( 'login', get_query_var('author_name') ); $parallax_title = $curauth->display_name; }
	elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { $parallax_title = __('Blog Archives', 'coffee'); }
	
// Parallax Height
	$parallax_height = get_option('parallax_height', '125');
	
// Parallax Speed
	$parallax_speed = get_option('parallax_speed', '12');
	
?>
<?php if ($parallax_height != 0) { ?>
<div id="parallax-wrapper" style="background-image: url('<?php echo($parallax_background); ?>'); height: <?php echo($parallax_height); ?>px;" data-parallax-speed="<?php echo($parallax_speed); ?>" <?php if(get_option('header_switch', true)){echo('class="parallax-on"');} ?>>
	<div id="parallax-inner" class="clearfix">
		<div id="parallax-title-wrapper">
			<div id="parallax-title" class="heading-font">
				<?php echo($parallax_title); ?>
			</div>
		</div>
		<div id="parallax-aside-wrapper">
			<div id="parallax-search">
				<form method="get" id="searchform" action="<?php echo home_url(); ?>/">
					<fieldset>
						<input class="heading-font" type="text" name="s" id="s" value="<?php _e('Search', 'coffee') ?>"/>
						<i class="icon-search"></i>
					</fieldset>
				</form>
			</div>
		</div>
	</div><!-- #parallax-inner -->
</div><!-- #parallax-wrapper -->
<?php } ?>

<div id="content-wrapper" style="margin-top:<?php echo(125+$parallax_height); ?>px">
	<div id="content" class="clearfix">
		
		<?php if($sidebar_position == 'left'): ?>
			<div id="sidebar-wrapper" class="content-column-wrapper clearfix">
				<div class="content-column clearfix">
					<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Blog sidebar') ); ?>				
				</div>			
			</div>
		<?php endif; ?>
		
		<div id="<?php echo($blog_type) ?>-blog-type" class="content-column-wrapper clearfix <?php echo($sidebar_position.'-sidebar') ?>">
			<div class="content-column clearfix">
			
				<?php
					$more = 0;
					while ( have_posts() ) : the_post(); ?>
					<?php
						get_template_part( 'post-format/'.$blog_type.'/standard' );
					?>
				<?php endwhile; ?>
				<?php
					$wp_query->query_vars['paged'] > 1 ? $current = $wp_query->query_vars['paged'] : $current = 1;
					$links = "<div id='page-number'>Page ". $current ." of ". $wp_query->max_num_pages."</div>";
					if ($wp_query->max_num_pages > 1):
				?>
					<div id="pagination" class="clearfix">
						<?php 	echo $links; ?>
						<div id='page-links'>
						<?php echo paginate_links( array( 
						'current' => $current, 
						'show_all' => false,
						'prev_next' => true, 
						'total' => $wp_query->max_num_pages, 
						'base' => @add_query_arg('paged','%#%'), 
						'format' => '',
						'type' => 'plain',
						'prev_text' => '<button class="previous"><i class="icon-circle-arrow-left"></i>'.__('Previous Page', 'coffee').'</button>',
						'next_text'=> '<button class="next">'.__('Next Page', 'coffee').'<i class="icon-circle-arrow-right"></i></button>' )); ?>
						</div>
					</div>
				<?php endif; ?>
				<?php wp_reset_query(); ?>
			</div>
		</div>
		
		<?php if($sidebar_position == 'right'): ?>
			<div id="sidebar-wrapper" class="content-column-wrapper clearfix">
				<div class="content-column clearfix">
					<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Blog sidebar') ); ?>				
				</div>			
			</div>
		<?php endif; ?>
		
	</div><!-- #content -->
<?php get_footer(); ?>

ACC SHELL 2018