public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Search Repo:
Adds two more module plugins (mod_helptext, and mod_formrow)


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@4449 
3d254a34-79dc-0310-9e5f-be208747d8a0
calguy1000 (author)
Sat Apr 26 08:07:29 -0700 2008
commit  593065de69ef2a1ae107bb78a2c56b41329fc667
tree    ce438bca28d51b054a96a5d365b76875536f62fb
parent  4eee9cf02cf42e0890d3d448936840615b4be08d
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
0
@@ -1 +1,34 @@
0
+<?php
0
+#CMS - CMS Made Simple
0
+#(c)2004-2006 by Ted Kulp (ted@cmsmadesimple.org)
0
+#This project's homepage is: http://cmsmadesimple.org
0
+#
0
+#This program is free software; you can redistribute it and/or modify
0
+#it under the terms of the GNU General Public License as published by
0
+#the Free Software Foundation; either version 2 of the License, or
0
+#(at your option) any later version.
0
+#
0
+#This program is distributed in the hope that it will be useful,
0
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+#GNU General Public License for more details.
0
+#You should have received a copy of the GNU General Public License
0
+#along with this program; if not, write to the Free Software
0
+#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0
+
0
+function smarty_cms_block_mod_formrow($params,$content,&$smarty,&$repeat)
0
+{
0
+ $module =& $smarty->get_template_vars('cms_mapi_module');
0
+ $id = $smarty->get_template_vars('cms_mapi_id');
0
+ $return_id = $smarty->get_template_vars('cms_mapi_return_id');
0
+ $htmlid = $id.'formrow_'.$params['name'];
0
+
0
+ $class=coalesce_key($params,'class','row');
0
+ $output = "<div class='$class' id='$htmlid'>";
0
+ $output .= $content;
0
+ $output .= '</div>';
0
+ return $output;
0
+}
0
+
0
+?>
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
0
@@ -1 +1,33 @@
0
+<?php
0
+#CMS - CMS Made Simple
0
+#(c)2004-2006 by Ted Kulp (ted@cmsmadesimple.org)
0
+#This project's homepage is: http://cmsmadesimple.org
0
+#
0
+#This program is free software; you can redistribute it and/or modify
0
+#it under the terms of the GNU General Public License as published by
0
+#the Free Software Foundation; either version 2 of the License, or
0
+#(at your option) any later version.
0
+#
0
+#This program is distributed in the hope that it will be useful,
0
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+#GNU General Public License for more details.
0
+#You should have received a copy of the GNU General Public License
0
+#along with this program; if not, write to the Free Software
0
+#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0
+
0
+function smarty_cms_function_mod_helptext($params, &$smarty)
0
+{
0
+ static $counter = 1;
0
+ $module =& $smarty->get_template_vars('cms_mapi_module');
0
+ $id = $smarty->get_template_vars('cms_mapi_id');
0
+ $translate = coalesce_key($params, 'translate', true, FILTER_VALIDATE_BOOLEAN);
0
+ $value = ($translate === true) ? $module->lang($params['value']) : $params['value'];
0
+ $htmlid = $id.'help_'.$params['name'];
0
+
0
+ return $module->create_input_hidden($id, 'help_'.$params['name'], $value,
0
+ coalesce_key($params, 'addttext', ''), $htmlid );
0
+}
0
+
0
+?>

Comments

    No one has commented yet.