<?php 
$width_col=4;
$category_this = get_queried_object();
$category_id_this=$category_this->term_id;
$is_enable_5_col = get_term_meta($category_id_this, 'is_enable_5_col', 'true');
if($is_enable_5_col){
    $width_col=5;
}
?>
<div class="ajax-item ceo-width-1-1@s ceo-width-1-2 ceo-width-1-<?php echo $width_col; ?>@xl">
    <div class="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 ceo-cat-sucai">
                <span><i class="iconfont icon-download"></i> 立即下载</span>
        	    <img src="<?php echo post_thumbnail_src($img_w,$img_h); ?>" alt="<?php the_title(); ?>" class="ceo-width-1-1@s" >
        	</a>
    	</div>
        <?php ?>
    	<div class="ceo-padding-remove">
            <?php if(_ceo('ceo_cat_title') == true ): ?>
            <div class="card-title-desc ceo-cat-sucai-title">
                <a href="<?php the_permalink(); ?>" <?php echo _target_blank();?> class="title ceo-display-block" title="<?php the_title(); ?>">
                    <?php if (is_sticky()): ?><i class="ceo-tops iconfont icon-brand-fill"></i><?php endif; ?><?php the_title(); ?>
                </a>
            </div>
            <?php endif; ?>
        </div>
    </div>
</div>