function.theme_path.php 628 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
10
 * Smarty {theme_path} function plugin
11
12
13
14
15
16
17
18
19
20
21
 *
 * Type:     function<br>
 * Name:     str<br>
 * Date:     June 22, 2006<br>
 * Purpose:  Fetch the image according to the theme hierarchy
 * @author   Penny <penny@catalyst.net.nz>
 * @version  1.0
 * @param array
 * @param Smarty
 * @return Internationalized string
 */
22
function smarty_function_theme_path($params, &$smarty) {
23
    
24
25
    if (!isset($params['pluginlocation'])) {
        $params['pluginlocation'] = '';
26
27
    }

28
    return theme_get_url($params['location'], $params['pluginlocation']);
29
30
31
}

?>