[xoops-cvslog 4936] CVS update: xoops2jp/html/class/smarty/plugins

Back to archive index

Minahito minah****@users*****
2006年 10月 12日 (木) 20:00:26 JST


Index: xoops2jp/html/class/smarty/plugins/function.xoops_explaceholder.php
diff -u /dev/null xoops2jp/html/class/smarty/plugins/function.xoops_explaceholder.php:1.1.2.1
--- /dev/null	Thu Oct 12 20:00:26 2006
+++ xoops2jp/html/class/smarty/plugins/function.xoops_explaceholder.php	Thu Oct 12 20:00:26 2006
@@ -0,0 +1,32 @@
+<?php
+
+/*
+ * Smarty plugin
+ * -------------------------------------------------------------
+ * Type:     function
+ * Name:     xoops_explaceholder
+ * Version:  1.0
+ * Date:     Oct 12, 2006
+ * Author:   minahito
+ * Purpose:  Extended place holder
+ * Input:    control =
+ * 
+ * Examples: <{xoops_explaceholder control=sp_pagenavi pagenavi=$pagenavi}>
+ * -------------------------------------------------------------
+ */
+function smarty_function_xoops_explaceholder($params, &$smarty)
+{
+	$buf = null;
+	
+	if (isset($params['control'])) {
+		XCube_DelegateUtils::call('Legacy.Event.Explaceholder.Get.' . $params['control'], new XCube_Ref($buf), $params);
+		
+		if ($buf === null) {
+			XCube_DelegateUtils::call('Legacy.Event.Explaceholder.Get', new XCube_Ref($buf), $params['control'], $params);
+		}
+	}
+	
+	return $buf;
+}
+
+?>


xoops-cvslog メーリングリストの案内
Back to archive index