<?php
global $ceo_width_4;
if(empty($ceo_width_4)){
    $ceo_width_4='ceo-width-1-4';
}
?>
<div class="ceo-width-1-1@s ceo-width-1-2  ceo-width-1-4@m ceo-width-1-4@l <?php echo $ceo_width_4;?>@xl">
    <div class="ceo-album-5 card-item b-r-4 ceo-background-default ceo-overflow-hidden ceo-vip-icons">
        <?php if(_ceo('ceo_cat_viptb') == true ): ?>
            <?php if(get_post_meta(get_the_ID(),'member_down',1)!=1){?>
            <span class="meta-vip-tag"></span>
            <?php }?>
        <?php endif; ?>

        <?php
            $img_w=_ceo('thumbnail-px')['width'];
            $img_h=_ceo('thumbnail-px')['height'];
            $style_w_h='';
        if(!empty($category = get_queried_object())){
            $category_id=$category->term_id;
            $thumbnail_custom = get_term_meta($category_id, 'thumbnail_px_custom', 'true');
            if(!empty($thumbnail_custom) && !empty($thumbnail_custom['height'])){
                $img_w = ! empty($thumbnail_custom['width']) ? $thumbnail_custom['width'] : '';
                $img_h = ! empty($thumbnail_custom['height']) ? $thumbnail_custom['height'] : '';
                $style_w_h = 'height:'.$img_h.'px';
            }
        }
        ?>
        <div class="ceo_app_img">
        	<a href="<?php the_permalink(); ?>" <?php echo _target_blank();?> class="cover ceo-display-block ceo-overflow-hidden">
                <img src="<?php echo post_thumbnail_src($img_w,$img_h); ?>" alt="<?php the_title(); ?>" class="ceo-width-1-1@s" >
                <div class="ceo-album">
        	        <figcaption>
        			    <p><?php if (is_sticky()): ?><i class="ceo-tops iconfont icon-brand-fill"></i><?php endif; ?><?php the_title(); ?></p>
        			</figcaption>
        		</div>
        	</a>
    	</div>
        <?php ?>
    </div>
</div>
