Function ze\link::protocol()

In PHP:
ze\link::protocol()
In Twig frameworks:
ze('link', 'protocol')

Description

This function checks the PHP $_SERVER['SCRIPT_URI'] variable, and returns either http:// or https:// depending on whether a secure connection is currently being used.