Submit
Path:
~
/
home
/
getwphos
/
public_html
/
srlgroup
/
wp-content
/
themes
/
adsett
/
elements
/
templates
/
pxl_socials
/
File Content:
layout-1.php
<div class="pxl-socials-wrap layout-1"> <?php foreach ($settings['social_list'] as $key => $value): $social_name = $value['social_name']; if(!empty($value['social_icon']['value'])){ $link_attrs = []; if ( ! empty( $value['social_link']['url'] ) ) { $link_attrs['href'] = $value['social_link']['url']; } if ( ! empty($value['social_link']['is_external'] )) { $link_attrs['target'] = '_blank'; } if ( ! empty($value['social_link']['nofollow'] )) { $link_attrs['rel'] = 'nofollow'; } if( ! empty($value['social_link']['custom_attributes'])){ $custom_attributes = explode('|', $value['social_link']['custom_attributes']); foreach ($custom_attributes as $atts_value) { $_custom_attributes = explode(':', $atts_value); $link_attrs[$_custom_attributes[0]] = $_custom_attributes[1]; } } Elementor\Icons_Manager::render_icon( $value['social_icon'], array_merge([ 'aria-hidden' => 'true', 'class' => 'social-item pxl-icon'], $link_attrs ), 'a' ); }else{ $link = isset($value['social_link']) ? $value['social_link'] : []; $link_key = $widget->get_repeater_setting_key( 'social_link', 'social_list', $key ); if ( ! empty( $link['url'] ) ) { $widget->add_render_attribute( $link_key, 'href', $link['url'] ); if ( $link['is_external'] ) { $widget->add_render_attribute( $link_key, 'target', '_blank' ); } if ( $link['nofollow'] ) { $widget->add_render_attribute( $link_key, 'rel', 'nofollow' ); } if( ! empty($value['social_link']['custom_attributes'])){ $custom_attributes = explode('|', $value['social_link']['custom_attributes']); foreach ($custom_attributes as $atts_value) { $_custom_attributes = explode(':', $atts_value); $widget->add_render_attribute( $link_key, $_custom_attributes[0], $_custom_attributes[1] ); } } } $link_attributes = $widget->get_render_attribute_string( $link_key ); if(!empty($social_name) && !empty($link_attributes)) echo '<a class="social-item" '. implode( ' ', [ $link_attributes ] ).'>'.$social_name.'</a>'; } endforeach; ?> </div>
Submit
FILE
FOLDER
Name
Size
Permission
Action
layout-1.php
2447 bytes
0644
layout-2.php
1052 bytes
0644
layout-3.php
1043 bytes
0644
N4ST4R_ID | Naxtarrr