HEX
Server: Apache
System: Linux main79 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64
User: serwer143450 (7544)
PHP: 7.4.33
Disabled: opcache_reset, opcache_invalidate, opcache_compile_file, opcache_get_configuration, opcache_get_status
Upload Files
File: /home/platne/serwer143450/public_html/exzo.hillconnect.pl/wp-content/themes/exzo/category.php
<?php get_header(); ?>
    <div class="header-empty-space"></div>


    <div class="container">
        <div class="empty-space col-xs-b15 col-sm-b30"></div>


        <div class="breadcrumbs">
            <a href="<?php echo esc_url( get_home_url( '/' ) ); ?>"> <?php esc_html_e( 'Home', 'exzo' ) ?>
            </a>
			<?php if ( !is_home() ) { ?>

                <a href="<?php echo esc_url( '#' ); ?>"><?php
					$cat_id = get_query_var( 'cat' );
					if ( $cat_id > 0 ) {
						$cat = get_category( $cat_id );
						echo esc_html( $cat->name );

					} elseif ( is_archive() ) {
						echo esc_html( get_the_date() );
					}
					?></a>
			<?php } ?>


        </div>
        <div class="empty-space col-xs-b15 col-sm-b50 col-md-b100"></div>
        <div class="text-center">
            <div class="h2"><?php
				if ( is_home() ) {
					echo esc_html( get_bloginfo( 'name' ) );
				} else {
					$categories = get_the_category();
					if ( isset( $categories[0]->cat_ID ) && !is_home() && !is_single() ) {
						$category_id = $categories[0]->cat_ID;
						echo esc_html( get_cat_name( $categories[0]->cat_ID ) );
					}
				}


				?></div><div class="title-underline center"><span></span></div>
            <div class="simple-article size-3 grey uppercase col-xs-b5"><?php
	            $categories = get_the_category();
				$category_id = $categories[0]->cat_ID;

				if ( is_home() ) {
					echo esc_html( get_bloginfo( 'description' ) );
				} elseif ( isset( $category_id ) ) {
					echo wp_kses_post( category_description( $category_id ) );
				}

				?></div>

        </div>

    </div>

    <div class="empty-space col-xs-b35 col-md-b70"></div>
    <div class="container">
        <div class="row">
			<?php

			$positin_sidebar = "";

			if ( get_theme_mod( 'exzo_sidebar_position', 's2' ) == 's1' ) {
				$positin_sidebar = 'left';
			} else {
				$positin_sidebar = 'right';
			}

			if ( isset( $_GET['showas'] ) && $_GET['showas'] == 'left' ) {
				$positin_sidebar = 'left';
			} elseif ( isset( $_GET['showas'] ) && $_GET['showas'] == 'right' ) {
				$positin_sidebar = 'right';
			}

			if ( $positin_sidebar == 'left' ) {
				get_sidebar();
			}
			?>
            <div class="col-md-9">
				<?php if ( have_posts() ) : ?>
					<?php
					// Start the Loop.
					while ( have_posts() ) : the_post();

						get_template_part( 'partials/content', get_post_format() );
						?>


					<?php endwhile;
					wp_reset_postdata();


				else :
					// If no content, include the "No posts found" template.
					get_template_part( 'content', 'none' );
				endif; ?>
                <div class="row">
					<?php

					$exzo_class = exzo_get_global_class();
					$exzo_class->exzo_pagenavi();
					ob_start();
					the_posts_pagination();
					wp_link_pages();
					ob_get_clean();
					?>

                    <div class="empty-space col-xs-b35 col-md-b70"></div>
                </div>
            </div>
			<?php
			if ( $positin_sidebar == 'right' ) {
				get_sidebar();
			}
			?>
        </div>
    </div>

    <div class="empty-space col-xs-b35 col-md-b70"></div>

<?php get_footer(); ?>