403Webshell
Server IP : 104.26.5.103  /  Your IP : 216.73.216.4
Web Server : nginx/1.27.1
System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : arabianexpress ( 1872)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v9321/leapdubai/public_html/wp-content/themes/printx/template-parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/leapdubai/public_html/wp-content/themes/printx/template-parts/content-video.php
<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package printx
 */

 $printx_video_url = function_exists('tpmeta_field')? tpmeta_field('printx_post_video') : '';
 $categories = get_the_terms( $post->ID, 'category' );
$printx_blog_cat = get_theme_mod( 'printx_blog_cat', false );

if ( is_single() ): 
?>

<article id="post-<?php the_ID();?>" <?php post_class( 'postbox__item mb-20 transition-3' );?>>
    <?php if ( has_post_thumbnail() ): ?>
    <div class="postbox__thumb w-img p-relative">
        <?php the_post_thumbnail(); ?>
        <?php if(!empty($printx_video_url)) : ?>
        <a href="<?php echo esc_url($printx_video_url); ?>" class="video-play popup-video">
            <i class="fa-regular fa-play"></i>
        </a>
        <?php endif; ?>
        <?php if(!empty($printx_blog_cat && $categories[0]->name)) : ?>
        <div class="postbox__tag">
            <p><?php echo esc_html($categories[0]->name);?></p>
        </div>
        <?php endif; ?>
    </div>
    <?php endif; ?>
    <div class="postbox__content">
        <?php get_template_part( 'template-parts/blog/blog-meta' ); ?>
        <div class="postbox__text">
            <?php the_content();?>
            <?php
            wp_link_pages( [
                'before'      => '<div class="page-links">' . esc_html__( 'Pages:', 'printx' ),
                'after'       => '</div>',
                'link_before' => '<span class="page-number">',
                'link_after'  => '</span>',
            ] );
             ?>
        </div>
    </div>
</article>

<?php else: ?>
    
<article id="post-<?php the_ID();?>" <?php post_class( 'postbox__item mb-60 transition-3' );?>>
    <?php if ( has_post_thumbnail() ): ?>
    <div class="postbox__thumb w-img p-relative">
        <a href="<?php the_permalink(); ?>">
            <?php the_post_thumbnail(); ?>
            <?php if(!empty($printx_video_url)) : ?>
            <a href="<?php echo esc_url($printx_video_url); ?>" class="video-play popup-video">
                <i class="fa-regular fa-play"></i>
            </a>
            <?php endif; ?>
        </a>
        <?php if(!empty($printx_blog_cat && $categories[0]->name)) : ?>
        <div class="postbox__tag">
            <p><?php echo esc_html($categories[0]->name);?></p>
        </div>
        <?php endif; ?>
    </div>
    <?php endif; ?>
    <div class="postbox__content">
        <?php get_template_part( 'template-parts/blog/blog-meta' ); ?>
        <h3 class="postbox__title">
            <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
        </h3>
        <div class="postbox__text">
            <?php the_excerpt();?>
        </div>
        <?php get_template_part( 'template-parts/blog/blog-btn' ); ?>
    </div>
</article>

<?php
endif;?>

Youez - 2016 - github.com/yon3zu
LinuXploit