Do some changes to the comments-area
This commit is contained in:
parent
75e59caff9
commit
8446371818
32
blogthon.cgi
32
blogthon.cgi
@ -384,15 +384,17 @@ else:
|
||||
print ' </div>'
|
||||
print ''
|
||||
print ' <div class="comments">'
|
||||
print ' <div class="comment">'
|
||||
for line in comments_content:
|
||||
if line.split(".", 1)[0] == "-":
|
||||
print ' <div class="comments_author">' + line.split(".", 1)[1].strip() + '</div>'
|
||||
print ' <div class="comment_author">' + line.split(".", 1)[1].strip() + '</div>'
|
||||
elif line.split(".", 1)[0] == "+":
|
||||
print ' <div class="comments_date">' + line.split(".", 1)[1].strip() + '</div>'
|
||||
print ' <div class="comment_date">' + line.split(".", 1)[1].strip() + '</div>'
|
||||
else:
|
||||
line = line.split(".", 1)[1]
|
||||
print ' <div class="comments_content">'
|
||||
print ' ' + line.strip() + '<br />'
|
||||
print ' <div class="comment_content">'
|
||||
print ' ' + line.strip() + '<br />'
|
||||
print ' </div>'
|
||||
print ' </div>'
|
||||
print ''
|
||||
comments_content.close()
|
||||
@ -404,14 +406,16 @@ else:
|
||||
random_int_a = random.randint(1,9)
|
||||
random_int_b = random.randint(1,9)
|
||||
cquizv = random_int_a + random_int_b
|
||||
print ' <form action="" method="post">'
|
||||
print ' <input type="hidden" name="ctitle" value="' + title + '" />'
|
||||
print ' <input type="hidden" name="cquizv" value="' + str(cquizv) + '" />'
|
||||
print ' <label for="cname">name:</label><input type="text" id="cname" name="cname" />'
|
||||
print ' <br /><label for="ctext">text:</label><textarea rows="5" cols="80" id="ctext" name="ctext"></textarea>'
|
||||
print ' <br /><label for="cquiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input type="text" id="cquiz" name="cquiz" />'
|
||||
print ' <br /><input type="submit" id="submit" value="post comment" />'
|
||||
print ' </form>'
|
||||
print ' <div class="submit_comment">'
|
||||
print ' <form action="" method="post">'
|
||||
print ' <input type="hidden" name="ctitle" value="' + title + '" />'
|
||||
print ' <input type="hidden" name="cquizv" value="' + str(cquizv) + '" />'
|
||||
print ' <label class="submit_comment_name_lable" for="cname">name:</label><input type="text" id="cname" name="cname" />'
|
||||
print ' <br /><label class="submit_comment_text_lable" for="ctext">text:</label><textarea rows="5" cols="80" id="ctext" name="ctext"></textarea>'
|
||||
print ' <br /><label fclass="submit_comment_quiz_lable"or="cquiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input type="text" id="cquiz" name="cquiz" />'
|
||||
print ' <br /><input class="submit_comment_button" type="submit" id="submit" value="post comment" />'
|
||||
print ' </form>'
|
||||
print ' </div>'
|
||||
print ''
|
||||
|
||||
if comments == "True":
|
||||
@ -427,8 +431,8 @@ else:
|
||||
comments_counter = 0
|
||||
for line in comments_content:
|
||||
if line.split(".", 1)[0] == "-": comments_counter += 1
|
||||
print ' <div class="entry_comments">'
|
||||
print ' <a href="?p=' + title + '" class="entry_comments">comments (' + str(comments_counter) + ')</a>'
|
||||
print ' <div class="entry_comment">'
|
||||
print ' <a href="?p=' + title + '" class="entry_comment">comments (' + str(comments_counter) + ')</a>'
|
||||
print ' </div>'
|
||||
print ' </div>'
|
||||
print ''
|
||||
|
@ -3,8 +3,8 @@
|
||||
*/
|
||||
|
||||
body {
|
||||
font-family: Verdana, Times New Roman, Courier New;
|
||||
font-size: 12px;
|
||||
font-family: Verdana;
|
||||
font-size: 13px;
|
||||
margin: 0px;
|
||||
min-width: 800px;
|
||||
}
|
||||
@ -22,6 +22,7 @@ blockquote {
|
||||
margin-bottom: 10px;
|
||||
font-style: italic;
|
||||
color: #AAAAAA;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user