public function AddThis::currentlyOnHttps in AddThis 7.4
Request if we are currently on a https connection.
Return value
True if we are currently on a https connection.
2 calls to AddThis::currentlyOnHttps()
- AddThis::getWidgetUrl in classes/
AddThis.php - Get the url for the AddThis Widget.
- AddThis::transformToSecureUrl in classes/
AddThis.php - Transform a url to secure url with https prefix.
File
- classes/
AddThis.php, line 450 - An AddThis-class.
Class
- AddThis
- @file An AddThis-class.
Code
public function currentlyOnHttps() {
global $base_root;
return strpos($base_root, 'https://') !== FALSE ? TRUE : FALSE;
}