403Webshell
Server IP : 62.72.47.131  /  Your IP : 216.73.217.34
Web Server : Apache/2.4.66 (Debian)
System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
User :  ( 501)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/medicate/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/medicate//archive.php
<?php
use peaceful\medicate\Helper;
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage medicate
 * @since medicate 1.0
 */
get_header();
$pqf_options = get_option('pqf_options');
?>
<div class="peacefulthemes-contain-area">
	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">
			<div class="container">
				<?php
				$flag = 1;
					$row = 'row';
					$blogcol = 'col-xl-12 col-lg-12 col-md-12';
					$sidecol = 'col-xl-4 col-lg-4 col-md-12';
					$mainblogcol = 'col-lg-8';

					if(is_active_sidebar('sidebar-1'))
					{
						$mainblogcol = 'col-lg-8 col-xl-8 col-md-12';
						$sidebar = true;

					}
					else
					{
						$mainblogcol = 'col-lg-12 col-xl-12 col-md-12';
						$sidebar = false;
					}

					if(isset($pqf_options['archive_blog_layout']) && $pqf_options['archive_blog_layout']  === 'one-column'){
						$row = 'row';
						$blogcol = 'col-lg-12';


					}
					else if(isset($pqf_options['archive_blog_layout']) && $pqf_options['archive_blog_layout']  === 'two-column'){
						$row = 'row';
						$blogcol = 'col-lg-6';

					}

					else if(isset($pqf_options['archive_blog_layout']) && $pqf_options['archive_blog_layout']  === 'three-column'){
						$row = 'row';
						$blogcol = 'col-lg-4';

					}

					else if(isset($pqf_options['archive_blog_layout']) && $pqf_options['archive_blog_layout']  === 'four-column'){
						$row = 'row';
						$blogcol = 'col-lg-3';

					}

					else if(isset($pqf_options['archive_blog_layout']) && $pqf_options['archive_blog_sidebar']  === 'no_sidebar'){
						$sidebar = false;
						$mainblogcol = 'col-lg-12';
					}

					if(isset($pqf_options['archive_blog_layout']) && $pqf_options['archive_blog_sidebar']  === 'right_sidebar'){
						if(is_active_sidebar('sidebar-1'))
						{
							$sidebar = true;
							$mainblogcol = 'col-lg-8 col-xl-8 col-md-12';
						}
						else
						{
							$sidebar = false;
						}

						$row = 'row';
					}

					else if(isset($pqf_options['archive_blog_layout']) && $pqf_options['archive_blog_sidebar']  === 'left_sidebar'){
						if(is_active_sidebar('sidebar-1'))
						{
							$sidebar = true;
							$mainblogcol = 'col-lg-8 col-xl-8 col-md-12';
						}
						else
						{
							$sidebar = false;
						}
						$row = 'row flex-row-reverse';
					}

				?>
				<div class="<?php echo esc_attr($row , 'medicate'); ?>">

					<?php if ( have_posts() ){
						if($flag == 1){
							echo '<div class="'.esc_attr($mainblogcol).'">
									<div class="row">';

								// Start the loop.
								while ( have_posts() ){
									the_post();

									/*
									 * Include the Post-Format-specific template for the content.
									 * If you want to override this in a child theme, then include a file
									 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
									 */
									echo '<div class="'.esc_attr($blogcol,'medicate').'">';
										get_template_part( 'template-parts/post/content', get_post_format() );
									echo '</div>'; //End $blogcol class div

									// End the loop.
								}

								\peaceful\medicate\Helper::instance()->pagination();

							echo '</div></div>'; //End $blogcol class div

							// Previous/next page navigation.




						if($sidebar){
						?>
							<div class="<?php echo esc_attr($sidecol , 'medicate'); ?>">
								<?php get_sidebar(); ?>
							</div>
						<?php

						}


				}

				if($flag == 0){
					// Start the loop.
					while ( have_posts() ) {
						the_post();

						/*
						 * Include the Post-Format-specific template for the content.
						 * If you want to override this in a child theme, then include a file
						 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
						 */
						echo '<div class="'.esc_attr($blogcol,'medicate').'">';
							get_template_part( 'template-parts/post/content', get_post_format() );
						echo '</div>';

						// End the loop.
					}


					// Previous/next page navigation.


			 	}
			}
			else
			{
				get_template_part( 'template-parts/post/content', get_post_format() );

			}

			?>

				</div>



				<!-- .Row -->
			</div>
		</main><!-- .site-main -->
	</div><!-- .content-area -->
</div>
<?php get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit