1: <?php
2: /**
3: *
4: * @package Legacy
5: * @version $Id: function.xoops_explaceholder.php,v 1.3 2008/09/25 15:12:36 kilica Exp $
6: * @copyright Copyright 2005-2007 XOOPS Cube Project <https://github.com/xoopscube/legacy>
7: * @license https://github.com/xoopscube/legacy/blob/master/docs/GPL_V2.txt GNU GENERAL PUBLIC LICENSE Version 2
8: *
9: */
10:
11: /*
12: * Smarty plugin
13: * -------------------------------------------------------------
14: * Type: function
15: * Name: xoops_explaceholder
16: * Version: 1.0
17: * Date: Oct 12, 2006
18: * Author: minahito
19: * Purpose: Extended place holder
20: * Input: control =
21: *
22: * Examples: <{xoops_explaceholder control=sp_pagenavi pagenavi=$pagenavi}>
23: * -------------------------------------------------------------
24: */
25: function smarty_function_xoops_explaceholder($params, &$smarty)
26: {
27: $buf = null;
28:
29: if (isset($params['control'])) {
30: XCube_DelegateUtils::call('Legacy.Event.Explaceholder.Get.' . $params['control'], new XCube_Ref($buf), $params);
31:
32: if ($buf === null) {
33: XCube_DelegateUtils::call('Legacy.Event.Explaceholder.Get', new XCube_Ref($buf), $params['control'], $params);
34: }
35: }
36:
37: return $buf;
38: }
39:
40: ?>
41: