- 1 +
The equivalent of Smarty variable {$url} in PHP is $this->_vars['url']

So you can have something like:

{php} echo $this->_vars['url']; {/php}

Take note though that this will only work if you put this on the Smarty template and that the $url is available, i.e. in link_summary.tpl. This won't work if you put this on header.tpl because this particular template doesn't have access to $url.