Added 'entry' container around each entry

This commit is contained in:
Stefan Ritter 2009-05-18 21:24:58 +02:00
parent 03a1d02ee3
commit 9cbc71157e

View File

@ -1,3 +1,4 @@
w
#!/usr/bin/python #!/usr/bin/python
# This program is free software. It comes without any warranty, to # This program is free software. It comes without any warranty, to
@ -290,6 +291,7 @@ else:
# Staticpage # Staticpage
if static_display != "": if static_display != "":
content = open(staticpages_dir + static_display, "r") content = open(staticpages_dir + static_display, "r")
print ' <div class="entry">'
print ' <div class="entry_title">' + re.sub('\d+?-', '', static_display) + '</div>' print ' <div class="entry_title">' + re.sub('\d+?-', '', static_display) + '</div>'
print ' <div class="entry_content">' print ' <div class="entry_content">'
print ' <p>' print ' <p>'
@ -298,7 +300,6 @@ else:
print ' </p>' print ' </p>'
print ' </div>' print ' </div>'
print ' <div class="entry_footer"></div>' print ' <div class="entry_footer"></div>'
print ' <div class="entry_comments"></div>'
print ' <div class="entry_border_left"></div>' print ' <div class="entry_border_left"></div>'
print ' <div class="entry_border_right"></div>' print ' <div class="entry_border_right"></div>'
print ' <div class="entry_border_top"></div>' print ' <div class="entry_border_top"></div>'
@ -318,6 +319,7 @@ else:
if post_display == title or not post_display: if post_display == title or not post_display:
if allentries_display == "1" or entry_counter < entries_per_page: if allentries_display == "1" or entry_counter < entries_per_page:
content = open(entry, "r") content = open(entry, "r")
print ' <div class="entry">'
if permalinks: if permalinks:
print ' <div class="entry_title"><a href="?p=' + title + '" class="entry_title">' + title + '</a></div>' print ' <div class="entry_title"><a href="?p=' + title + '" class="entry_title">' + title + '</a></div>'
else: else:
@ -327,7 +329,6 @@ else:
print ' ' + line.strip() + '<br />' print ' ' + line.strip() + '<br />'
print ' </div>' print ' </div>'
print ' <div class="entry_footer"></div>' print ' <div class="entry_footer"></div>'
print ' <div class="entry_comments"></div>'
print ' <div class="entry_border_left"></div>' print ' <div class="entry_border_left"></div>'
print ' <div class="entry_border_right"></div>' print ' <div class="entry_border_right"></div>'
print ' <div class="entry_border_top"></div>' print ' <div class="entry_border_top"></div>'
@ -377,6 +378,7 @@ else:
print ' <div class="entry_comments">' print ' <div class="entry_comments">'
print ' <a href="?p=' + title + '" class="entry_comments">no comments</a>' print ' <a href="?p=' + title + '" class="entry_comments">no comments</a>'
print ' </div>' print ' </div>'
print ' </div>'
print '' print ''
elif comments_file and not post_display: elif comments_file and not post_display:
comments_content = open(comments_file[0], "r") comments_content = open(comments_file[0], "r")
@ -386,6 +388,7 @@ else:
print ' <div class="entry_comments">' print ' <div class="entry_comments">'
print ' <a href="?p=' + title + '" class="entry_comments">comments (' + str(comments_counter) + ')</a>' print ' <a href="?p=' + title + '" class="entry_comments">comments (' + str(comments_counter) + ')</a>'
print ' </div>' print ' </div>'
print ' </div>'
print '' print ''
comments_content.close() comments_content.close()