Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /var/www/theprintave/wp-content/themes/pricom/templates/archive/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/theprintave/wp-content/themes/pricom/templates/archive/content-quote.php
<?php
/**
 * @package    HaruTheme
 * @version    1.0.0
 * @author     Administrator <admin@harutheme.com>
 * @copyright  Copyright 2022, HaruTheme
*/

$quote_content    = get_post_meta( get_the_ID(), 'haru_post_quote_text', true );
$quote_author     = get_post_meta( get_the_ID(), 'haru_post_quote_author', true );
$quote_author_url = get_post_meta( get_the_ID(), 'haru_post_quote_url', true );

// Process archive post class
$archive_display_type = haru_get_option( 'haru_archive_display_type', 'large-image' );

// Use for Demo
if ( isset( $_GET['blog_style'] ) ) {
    $archive_display_type = wc_clean( $_GET['blog_style'] ); // large-image, medium-image, grid
}

$post_classes[] = 'grid-item';
$post_classes[] = $archive_display_type;

if ( in_array( $archive_display_type, array( 'grid', 'masonry' ) ) ) {

} else {
  
}

$post_excerpt = haru_get_option( 'haru_archive_number_exceprt', 30 );

// Use for Demo
if ( isset( $_GET['number_excerpt'] ) ) {
  $post_excerpt = wc_clean( $_GET['number_excerpt'] );
}

?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_classes ); ?> >
    <div class="post-wrap">      
        <?php if ( ! $quote_content || ! $quote_author || ! $quote_author_url ) : ?>
            <div class="post-set-quote">
                <?php echo esc_html__( 'Please set correct quote!', 'pricom' ); ?>
            </div>
        <?php else : ?>
            <?php echo haru_post_thumbnail(); ?>
        <?php endif; ?>
        <div class="post-content-wrap">
            <div class="post-detail">
                <div class="post-meta-info">
                    <?php get_template_part( 'templates/archive/post-meta' ); ?>
                </div>
                <div class="post-detail-content">
                    <h3 class="post-title">
                        <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
                    </h3>
                    <div class="post-excerpt">
                        <?php 
                            if ( has_excerpt() ) {
                                echo wp_trim_words( get_the_excerpt(), $post_excerpt, '...' );
                            } else {
                                echo wp_trim_words( get_the_content(), $post_excerpt, '...' ); 
                            }
                        ?>
                    </div>
                    <div class="post-read-more">
                        <a href="<?php the_permalink(); ?>" class="read-more haru-button haru-button--size-medium haru-button--bg-primary haru-button--round-normal" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo esc_html__( 'Read more', 'pricom' ); ?></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</article>

Spamworldpro Mini