HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
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: /home/madison/public_html/wp-content/themes/paperio/templates/category/masonry-layout.php
<?php

    // Exit if accessed directly.
    if ( !defined( 'ABSPATH' ) ) { exit; }

    /* Define null variables */
    $category_layout = $show_no_of_category = $tz_post_classes = '';
    /* Check category type */
    $tz_general_category_type = paperio_category_option( 'tz_general_category_type', 'grid' );
    /* Check category column type */
    $tz_general_category_column_type = paperio_category_option( 'tz_general_category_column_type', 'two-columns' );
    $category_layout = $tz_general_category_type.'-'.$tz_general_category_column_type;
    /* Check general pagination style */
    $tz_general_pagination_style = get_theme_mod( 'tz_general_pagination_style', 'old-new-pagination' );
    /* Check if post category hide or show */
    $tz_hide_post_category = get_theme_mod( 'tz_hide_post_category', 0 );
    /* Check if post date hide or show */
    $tz_hide_post_date = get_theme_mod( 'tz_hide_post_date', 0);
    /* Get category post date format */
    $tz_category_post_date_format = get_theme_mod( 'tz_category_post_date_format', '' );
    /* Check if post excerpt hide or show */
    $tz_hide_post_excerpt = get_theme_mod( 'tz_hide_post_excerpt', 0 );
    /* Set post excerpt length */
    $tz_post_excerpt_length = get_theme_mod( 'tz_post_excerpt_length', '34' );
    /* Check if post read more button hide or show */
    $tz_hide_category_read_more_button = get_theme_mod( 'tz_hide_category_read_more_button', 0 );
    /* Set post Read more button text */
    $tz_default_button_text = get_theme_mod( 'tz_default_button_text', 'Read More' );
    /* Check read more button Arrow hide or show */
    $tz_category_read_more_button_arrow = (get_theme_mod( 'tz_hide_category_read_more_button_arrow', 0 ) != 1 ) ? '<i class="fas fa-long-arrow-alt-right"></i>' : '' ;
    /* Check if post like hide or show */
    $tz_hide_category_post_like = get_theme_mod( 'tz_hide_category_post_like', 0 );
    /* Check if post comment link hide or show */
    $tz_hide_post_comment_link = get_theme_mod( 'tz_hide_post_comment_link', 0 );
    /* Set Theme Type */
    $tz_theme_type = get_theme_mod( 'tz_theme_type', 'theme-yellow' );

    // Get List of post classes
    $tz_post_classes = '';
    $tz_post_class_list = array();
    $tz_post_class_list[] = ( $tz_general_category_column_type == 'four-columns' ) ? 'masonry-four-columns-button': ''; 
    if( $tz_general_pagination_style == 'infinite-scroll-pagination' ) {
        $tz_post_class_list[] = 'blog-single-post';
    } else {
        if ( 0 === $wp_query->current_post ) {
            $tz_post_class_list[] = 'first-post';
        } elseif ( ( $wp_query->current_post + 1 ) === $wp_query->post_count ) {
            $tz_post_class_list[] = 'last-post';
        }
    }
    $blog_button_color_class = ( $tz_theme_type == 'theme-fast-red' ) ? ' btn-double-border' : ' btn-border';
    switch( $category_layout ) {
        case 'masonry-two-columns':
            $show_no_of_category = '2';
        break;
        
        case 'masonry-three-columns':
            $show_no_of_category = '2';
        break;

        case 'masonry-four-columns':
            $show_no_of_category = '1';
        break;
    }

    ob_start();
        add_action( 'post_class', 'paperio_category_masonry_post_class' );
        post_class( $tz_post_class_list );
        remove_action( 'post_class', 'paperio_category_masonry_post_class' );
        $tz_post_classes .= ob_get_contents();
    ob_end_clean();

    echo '<div id="post-'.get_the_ID().'" '.$tz_post_classes.'>';
    if ( !post_password_required() ) {
        if( has_post_thumbnail() ) {
            echo '<div class="blog-image">';
            echo '<!-- post image -->';
                get_template_part( 'loop/category/content', 'image' );
            echo '<!-- post image -->';
            echo '</div>';
        }
    }
        echo '<!-- post detail -->';
        echo '<div class="blog-details">';
            echo '<h2 class="alt-font font-weight-600 title-small text-mid-gray margin-six-top no-margin-lr xs-no-margin-bottom entry-title category-layout-title no-margin-bottom">';
                echo '<a rel="bookmark" href="'.get_permalink().'">'.get_the_title().'</a>';
            echo '</h2>';

            if( $tz_hide_post_category != 1 || $tz_hide_post_date != 1 ):
                echo '<div class="letter-spacing-1 text-extra-small text-uppercase margin-five-bottom display-inline-block category-layout-meta">';
                    echo '<ul class="post-meta-box meta-box-style2">';
                        if( $tz_hide_post_category != 1 ) :
                            echo '<li>'.paperio_post_category( get_the_ID(), 'text-link-light-gray category-layout-meta-link', $show_no_of_category ).'</li>';
                        endif;
                        if( $tz_hide_post_date != 1 ) :
                            echo '<li class="published">'.get_the_date( $tz_category_post_date_format ).'</li>';
                        endif;
                    echo '</ul>';
                echo '</div>';
                if( $tz_hide_post_date != 1 ) :
                    echo '<time class="updated display-none" datetime="'.esc_attr( get_the_modified_date( 'c' ) ).'">'.get_the_modified_date( $tz_category_post_date_format ).'</time>';
                endif;
            endif;
            
            if( $tz_hide_post_excerpt != 1 ) :
                $show_excerpt = paperio_get_the_excerpt_content( $tz_post_excerpt_length );
                if( $show_excerpt ){
                    echo '<div class="margin-six-bottom xs-margin-eight-bottom entry-summary">'.esc_html( $show_excerpt ).'</div>';
                }
            endif;
        
            echo '<div class="blog-meta text-uppercase">';
                if( $tz_hide_category_read_more_button != 1 ) :
                    echo '<a href="'.get_permalink().'" class="btn btn-very-small text-uppercase alt-font no-letter-spacing'.esc_attr( $blog_button_color_class ).'">'.esc_attr( $tz_default_button_text ).' '.$tz_category_read_more_button_arrow.'';
                    echo '</a>';
                endif;

                if( ( comments_open() && ( $tz_hide_post_comment_link != 1 ) ) || $tz_hide_category_post_like != 1 ) :
                    echo '<ul class="fl-right blog-listing-comment category-blog-listing-comment">';
                        if( comments_open() && ( $tz_hide_post_comment_link != 1 ) ) {
                            echo '<li>';
                                comments_popup_link( __( '<i class="far fa-comment"></i><span>No Comment</span>', 'paperio' ), __( '<i class="far fa-comment"></i><span>1 Comment</span>', 'paperio' ), __( '<i class="far fa-comment"></i><span>% Comments</span>', 'paperio' ), 'comment category-layout-comment-link' );
                            echo '</li>';
                        }
                        if( $tz_hide_category_post_like != 1 && function_exists( 'paperio_get_simple_likes_button' ) ) {
                            echo '<li>'.paperio_get_simple_likes_button( get_the_ID(), '', 'text-link-black category-layout-comment-link' ).'</li>';
                        }
                    echo '</ul>';
                endif;
            echo '</div>';
        echo '</div>';
        echo '<!-- end post detail -->';
    echo '</div>';