• File: socials.php
  • Full Path: /home/havejqku/public_html/wp-admin/e0506b/wp-content/themes/tourio/widgets/socials.php
  • Date Modified: 09/10/2025 7:10 PM
  • File size: 884 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
extract( $args );

extract( $args );
extract( $instance );

echo trim($before_widget);
$title = apply_filters('widget_title', $instance['title']);
if ( $title ) {
    echo trim($before_title)  . trim( $title ) . $after_title;
}
?>
<ul class="apus_socials <?php echo esc_attr(!empty($styles) ? $styles : ''); ?>">
    <?php foreach( $socials as $key=>$social):
            if( isset($social['status']) && !empty($social['page_url']) ): ?>

                <li>
                    <a href="<?php echo esc_url($social['page_url']);?>" class="<?php echo esc_attr($key); ?>" target="_blank">
                        <i class="fab fa-<?php echo esc_attr($key); ?>"></i>
                    </a>
                </li>
    <?php
            endif;
        endforeach;
    ?>
</ul>
<?php echo trim($after_widget);