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 ' </div>'
|
||||||
print ''
|
print ''
|
||||||
print ' <div class="comments">'
|
print ' <div class="comments">'
|
||||||
|
print ' <div class="comment">'
|
||||||
for line in comments_content:
|
for line in comments_content:
|
||||||
if line.split(".", 1)[0] == "-":
|
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] == "+":
|
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:
|
else:
|
||||||
line = line.split(".", 1)[1]
|
line = line.split(".", 1)[1]
|
||||||
print ' <div class="comments_content">'
|
print ' <div class="comment_content">'
|
||||||
print ' ' + line.strip() + '<br />'
|
print ' ' + line.strip() + '<br />'
|
||||||
|
print ' </div>'
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
print ''
|
print ''
|
||||||
comments_content.close()
|
comments_content.close()
|
||||||
@ -404,14 +406,16 @@ else:
|
|||||||
random_int_a = random.randint(1,9)
|
random_int_a = random.randint(1,9)
|
||||||
random_int_b = random.randint(1,9)
|
random_int_b = random.randint(1,9)
|
||||||
cquizv = random_int_a + random_int_b
|
cquizv = random_int_a + random_int_b
|
||||||
print ' <form action="" method="post">'
|
print ' <div class="submit_comment">'
|
||||||
print ' <input type="hidden" name="ctitle" value="' + title + '" />'
|
print ' <form action="" method="post">'
|
||||||
print ' <input type="hidden" name="cquizv" value="' + str(cquizv) + '" />'
|
print ' <input type="hidden" name="ctitle" value="' + title + '" />'
|
||||||
print ' <label for="cname">name:</label><input type="text" id="cname" name="cname" />'
|
print ' <input type="hidden" name="cquizv" value="' + str(cquizv) + '" />'
|
||||||
print ' <br /><label for="ctext">text:</label><textarea rows="5" cols="80" id="ctext" name="ctext"></textarea>'
|
print ' <label class="submit_comment_name_lable" for="cname">name:</label><input type="text" id="cname" name="cname" />'
|
||||||
print ' <br /><label for="cquiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input type="text" id="cquiz" name="cquiz" />'
|
print ' <br /><label class="submit_comment_text_lable" for="ctext">text:</label><textarea rows="5" cols="80" id="ctext" name="ctext"></textarea>'
|
||||||
print ' <br /><input type="submit" id="submit" value="post comment" />'
|
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 ' </form>'
|
print ' <br /><input class="submit_comment_button" type="submit" id="submit" value="post comment" />'
|
||||||
|
print ' </form>'
|
||||||
|
print ' </div>'
|
||||||
print ''
|
print ''
|
||||||
|
|
||||||
if comments == "True":
|
if comments == "True":
|
||||||
@ -427,8 +431,8 @@ else:
|
|||||||
comments_counter = 0
|
comments_counter = 0
|
||||||
for line in comments_content:
|
for line in comments_content:
|
||||||
if line.split(".", 1)[0] == "-": comments_counter += 1
|
if line.split(".", 1)[0] == "-": comments_counter += 1
|
||||||
print ' <div class="entry_comments">'
|
print ' <div class="entry_comment">'
|
||||||
print ' <a href="?p=' + title + '" class="entry_comments">comments (' + str(comments_counter) + ')</a>'
|
print ' <a href="?p=' + title + '" class="entry_comment">comments (' + str(comments_counter) + ')</a>'
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
print ''
|
print ''
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Verdana, Times New Roman, Courier New;
|
font-family: Verdana;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
min-width: 800px;
|
min-width: 800px;
|
||||||
}
|
}
|
||||||
@ -22,6 +22,7 @@ blockquote {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: #AAAAAA;
|
color: #AAAAAA;
|
||||||
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user