HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: /home/madepabj/hc-cosmetics.com/wp-content/themes/dbea/framework/tpl/posts/post.php
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <div class="inner-post">
    <?php
    // Post Quote
    if ( get_post_format() == 'quote' && function_exists('rwmb_meta') && rwmb_meta('dbea_post_quotecontent') && rwmb_meta('dbea_post_quoteauthor') ) :
        $uq  = rand().time();
        ?>
        <div class="quote-info quote-info-<?php echo esc_attr($uq); ?>">
            <?php if ( rwmb_meta('dbea_post_quotecontent') ) : ?>
            <div class="quote-content"><?php echo esc_html(rwmb_meta('dbea_post_quotecontent')); ?></div>
            <?php endif; ?>
             <?php if ( rwmb_meta('dbea_post_quoteauthor') ) : ?>
            <div class="quote-author"><?php echo esc_html(rwmb_meta('dbea_post_quoteauthor')); ?></div>
            <?php endif; ?>
        </div>
    <?php
    // Post Link
    elseif ( get_post_format() == 'link' && function_exists('rwmb_meta') && rwmb_meta('dbea_post_linkurl') ) : 
    ?> 
        <div class="link-info">
            <a title="<?php echo esc_attr(rwmb_meta('dbea_post_linktitle')) ?>" href="<?php echo esc_url( rwmb_meta('dbea_post_linkurl') ) ?>"><?php echo esc_html(rwmb_meta('dbea_post_linktitle')) ?></a>
        </div>
    <?php
    // Post Video
    elseif ( get_post_format() == 'video' && get_post_meta(get_the_id(), 'dbea_post_video', true) ) : 
    ?>
        <div class="video-thumb video-responsive">
            <?php
            echo rwmb_meta('dbea_post_video');
            ?>
        </div>
    <?php
    // Post audio
    elseif ( get_post_format() == 'audio' && get_post_meta(get_the_id(), 'dbea_post_audio', true) ) : ?>
    ?>
        <div class="audio-thumb audio-responsive">
            <?php
            echo wp_oembed_get(esc_attr(rwmb_meta('dbea_post_audio')));
            ?>
        </div>
    <?php
    // Post Gallery
    elseif ( function_exists('rwmb_meta') && rwmb_meta('dbea_post_gallery') ) :
    ?>
        <div class="gallery-thumb">
            <div class="thumb-container owl-carousel">
            <?php
            foreach (rwmb_meta('dbea_post_gallery', 'type=image') as $image) { ?>
                <?php 
                if ( isset($image['sizes']['dbea_blog_large_thumb']) && $image['sizes']['dbea_blog_large_thumb']['file'] ) {
                    $src = str_replace($image['name'], $image['sizes']['dbea_blog_large_thumb']['file'], $image['full_url']);
                }else{
                    $src = $image['full_url'];
                }
                ?>
               <div class="item"><img alt="<?php echo esc_attr($image['alt']); ?>" src="<?php echo esc_attr($src); ?>"/></div>
            <?php
            }
            ?>
            </div>
        </div>
    <?php
    // Post Image
    elseif ( has_post_thumbnail() ) : ?>
        <div class="post-thumb">
            <?php
            $blog_type = dbea_themeoption('blog_type');
            ?>
            <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
            <?php
                the_post_thumbnail('dbea_blog_large_thumb');
            ?>
            </a>
        </div>
    <?php
    endif;?>
<div class="post-info-wrap">
<?php
if( $post->post_type == 'post' && dbea_themeoption('show_categories', 1) == 1 && get_the_category_list() ):
$post_categories = get_the_terms( get_the_ID(), 'category' );
if ( ! empty( $post_categories ) && ! is_wp_error( $post_categories ) ) {
    echo '<div class="post-categories">'.get_the_category_list(', ', '', get_the_ID()).'</div>';
}
endif;?>

    <?php if ( get_the_title() != '' ) : ?>
    <h3 class="post-title">
        <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
    </h3>
    <?php endif;?>
<?php if ( $post->post_type == 'post' ) { ?>
    <div class="post-meta">
<?php if ( is_sticky() && ! is_paged() && !is_search() ) { ?>
    <span class="sticky-content"><?php echo esc_html__( 'Featured', 'dbea' ) ; ?></span><?php } ?>
<?php
if (dbea_themeoption('show_date', 1) == 1 ) :
    printf( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date published" datetime="%2$s">%3$s</time></a></span>', esc_url( get_permalink() ), esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ) );
endif;
?>
<?php if( dbea_themeoption('show_author', 1) == 1 ): ?>
<span class="post-author">
<?php
printf(wp_kses(__( '%s <a class="author-link" href="%s">%s</a>', 'dbea' ), array(
    'a' => array(
        'href' => array(),
        'class' => array(),
        'ref' => array()
    ),
    )), esc_html__( 'By:','dbea' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author_meta('display_name') ); ?>
</span><?php endif; ?>
<?php if( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ): ?>
<span class="post-comment-count">
<?php
    echo '<span class="comments-link">';
    comments_popup_link( esc_html__( '0 Comment','dbea' ),  esc_html__( '1 Comment','dbea' ), '%' . esc_html__(' Comments','dbea'));
    echo '</span>';
?>
</span>
<?php endif; ?>
<?php
// Edit link
edit_post_link(esc_html__('Edit','dbea'), '<span class="edit-post">', '</span>'); ?>
</div>
<?php } ?>
    <div class="post-content">      
        <?php
        if ( is_search() ) {
            the_excerpt();
            if ( dbea_themeoption('show_morelink', 0) == 1) : ?>
                    <a class="btn more-link" href="<?php echo get_permalink();?>" title="<?php esc_attr_e('read more', 'dbea');?>"><?php esc_html_e('Read more', 'dbea');?></a>
            <?php endif;
        }else{
            if( empty( $post->post_excerpt ) ) {
                $readmore = '<span>'.esc_html__('Read more', 'dbea').'</span><span class="meta-nav">&#8594;</span>';
                if ( $post->post_type == 'page' ) {
                    // Trip shortcodes for post type is page on search result page
                    echo strip_shortcodes(get_the_content($readmore));
                }else{
                    the_content($readmore);
                }
                wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'dbea' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
            } else { ?>
                <p class="excerpt"><?php echo esc_html(dbea_excerpt( (int)dbea_themeoption('excerpt_length', 25) )); ?></p>
                <?php if ( dbea_themeoption('show_morelink', 0) == 1) : ?>
                    <a class="btn more-link" href="<?php echo get_permalink();?>" title="<?php esc_attr_e('read more', 'dbea');?>"><?php esc_html_e('Read more', 'dbea');?></a>
                <?php endif; ?>
            <?php 
            }
        } ?>
    </div>
    </div>
</div>
</article>