HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/public_html/ducoa.org/wp-content/themes/dustrial/archive.php
<?php
/**
 * The template for displaying archive pages
 *
 * Used to display archive-type pages if nothing more specific matches a query.
 * For example, puts together date-based pages if no date.php file exists.
 *
 * If you'd like to further customize these archive views, you may create a
 * new template file for each one. For example, tag.php (Tag archives),
 * category.php (Category archives), author.php (Author archives), etc.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package dustrial
 */

get_header();

do_action( 'dustrial_breadcrum' );

?>

<!-- blog-section - start -->
<div id="blog" class="blog-page section-space-70">
    <div class="container">
        <div class="row">
            <?php 
                if ( is_active_sidebar( 'right-sidebar' ) ) {
                    if( function_exists( 'dustrial_framework_init' ) ) {
                        $blog_layout = dustrial_get_option( 'blog_layout' );
                        if ( $blog_layout == 'left-sidebar' ) {
                            $col   = '8';
                            $class = 'order-12';
                        } elseif ( $blog_layout == 'right-sidebar' ) {
                            $col   = '8';
                            $class = '';
                        } elseif ( $blog_layout == 'full-width' ) {
                            $class = '';
                            $col   = '12';
                        } else {
                            $class = '';
                            $col   = '8';
                        }
                    } else {
                        $col   = '8';
                        $class = '';
                    }
                } else {
                    $col   = '12';
                    $class = '';
                }
            ?>
            <div class="col-lg-<?php echo esc_attr($col); ?> col-sm-12 <?php echo esc_attr($class); ?>">
                <?php 
                    if( function_exists( 'dustrial_framework_init' ) ) {
                        $blog_post_style        = dustrial_get_option('blog_post_display_variation');
                        $blog_post_col_layout   = dustrial_get_option('blog_post_col_layout');

                        if ( $blog_post_style == 'style1' ) {
                            $blog_column_class = '';
                        } elseif ( $blog_post_style == 'style2' ) {
                            $blog_column_class = 'page-blog-two-column';
                        } elseif ( $blog_post_style == 'style3' && $blog_post_col_layout == 'col_2' ) {
                            $blog_column_class = 'blog-chess-two-column';
                        } elseif ( $blog_post_style == 'style3' && $blog_post_col_layout == 'col_4' ) {
                            $blog_column_class = 'blog-chess-four-column';
                        } else {
                            $blog_column_class = '';
                        }
                    } else {
                       $blog_column_class = ''; 
                    }
                ?>

                <div class="<?php echo esc_attr( $blog_column_class ); ?> page-blog">
                    <div class="row">
                        <?php
                            if ( have_posts() ):
                            if ( is_home() && !is_front_page() ):
                        ?>
                        <header>
                            <h1 class="page-title screen-reader-text"><?php single_post_title();?></h1>
                        </header>
                        <?php
                            endif;?>
                        <?php
                            /* Start the Loop */
                            while ( have_posts() ): the_post(); ?>
                            <?php
                                /*
                                * Include the Post-Type-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 Type name) and that will be used instead.
                                */
                                get_template_part( 'template-parts/content', get_post_format() );?>
                            <?php
                                endwhile;
                            ?>

                            <?php echo dustrial_paging_nav(); ?>

                            <?php
                            else:
                                get_template_part( 'template-parts/content', 'none' );
                            endif;
                        ?>
                    </div>
                </div>
            </div>

            <!-- Start Blog Sidebar -->
            <?php 
                if ( is_active_sidebar( 'right-sidebar') ) {
                    if( function_exists( 'dustrial_framework_init' ) ) {
                        $blog_layout = dustrial_get_option('blog_layout');
                        if ( $blog_layout == 'left-sidebar' ||  $blog_layout == 'right-sidebar' ) {
                            get_sidebar('right');
                        } elseif ($blog_layout == 'full-width') {
                            
                        } else {
                            get_sidebar('right');
                        }
                    } else {
                       get_sidebar('right');
                    }
                }
            ?>

        </div>
    </div>
</div>

<!-- blog section End -->
<?php get_footer(); ?>