string url( absolute, secure, canonical, amphtml )

Description:

Get the asset's URL.

Parameters:

absolute

Pass true to include protocol and domain name in the returned URL.

secure

Pass true to get a secure URL. Implies absolute.

canonical

Pass true get the asset's unchanging canonical URL. Implies absolute and overrides secure.

amphtml

Pass true to get the asset's Google AMP URL. Implies absolute.

Return:

The asset's URL.