HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/ruwebsiteok/wp-content/themes/educational-university/archive.php
<?php
/**
 * The template for displaying Archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Educational University
 */

get_header(); ?>

<div class="container">
   <div id="content" class="contentsecwrap">
      <header class="page-header">
         <?php
            the_archive_title( '<h1 class="entry-title">', '</h1>' );
            the_archive_description( '<div class="taxonomy-description">', '</div>' );
            ?>
         <span><?php educational_university_the_breadcrumb(); ?></span>
      </header>
         <?php
         $educational_university_sidebar_layout = get_theme_mod( 'educational_university_sidebar_post_layout','right');
         if($educational_university_sidebar_layout == 'left'){ ?>
         <div class="row m-0">
            <div class="col-lg-4 col-md-4" id="sidebar"><?php get_sidebar();?></div>
            <div class="col-lg-8 col-md-8">
               <div class="postsec-list">
                  <?php if ( have_posts() ) : ?>                        
                     <div class="postsec-list">
                        <?php /* Start the Loop */ ?>
                               <?php while ( have_posts() ) : the_post(); ?>
                                   <?php get_template_part( 'template-parts/post/content' ); ?>
                               <?php endwhile; ?>
                           </div>
                           <?php the_posts_pagination(); ?>
                       <?php else : ?>
                           <?php get_template_part( 'no-results', 'archive' ); ?>
                       <?php endif; ?>
                  <div class="clearfix"></div>
               </div>
            </div>
         </div>
         <div class="clearfix"></div>
         <?php }else if($educational_university_sidebar_layout == 'right'){ ?>
            <div class="row m-0">
               <div class="col-lg-8 col-md-8">
                  <div class="postsec-list">
                     <?php if ( have_posts() ) : ?>                        
                        <div class="postsec-list">
                           <?php /* Start the Loop */ ?>
                              <?php while ( have_posts() ) : the_post(); ?>
                                <?php get_template_part( 'template-parts/post/content' ); ?>
                              <?php endwhile; ?>
                        </div>
                        <?php the_posts_pagination(); ?>
                        <?php else : ?>
                        <?php get_template_part( 'no-results', 'archive' ); ?>
                     <?php endif; ?>
                  </div>
               </div>
               <div class="col-lg-4 col-md-4" id="sidebar"><?php get_sidebar();?></div>
            </div>
         <?php }else if($educational_university_sidebar_layout == 'full'){ ?>
            <div class="full">
              <div class="postsec-list">
                 <?php if ( have_posts() ) : ?>                        
                    <div class="postsec-list">
                       <?php /* Start the Loop */ ?>
                       <?php while ( have_posts() ) : the_post(); ?>
                       <?php get_template_part( 'template-parts/post/content' ); ?>
                       <?php endwhile; ?>
                    </div>
                    <?php the_posts_pagination(); ?>
                      <?php else : ?>
                       <?php get_template_part( 'no-results', 'archive' ); ?>
                      <?php endif; ?>
                 <div class="clearfix"></div>
              </div>
            </div>
         <?php }else if($educational_university_sidebar_layout == 'three-column'){ ?>
            <div class="row m-0">
               <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-1');?></div>
               <div class="col-lg-6 col-md-6">
                  <div class="postsec-list">
                     <?php if ( have_posts() ) : ?>                        
                           <div class="postsec-list">
                              <?php /* Start the Loop */ ?>
                                     <?php while ( have_posts() ) : the_post(); ?>
                                         <?php get_template_part( 'template-parts/post/content' ); ?>
                                     <?php endwhile; ?>
                                 </div>
                                 <?php the_posts_pagination(); ?>
                             <?php else : ?>
                                 <?php get_template_part( 'no-results', 'archive' ); ?>
                             <?php endif; ?>
                     <div class="clearfix"></div>
                  </div>
               </div>
               <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-2');?></div>
            </div>
         <?php }else if($educational_university_sidebar_layout == 'four-column'){ ?>
            <div class="row m-0">
               <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-1');?></div>
               <div class="col-lg-3 col-md-3">
                  <div class="postsec-list four-col">
                     <?php if ( have_posts() ) : ?>                        
                           <div class="postsec-list">
                              <?php /* Start the Loop */ ?>
                                     <?php while ( have_posts() ) : the_post(); ?>
                                         <?php get_template_part( 'template-parts/post/content' ); ?>
                                     <?php endwhile; ?>
                                 </div>
                                 <?php the_posts_pagination(); ?>
                             <?php else : ?>
                                 <?php get_template_part( 'no-results', 'archive' ); ?>
                             <?php endif; ?>
                  <div class="clearfix"></div>
                  </div>
               </div>
               <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-2');?></div>
               <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-3');?></div>
            </div>
         <?php }else if($educational_university_sidebar_layout == 'grid'){ ?>
            <div class="row m-0">
               <div class="col-lg-9 col-md-9">
                  <div class="row">
                      <?php if ( have_posts() ) : ?>    
                        <?php /* Start the Loop */ ?>
                          <?php while ( have_posts() ) : the_post(); ?>
                              <?php get_template_part( 'template-parts/post/content-grid' ); ?>
                          <?php endwhile; ?>
                          <?php the_posts_pagination(); ?>
                            <?php else : ?>
                            <?php get_template_part( 'no-results', 'archive' ); ?>
                      <?php endif; ?>
                  </div>
                </div>
                <div class="col-lg-3 col-md-3" id="sidebar"><?php get_sidebar();?></div>
            </div>
         <?php }else {?>
            <div class="row m-0">
               <div class="col-lg-8 col-md-8">
                  <div class="postsec-list">
                     <?php if ( have_posts() ) : ?>                        
                        <div class="postsec-list">
                           <?php /* Start the Loop */ ?>
                                  <?php while ( have_posts() ) : the_post(); ?>
                                      <?php get_template_part( 'template-parts/post/content' ); ?>
                                  <?php endwhile; ?>
                              </div>
                              <?php the_posts_pagination(); ?>
                          <?php else : ?>
                              <?php get_template_part( 'no-results', 'archive' ); ?>
                          <?php endif; ?>
                     <div class="clearfix"></div>
                  </div>
               </div>
               <div class="col-lg-4 col-md-4" id="sidebar"><?php get_sidebar();?></div>
            </div>
         <?php } ?>
   </div>
</div>
<?php get_footer();