Updated 2k11 to v1.0.7.
This commit is contained in:
parent
92c4b0b4f6
commit
5548e6531a
@ -8,20 +8,20 @@
|
||||
{$commentform_replyTo}
|
||||
</div>
|
||||
<div class="form_field">
|
||||
<label for="serendipity_commentform_name">{$CONST.NAME}</label>
|
||||
<input id="serendipity_commentform_name" name="serendipity[name]" type="text" value="{$commentform_name}" placeholder="{$CONST.TWOK11_PLACE_NAME}"/>
|
||||
<label for="serendipity_commentform_name">{$CONST.NAME}{if $required_fields.name}*{/if}</label>
|
||||
<input id="serendipity_commentform_name" name="serendipity[name]" type="text" value="{$commentform_name}" placeholder="{$CONST.TWOK11_PLACE_NAME}"{if $required_fields.name} required{/if}/>
|
||||
</div>
|
||||
<div class="form_field">
|
||||
<label for="serendipity_commentform_email">{$CONST.EMAIL}</label>
|
||||
<input id="serendipity_commentform_email" name="serendipity[email]" type="email" value="{$commentform_email}" placeholder="{$CONST.TWOK11_PLACE_MAIL}"/>
|
||||
<label for="serendipity_commentform_email">{$CONST.EMAIL}{if $required_fields.email}*{/if}</label>
|
||||
<input id="serendipity_commentform_email" name="serendipity[email]" type="email" value="{$commentform_email}" placeholder="{$CONST.TWOK11_PLACE_MAIL}"{if $required_fields.email} required{/if}/>
|
||||
</div>
|
||||
<div class="form_field">
|
||||
<label for="serendipity_commentform_url">{$CONST.HOMEPAGE}</label>
|
||||
<input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}" placeholder="{$CONST.TWOK11_PLACE_URL}"/>
|
||||
<label for="serendipity_commentform_url">{$CONST.HOMEPAGE}{if $required_fields.url}*{/if}</label>
|
||||
<input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}" placeholder="{$CONST.TWOK11_PLACE_URL}"{if $required_fields.url} required{/if}/>
|
||||
</div>
|
||||
<div class="form_tarea">
|
||||
<label for="serendipity_commentform_comment">{$CONST.COMMENT}</label>
|
||||
<textarea id="serendipity_commentform_comment" name="serendipity[comment]" rows="10" placeholder="{$CONST.TWOK11_PLACE_MESSAGE}">{$commentform_data}</textarea>
|
||||
<label for="serendipity_commentform_comment">{$CONST.COMMENT}{if $required_fields.comment}*{/if}</label>
|
||||
<textarea id="serendipity_commentform_comment" name="serendipity[comment]" rows="10" placeholder="{$CONST.TWOK11_PLACE_MESSAGE}"{if $required_fields.comment} required{/if}>{$commentform_data}</textarea>
|
||||
</div>
|
||||
{serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}
|
||||
{if $is_commentform_showToolbar}
|
||||
|
@ -9,6 +9,16 @@ $serendipity['smarty']->assign(array('currpage' => "http://".$_SERVER['HTTP_HOS
|
||||
function serendipity_smarty_html5time($timestamp) { return date("c", $timestamp); }
|
||||
$serendipity['smarty']->register_modifier('serendipity_smarty_html5time', 'serendipity_smarty_html5time');
|
||||
|
||||
$required_fieldlist = serendipity_db_query("SELECT value FROM {$serendipity['dbPrefix']}config WHERE name LIKE '%spamblock%required_fields'", true, 'assoc');
|
||||
$required_fields = explode(',', $required_fieldlist['value']);
|
||||
$smarty_required_fields = array();
|
||||
foreach($required_fields AS $required_field) {
|
||||
$required_field = trim($required_field);
|
||||
if (empty($required_field)) continue;
|
||||
$smarty_required_fields[$required_field] = $required_field;
|
||||
}
|
||||
$serendipity['smarty']->assign('required_fields', $smarty_required_fields);
|
||||
|
||||
$template_config = array(
|
||||
array(
|
||||
'var' => 'date_format',
|
||||
|
@ -1,4 +1,4 @@
|
||||
Name: 2k11
|
||||
Author: Matthias Mees, Veit Lehmann
|
||||
Date: 2012-01-22
|
||||
Date: 2012-01-27
|
||||
Require Serendipity: 1.6
|
||||
|
@ -24,23 +24,23 @@
|
||||
<input type="hidden" name="serendipity[commentform]" value="true"/>
|
||||
</div>
|
||||
<div class="form_field">
|
||||
<label for="serendipity_commentform_name">{$CONST.NAME}</label>
|
||||
<input id="serendipity_commentform_name" name="serendipity[name]" type="text" value="{$commentform_name}" placeholder="{$CONST.TWOK11_PLACE_NAME}"/>
|
||||
<label for="serendipity_commentform_name">{$CONST.NAME}{if $required_fields.name}*{/if}</label>
|
||||
<input id="serendipity_commentform_name" name="serendipity[name]" type="text" value="{$commentform_name}" placeholder="{$CONST.TWOK11_PLACE_NAME}"{if $required_fields.name} required{/if}/>
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label for="serendipity_commentform_email">{$CONST.EMAIL}</label>
|
||||
<input id="serendipity_commentform_email" name="serendipity[email]" type="email" value="{$commentform_email}" placeholder="{$CONST.TWOK11_PLACE_MAIL}"/>
|
||||
<label for="serendipity_commentform_email">{$CONST.EMAIL}{if $required_fields.email}*{/if}</label>
|
||||
<input id="serendipity_commentform_email" name="serendipity[email]" type="email" value="{$commentform_email}" placeholder="{$CONST.TWOK11_PLACE_MAIL}"{if $required_fields.email} required{/if}/>
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label for="serendipity_commentform_url">{$CONST.HOMEPAGE}</label>
|
||||
<input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}" placeholder="{$CONST.TWOK11_PLACE_URL}"/>
|
||||
<label for="serendipity_commentform_url">{$CONST.HOMEPAGE}{if $required_fields.url}*{/if}</label>
|
||||
<input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}" placeholder="{$CONST.TWOK11_PLACE_URL}"{if $required_fields.url} required{/if}/>
|
||||
</div>
|
||||
|
||||
<div class="form_tarea">
|
||||
<label for="serendipity_commentform_comment">{$plugin_contactform_message}</label>
|
||||
<textarea id="serendipity_commentform_comment" name="serendipity[comment]" rows="10" placeholder="{$CONST.TWOK11_PLACE_MESSAGE}">{$commentform_data}</textarea>
|
||||
<label for="serendipity_commentform_comment">{$plugin_contactform_message}{if $required_fields.comment}*{/if}</label>
|
||||
<textarea id="serendipity_commentform_comment" name="serendipity[comment]" rows="10" placeholder="{$CONST.TWOK11_PLACE_MESSAGE}"{if $required_fields.comment} required{/if}>{$commentform_data}</textarea>
|
||||
</div>
|
||||
{serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}
|
||||
<input id="serendipity_submit" name="serendipity[submit]" type="submit" value="{$CONST.TWOK11_SEND_MAIL}"/>
|
||||
|
@ -67,7 +67,7 @@ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
|
||||
textarea { overflow: auto; vertical-align: top; resize: vertical; }
|
||||
|
||||
input:valid, textarea:valid { }
|
||||
input:invalid, textarea:invalid { background-color: #f0dddd; }
|
||||
input:invalid, textarea:invalid { background-color: #eee; }
|
||||
|
||||
table { border-collapse: collapse; border-spacing: 0; }
|
||||
td { vertical-align: top; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user