/
proc
/
self
/
root
/
home
/
henzagold
/
blog
/
wp-content
/
themes
/
gillion
/
inc
/
widgets
/
image
/
views
/
File Upload :
llllll
Current File: //proc/self/root/home/henzagold/blog/wp-content/themes/gillion/inc/widgets/image/views/widget.php
<?php if ( ! defined( 'ABSPATH' ) ) { die( 'Direct access forbidden.' ); } ?> <?php echo wp_kses_post( $before_widget ); ?> <?php if( isset( $atts['title'] ) && $atts['title'] ) : echo '<div class="sh-widget-title-styling"><h3 class="widget-title">'.esc_attr( $atts['title'] ).'</h3></div>'; endif; ?> <?php $image = ''; if( isset( $atts['image']['attachment_id'] ) ) : $image = $atts['image']['attachment_id']; elseif( is_numeric( $atts['image'] ) && $atts['image'] > 0 ) : $image = $atts['image']; endif; if( $image > 0 ) : $url = ( $atts['url'] ) ? $atts['url'] : ''; $class = ( isset( $atts['blackandwhite'] ) && $atts['blackandwhite'] == true ) ? 'blackandwhite' : ''; ?> <a href="<?php echo esc_url( $url ); ?>"> <img src="<?php echo gillion_get_small_thumb( $image, 'large' ); ?>" class="<?php echo esc_attr( $class ); ?>" /> </a> <?php endif; ?> <?php echo wp_kses_post( $after_widget ); ?>
Copyright ©2k19 -
Hexid
|
Tex7ure