Dotclear

source: plugins/carnaval/forms.php @ 556

Revision 556, 2.6 KB checked in by Osku, 15 years ago (diff)

Carnaval 1.2RC - finally blowup friendly

Line 
1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
2/***************************************************************\
3 *  This is 'Carnaval', a plugin for Dotclear 2                *
4 *                                                             *
5 *  Copyright (c) 2007-2008                                    *
6 *  Osku and contributors.                                     *
7 *                                                             *
8 *  This is an open source software, distributed under the GNU *
9 *  General Public License (version 2) terms and  conditions.  *
10 *                                                             *
11 *  You should have received a copy of the GNU General Public  *
12 *  License along with 'Carnaval' (see COPYING.txt);           *
13 *  if not, write to the Free Software Foundation, Inc.,       *
14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    *
15\***************************************************************/
16
17$forms = array();
18
19if ($core->blog->settings->theme == 'default') {
20     $forms['form_fields'] = '
21     <p><label class="required" title="'.__('Required field').'">'.__('Name:').' '.
22          form::field('comment_author',30,255,html::escapeHTML($comment_author),'',2).
23     '</label></p>
24     <p><label class="required" title="'.__('Required field').'">'.__('CSS Class:').' '.
25          form::field('comment_class',30,255,html::escapeHTML($comment_class),'',3).
26     '</label></p>
27     <p><label>'.__('Mail:').' '.
28          form::field('comment_author_mail',30,255,html::escapeHTML($comment_author_mail),'',4).
29     '</label></p>
30     <p><label>'.__('URL:').' '.
31          form::field('comment_author_site',30,255,html::escapeHTML($comment_author_site),'',5).
32     '</label></p>
33     <p><label>'.__('Text color:').' '.
34          form::field('comment_text_color',7,7,html::escapeHTML($comment_text_color),'colorpicker',6).
35     '</label></p>
36     <p><label>'.__('Background color:').' '.
37          form::field('comment_background_color',7,7,html::escapeHTML($comment_background_color),'colorpicker',7).
38     '</label></p>
39';
40}
41else {
42     $forms['form_fields'] = '
43     <p><label class="required" title="'.__('Required field').'">'.__('Name:').' '.
44          form::field('comment_author',30,255,html::escapeHTML($comment_author),'',2).
45     '</label></p>
46     <p><label class="required" title="'.__('Required field').'">'.__('CSS Class:').' '.
47          form::field('comment_class',30,255,html::escapeHTML($comment_class),'',3).
48     '</label></p>
49     <p><label>'.__('Mail:').' '.
50          form::field('comment_author_mail',30,255,html::escapeHTML($comment_author_mail),'',4).
51     '</label></p>
52     <p><label>'.__('URL:').' '.
53          form::field('comment_author_site',30,255,html::escapeHTML($comment_author_site),'',5).
54     '</label></p>
55';
56}
57?>
Note: See TracBrowser for help on using the repository browser.

Sites map