XOOPS  2.6.0
compiler.xoImgUrl.php
Go to the documentation of this file.
1 <?php
34 function smarty_compiler_xoImgUrl($params, Smarty $smarty)
35 {
37  $xoTheme = $xoops->theme();
38  $arg = reset($params);
39  $arg = trim($arg, " '\"\t\n\r\0\x0B");
40  $path = (isset($xoTheme) && is_object($xoTheme)) ? $xoTheme->resourcePath($arg) : $arg;
41 //$xoops->events()->triggerEvent('debug.log', $path);
42  return "<?php echo '" . addslashes($xoops->url($path)) . "'; ?>";
43 
44 }
$path
Definition: execute.php:31
$xoTheme
Definition: common.php:262
static getInstance()
Definition: Xoops.php:160
smarty_compiler_xoImgUrl($params, Smarty $smarty)
$xoops
Definition: admin.php:25