Submit
Path:
~
/
home
/
getwphos
/
public_html
/
srlgroup
/
wp-content
/
themes
/
adsett
/
elements
/
templates
/
pxl_partner
/
File Content:
layout-1.php
<?php extract($settings); $thumbnail = ''; $img_size = !empty($img_size) ? $img_size : '570x570'; if(!empty($partner_img['id'])){ $img = pxl_get_image_by_size( array( 'attach_id' => $partner_img['id'], 'thumb_size' => $img_size, ) ); $thumbnail = $img['thumbnail']; } if ( ! empty( $partner_link['url'] ) ) { $widget->add_render_attribute( 'partner_link', 'href', $partner_link['url'] ); if ( $partner_link['is_external'] ) { $widget->add_render_attribute( 'partner_link', 'target', '_blank' ); } if ( $partner_link['nofollow'] ) { $widget->add_render_attribute( 'partner_link', 'rel', 'nofollow' ); } } if ( ! empty( $partner_link['custom_attributes'] ) ) { // Custom URL attributes should come as a string of comma-delimited key|value pairs $custom_attributes = Elementor\Utils::parse_custom_attributes( $partner_link['custom_attributes'] ); $widget->add_render_attribute( 'partner_link', $custom_attributes); } if(!empty($partner_img['id'])) : ?> <div class="pxl-partner d-flex-wrap align-items-center justify-content-center"> <?php if ( ! empty( $partner_link['url'] ) ) { ?><a <?php pxl_print_html($widget->get_render_attribute_string( 'partner_link' )); ?>><?php } ?> <?php echo wp_kses_post($thumbnail); ?> <?php if ( ! empty( $partner_link['url'] ) ) { ?></a><?php } ?> </div> <?php endif; ?>
Submit
FILE
FOLDER
Name
Size
Permission
Action
layout-1.php
1462 bytes
0644
N4ST4R_ID | Naxtarrr