Updated 2k11 to what I consider to be v1.0. Yay!

This commit is contained in:
Matthias Mees 2011-11-30 22:35:16 +01:00
parent dea13b461e
commit 4cb2714995
4 changed files with 22 additions and 5 deletions

View File

@ -7,6 +7,10 @@
<a id="serendipity_CommentForm"></a> <a id="serendipity_CommentForm"></a>
<form id="serendipity_comment" action="{$commentform_action}#feedback" method="post"> <form id="serendipity_comment" action="{$commentform_action}#feedback" method="post">
<div><input type="hidden" name="serendipity[entry_id]" value="{$commentform_id}"/></div> <div><input type="hidden" name="serendipity[entry_id]" value="{$commentform_id}"/></div>
<div class="form_field">
<label id="reply-to-hint" for="serendipity_replyTo">{$CONST.IN_REPLY_TO}</label>
{$commentform_replyTo}
</div>
<div class="form_field"> <div class="form_field">
<label for="serendipity_commentform_name">{$CONST.NAME}</label> <label for="serendipity_commentform_name">{$CONST.NAME}</label>
<input id="serendipity_commentform_name" name="serendipity[name]" type="text" value="{$commentform_name}" placeholder="{$placename}"/> <input id="serendipity_commentform_name" name="serendipity[name]" type="text" value="{$commentform_name}" placeholder="{$placename}"/>
@ -19,10 +23,6 @@
<label for="serendipity_commentform_url">{$CONST.HOMEPAGE}</label> <label for="serendipity_commentform_url">{$CONST.HOMEPAGE}</label>
<input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}" placeholder="{$placeurl}"/> <input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}" placeholder="{$placeurl}"/>
</div> </div>
<div class="form_field">
<label for="serendipity_replyTo">{$CONST.IN_REPLY_TO}</label>
{$commentform_replyTo}
</div>
<div class="form_tarea"> <div class="form_tarea">
<label for="serendipity_commentform_comment">{$CONST.COMMENT}</label> <label for="serendipity_commentform_comment">{$CONST.COMMENT}</label>
<textarea id="serendipity_commentform_comment" name="serendipity[comment]" rows="10" cols="40" placeholder="{$placemess}">{$commentform_data}</textarea> <textarea id="serendipity_commentform_comment" name="serendipity[comment]" rows="10" cols="40" placeholder="{$placemess}">{$commentform_data}</textarea>

View File

@ -1,4 +1,4 @@
Name: 2k11 Name: 2k11
Author: Matthias Mees, Veit Lehmann Author: Matthias Mees, Veit Lehmann
Date: 2011-11-28 Date: 2011-11-30
Require Serendipity: 1.6 Require Serendipity: 1.6

View File

@ -22,6 +22,15 @@ jQuery(document).ready(function($) {
var deleteMsg = $(this).attr('title'); var deleteMsg = $(this).attr('title');
return confirm(deleteMsg); return confirm(deleteMsg);
}); });
// Move preview comment in the DOM to fix comment preview
$('#c').insertAfter('#feedback');
// Hide reply-to form element
$('.comment_reply').click(function() {
$('#reply-to-comment').remove();
var replyToPlaceholder = '<p id="reply-to-comment">' + $('#reply-to-hint').text() + ' ' + $('#serendipity_replyTo :selected').text() + '</p>';
$('#serendipity_replyTo').after(replyToPlaceholder);
});
$('#reply-to-hint, #serendipity_replyTo').addClass('visuallyhidden');
// Cloned primary navigation for small screen // Cloned primary navigation for small screen
var $select = $('<select/>'); var $select = $('<select/>');
$('#primary-nav li').each(function() { $('#primary-nav li').each(function() {

View File

@ -700,6 +700,14 @@ pre>samp {
.serendipity_freetag_taglist_related { font-size: 1.25em; } .serendipity_freetag_taglist_related { font-size: 1.25em; }
.geshi {
font-family: monospace, monospace;
_font-family: 'courier new', monospace;
font-size: .875em;
}
pre .geshi { font-size: 1em; }
/* Helper classes */ /* Helper classes */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }