HEX
Server: LiteSpeed
System: Linux s12873.lon1.stableserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: jairicem (1242)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/jairicem/tkidsfoundation.org/wp-content/themes/donat/search.php
<?php
/**
 * @Packge     : donat
 * @Version    : 1.0
 * @Author     : Themehause
 * @Author URI : https://themeforest.net/user/themehause
 *
 */

// Block direct access
if ( ! defined('ABSPATH') ) {
    exit;
}
    // Header
    get_header();

    /**
    *
    * Hook for Blog Start Wrapper
    *
    * Hook donat_blog_start_wrap
    *
    * @Hooked donat_blog_start_wrap_cb 10
    *
    */
    do_action( 'donat_blog_start_wrap' );

    /**
    *
    * Hook for Blog Column Start Wrapper
    *
    * Hook donat_blog_col_start_wrap
    *
    * @Hooked donat_blog_col_start_wrap_cb 10
    *
    */
    do_action( 'donat_blog_col_start_wrap' ); ?>

    <div class="search-active-wrap">
        <div class="row search-active">
            <?php
            if( have_posts() ) {
                while( have_posts() ) {
                    the_post();
                    if ( is_active_sidebar( 'donat-blog-sidebar' ) ) {
                        $column_class = 'col-md-6';
                    }else{
                        $column_class = 'col-md-4';
                    } ?>
                    <div class="<?php echo esc_attr( $column_class ) ?> filter-item">
                        <div class="th-search">
                            <?php
                            if( has_post_thumbnail() ){ ?>
                                <div class="search-grid-img image-scale-hover">
                                    <a href="<?php echo esc_url( get_the_permalink() ); ?>">
                                        <?php the_post_thumbnail( ); ?>
                                    </a>
                                </div>
                            <?php } ?>
                            <div class="search-grid-content">
                                <?php 
                                if( get_the_title() ){ ?>
                                    <!-- Post Title -->
                                    <h4 class="search-grid-title fw-semibold"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php echo esc_html( get_the_title( ) ) ?></a></h4>
                                    <!-- End Post Title -->
                                <?php } ?>

                                <div class="search-grid-meta blog-meta">
                                    <span><a href="<?php echo esc_url( donat_blog_date_permalink() ) ?>"><i class="fal fa-calendar-days"></i>
                                        <time datetime="<?php echo esc_attr( get_the_date( DATE_W3C ) ) ?>"><?php echo esc_html( get_the_date() ) ?></time>
                                    </a></span>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php
                }
                wp_reset_postdata();
            }else{
                get_template_part('templates/content','none');
            }?>
        </div>
    </div>
    
    <?php

    /**
    *
    * Hook for Blog Pagination
    *
    * Hook donat_blog_pagination
    *
    * @Hooked donat_blog_pagination_cb 10
    *
    */
    do_action( 'donat_blog_pagination' );

    /**
    *
    * Hook for Blog Column End Wrapper
    *
    * Hook donat_blog_col_end_wrap
    *
    * @Hooked donat_blog_col_end_wrap_cb 10
    *
    */
    do_action( 'donat_blog_col_end_wrap' );

    /**
    *
    * Hook for Blog Sidebar
    *
    * Hook donat_blog_sidebar
    *
    * @Hooked donat_blog_sidebar_cb 10
    *
    */
    do_action( 'donat_blog_sidebar' );

    /**
    *
    * Hook for Blog End Wrapper
    *
    * Hook donat_blog_end_wrap
    *
    * @Hooked donat_blog_end_wrap_cb 10
    *
    */
    do_action( 'donat_blog_end_wrap' );

    //footer
    get_footer();