HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/www/pm/app/Views/users/social_links_widget.php
<?php

//available social link types and icon 
$social_link_icons = array(
    "facebook" => "facebook",
    "twitter" => "twitter",
    "linkedin" => "linkedin",
    "whatsapp" => "phone",
);

$social_link_svg_icons = array(
    "digg" => "digg",
    "youtube" => "youtube",
    "pinterest" => "pinterest",
    "instagram" => "instagram",
    "github" => "github",
    "tumblr" => "tumblr",
    "vine" => "vine",
);

$links = "";

foreach ($social_link_icons as $key => $icon) {
    if (isset($weblinks->$key) && $weblinks->$key) {
        $address = to_url($weblinks->$key); //check http or https in url
        $links .= "<a target='_blank' href='$address' class='social-link'><i data-feather='$icon' class='icon-16'></i></a>";
    }
}

foreach ($social_link_svg_icons as $key => $icon) {
    if (isset($weblinks->$key) && $weblinks->$key) {
        $address = to_url($weblinks->$key); //check http or https in url
        $links .= "<a target='_blank' href='$address' class='social-link custom-svg'>" . view("users/svg_social_icons/$icon") . "</a>";
    }
}
echo $links;
?>