403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.147.8.255
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/jenniferflocom/www/wp-content/themes/personalias/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jenniferflocom/www/wp-content/themes/personalias/category.php
<?php get_header(); ?>

<?php
	$curr_cat = get_category( $cat );
	$cat_name = ( $curr_cat ) ? $curr_cat->slug : '';
	$loop_featured = new WP_Query(
		array(
			'category_name' => $cat_name,
			'posts_per_page' => get_theme_mod( 'featured-posts-count-category', '1' ),
		));
	$ids = array();
?>

<div class="content">

	<div class="split">
		<div class="split-left">
			<div class="stickyfill">
				<?php
					while ( $loop_featured->have_posts() ) : $loop_featured->the_post();
						$ids[] = get_the_ID();
						get_template_part('content-featured');
					endwhile;
					wp_reset_postdata();
				?>
			</div>
		</div>
		<div class="split-right">
			
			<div class="page-title group">
				<div class="page-title-inner group">
					<h1><?php echo single_cat_title('', false); ?></h1>
					
					<?php if ((category_description() != '') && !is_paged()) : ?>
						<?php echo category_description(); ?>
					<?php else: ?>
					<?php endif; ?>
					
				</div><!--/.page-title-inner-->
			</div><!--/.page-title-->
			
			<div class="split-right-inner">
			
				<?php
					if ( get_query_var('paged') ) {
						$paged = get_query_var('paged');
					} elseif ( get_query_var('page') ) { // 'page' is used instead of 'paged' on Static Front Page
						$paged = get_query_var('page');
					} else {
						$paged = 1;
					}

					$custom_query_args = array(
						'post_type' => 'post', 
						'posts_per_page' => get_option('posts_per_page'),
						'paged' => $paged,
						'post_status' => 'publish',
						'ignore_sticky_posts' => true,
						'post__not_in' => $ids,
						'category_name' => $cat_name,
						'order' => 'DESC',
						'orderby' => 'date'
					);
					$custom_query = new WP_Query( $custom_query_args );

					if ( $custom_query->have_posts() ) :
				?>

				<?php if ( get_theme_mod('blog-layout','blog-grid') == 'blog-grid' ) : ?>
					
					<div class="article-grid">
						<?php while( $custom_query->have_posts() ) : $custom_query->the_post(); ?>
							<?php get_template_part('content-grid'); ?>
						<?php endwhile; ?>
					</div>
					
				<?php elseif ( get_theme_mod('blog-layout','blog-grid') == 'blog-list' ) : ?>
					
					<div class="article-list">
						<?php while( $custom_query->have_posts() ) : $custom_query->the_post(); ?>
							<?php get_template_part('content-list'); ?>
						<?php endwhile; ?>
					</div>
					
				<?php else: ?>
					
					<div class="article-standard">
						<?php while( $custom_query->have_posts() ) : $custom_query->the_post(); ?>
							<?php get_template_part('content'); ?>
						<?php endwhile; ?>
					</div>
					
				<?php endif; ?>

				<?php if ($custom_query->max_num_pages > 1) : // custom pagination  ?>
				<?php
					$orig_query = $wp_query; // fix for pagination to work
					$wp_query = $custom_query;
				?>
				<?php get_template_part('inc/pagination'); ?>

				<?php $wp_query = $orig_query; // fix for pagination to work ?>
				<?php endif; ?>

				<?php wp_reset_postdata(); endif; ?>
			
			</div>
		</div>
	</div>

</div><!--/.content-->

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit