XOOPS  2.6.0
compiler.xoAppUrl.php
Go to the documentation of this file.
1 <?php
30 function smarty_compiler_xoAppUrl($params, Smarty $smarty)
31 {
33  $arg = reset($params);
34  $url = trim($arg, " '\"\t\n\r\0\x0B");
35 
36  if (substr($url, 0, 1) == '/') {
37  $url = 'www' . $url;
38  }
39  return "<?php echo '" . addslashes(htmlspecialchars($xoops->url($url))) . "'; ?>";
40 }
static getInstance()
Definition: Xoops.php:160
smarty_compiler_xoAppUrl($params, Smarty $smarty)
$xoops
Definition: admin.php:25
$url
Definition: register.php:72