From a38cb989fa843def08fd6d18bc301e62941aa63c Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Sun, 17 May 2009 23:19:07 +0200 Subject: [PATCH] Rewrite session Part 1 --- blogthon.cgi | 88 ++++--- styles/blogthon.css | 270 ++++++++++++++-------- styles/blogthon_img/header_background.jpg | Bin 0 -> 19014 bytes styles/blogthon_img/title_background.png | Bin 327 -> 0 bytes 4 files changed, 237 insertions(+), 121 deletions(-) create mode 100644 styles/blogthon_img/header_background.jpg delete mode 100644 styles/blogthon_img/title_background.png diff --git a/blogthon.cgi b/blogthon.cgi index bc246ab..4cdfe55 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -6,7 +6,8 @@ # To Public License, Version 2, as published by Sam Hocevar. See # http://sam.zoy.org/wtfpl/COPYING for more details. -# Author: Stefan Ritter +# Authors: Stefan Ritter +# Adrian Vondendriesch # Description: A simple blogging software import cgi, os, time, glob, re, md5, sys, random @@ -190,6 +191,7 @@ if feed_display == "atom": # Generate regular page else: document_header("xhtml-transitional") + # XHTML Header print ' ' print ' ' + blog_title + '' print ' ' @@ -198,65 +200,93 @@ else: print ' ' print ' ' print ' ' - print ' ' - print '
' - print ' rss' - print ' atom' + print '' + # Site header + print '
' + print '
' + print ' ' + blog_title + '' + print '
' print '
' + print '' + # RSS feed + print '
' + if os.path.exists('styles/' + style.replace('.css', '') + '_img/rss.jpg'): + print ' ' + else: + print ' rss' + print '
' + print '' + # Atom feed + print '
' + if os.path.exists('styles/' + style.replace('.css', '') + '_img/atom.jpg'): + print ' atom' + print '
' + print '' - print '