You are here

public static function InstapageCmsPluginConnector::getSiteURL in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/connectors/InstapageCmsPluginConnector.php \InstapageCmsPluginConnector::getSiteURL()

Gets the site base URL.

Parameters

bool $protocol Value returned with protocol or not.:

Return value

string Site base URL. With protocol or not.

File

core/connectors/InstapageCmsPluginConnector.php, line 159

Class

InstapageCmsPluginConnector
Main connector class, used to integrate with PHP-based CMSes. It's job is to detect a CMS that executes the code and select proper CMS Connector.

Code

public static function getSiteURL($protocol = true) {
  return self::getSelectedConnector()
    ->getSiteURL($protocol);
}