← Back
Editing: social_info.php
<?php /** * @author wpWax * @since 6.7 * @version 7.4.0 */ if ( ! defined( 'ABSPATH' ) ) exit; $socials = $listing->get_socials(); if ( empty( $socials ) ) { return; } ?> <div class="directorist-single-info directorist-single-info-socials"> <?php if ( $data['label'] ) : ?> <div class="directorist-single-info__label"> <span class="directorist-single-info__label-icon"><?php directorist_icon( $icon );?></span> <span class="directorist-single-info__label__text"><?php echo esc_html( $data['label'] ); ?></span> </div> <?php endif; ?> <div class="directorist-social-links"> <?php foreach ( $socials as $social ) : ?> <?php $social['url'] = directorist_contact_url_for_display( $social['url'] ?? '' ); if ( '' === $social['url'] ) { continue; } $icon = 'lab la-' . $social['id']; ?> <a target='_blank' href="<?php echo esc_url( $social['url'] ); ?>" class="<?php echo esc_attr( $social['id'] ); ?>"> <?php directorist_icon( $icon ); ?> </a> <?php endforeach; ?> </div> </div>
Save File
Cancel