SproutCMS

This is the code documentation for the SproutCMS project

function addSocialDomain()

Add a domain to provided social link, if it doesn't have one

Usage

string Url::addSocialDomain ( string $social_link , string $domain );

Arguments

  1. string $social_link
    Social link, e.g. 'https://instagram.com/kbtestbot3000' or 'kbtestbot3000'
  2. string $domain
    $domain, e.g. 'instagram.com'

Return value

  • string
    Social link with domain, e.g. 'https://instagram.com/kbtestbot3000'