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-single.php
<?php
/**
 * Template part for displaying posts
 *
 * @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' );
        $single_post_author = omexo_array_get($omexo_option, 'single-post-author') ? $omexo_option['single-post-author'] : '';
        $single_post_cat    = omexo_array_get($omexo_option, 'single-post-cat') ? $omexo_option['single-post-cat'] : '';
        $single_post_comnt  = omexo_array_get($omexo_option, 'single-post-comnt') ? $omexo_option['single-post-comnt'] : '';
        $single_post_tag    = omexo_array_get($omexo_option, 'single-post-tag') ? $omexo_option['single-post-tag'] : '';  
    ?>

    <div class="blog-posts omexo-single-post">
        <?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">
                        <?php if($single_post_author == true):?>
                        <li><?php omexo_posted_by();?></li>
                        <?php endif;?>
                        
                        <li><?php omexo_posted_on();?></li>
                        <?php if(get_comments_number() != 0):
                                if($single_post_comnt == true):?>
                                <li><?php omexo_comment_count();?></li>
                                <?php
                                endif;
                        endif;
                        ?>

                        <?php if($single_post_cat == true){?><li><?php omexo_post_categories();?></li><?php } ?>
                    </ul>
                </div><!-- .entry-meta -->
            <?php 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 -->

        <?php if ( $single_post_tag == true) : ?>
        <div class="entry-footer">
            <div class="post-tags">
                <?php omexo_post_tags(); ?>
            </div>
        </div>
        <?php endif;?>
    </div>

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

Youez - 2016 - github.com/yon3zu
LinuXploit