/
home
/
henzagold
/
blog
/
wp-content
/
themes
/
gillion
/
inc
/
widgets
/
advertise
/
views
/
File Upload :
llllll
Current File: /home/henzagold/blog/wp-content/themes/gillion/inc/widgets/advertise/views/widget.php
<?php if ( ! defined( 'ABSPATH' ) ) { die( 'Direct access forbidden.' ); } $ad = ( isset( $atts['advertise']['type'] ) ) ? $atts['advertise']['type'] : 'image'; if( isset( $atts['advertise'] ) ) : $ad_atts = gillion_get_picker( $atts['advertise'] ); else : $ad_atts = []; // Image if( !empty( $atts['ad_image'] ) ) : $ad_atts['ad_image']['attachment_id'] = $atts['ad_image']; endif; // Image URL if( isset( $atts['ad_url'] ) ) : $ad_atts['ad_url'] = $atts['ad_url']; endif; // Code if( !empty( $atts['ad_code'] ) ) : $ad_atts['ad_code'] = $atts['ad_code']; endif; endif; ?> <?php echo wp_kses_post( $before_widget ); ?> <?php if( $atts['title'] ) : echo ' <div class="sh-widget-title-styling"> <h3 class="widget-title">'.esc_attr( $atts['title'] ).'</h3> </div>'; endif; ?> <?php if( !empty( $ad_atts['ad_image'] ) ) : ?> <a href="<?php echo esc_url( $ad_atts['ad_url'] ); ?>"> <img src="<?php echo gillion_get_small_thumb( $ad_atts['ad_image']['attachment_id'], 'large' ); ?>" /> </a> <?php endif; ?> <?php if( !empty( $ad_atts['ad_code'] ) ) : ?> <?php echo do_shortcode( $ad_atts['ad_code'] ); ?> <?php endif; ?> <?php echo wp_kses_post( $after_widget ); ?>
Copyright ©2k19 -
Hexid
|
Tex7ure