Submit
Path:
~
/
home
/
getwphos
/
www
/
techniquetechs
/
wp-content
/
themes
/
plexify
/
elements
/
templates
/
pxl_post_category
/
File Content:
layout-1.php
<?php $category_id = !empty($settings['post_category']) ? intval($settings['post_category']) : 0; if ($category_id) { $category = get_term($category_id, 'category'); } else { $category = null; } $img_size = $widget->get_setting('img_size','160x160'); $imgage = isset($settings['imgage']) ? $settings['imgage'] : []; $thumbnail1 = ''; if(!empty($imgage['id'])) { $img = pxl_get_image_by_size( array( 'attach_id' => $imgage['id'], 'thumb_size' => $img_size, 'class' => 'no-lazyload', )); $thumbnail1 = $img['thumbnail']; } ?> <div class="pxl-post-category layout-1"> <?php if ($category) : ?> <div class="item-inner"> <?php if(!empty($thumbnail1)) : ?> <div class="item-image"> <a href="<?php echo esc_url(get_category_link($category->term_id)); ?>"> <?php echo wp_kses_post($thumbnail1); ?> </a> </div> <?php endif; ?> <div class="item-category"> <a href="<?php echo esc_url(get_category_link($category->term_id)); ?>"> <?php echo esc_html($category->name); ?><span class="item-count"> (<?php echo intval($category->count); ?>)</span> </a> </div> </div> <?php endif; ?> </div>
Submit
FILE
FOLDER
Name
Size
Permission
Action
layout-1.php
1502 bytes
0644
N4ST4R_ID | Naxtarrr