From 6d03e10297392a4b8092a7b27258b2b9abc96a16 Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Sat, 7 Jun 2014 10:05:49 +0000 Subject: General refactor to make title and summarise for RSS and tidying --- archives.php | 8 ++------ dopost.php | 1 + functions.php | 14 ++++++++++++++ index.php | 9 +++------ post.php | 10 +++------- styles.css | 16 +++++++++++++++- title.php | 11 +++++++++++ viewpost.php | 29 ++++++++++++++++++++--------- widget.php | 1 + 9 files changed, 70 insertions(+), 29 deletions(-) create mode 100644 functions.php create mode 100644 title.php diff --git a/archives.php b/archives.php index 4a41f18..fbb76c7 100644 --- a/archives.php +++ b/archives.php @@ -1,5 +1,6 @@ @@ -11,12 +12,7 @@ -
-

-Home -Archives -Post -
+ /', " ", $post); + return substr($post, 0, 196) . "..."; +} + +function title() { + require("title.php"); +} + +?> diff --git a/index.php b/index.php index 1eac730..a04cb39 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,6 @@ @@ -7,16 +8,12 @@ <?php echo $blogTitle; ?> + -
-

-Home -Archives -Post -
+ @@ -11,12 +12,7 @@ -
-

-Home -Archives -Post -
+
diff --git a/styles.css b/styles.css index 3fa9294..194c7d0 100644 --- a/styles.css +++ b/styles.css @@ -32,6 +32,7 @@ a.toplink { font-family: monospace; float: bottom; color: #000000; + padding: 0px 7px; } a.toplink:hover { @@ -62,14 +63,27 @@ div { padding: 5px; } +div>div { + width: 730px; + border: none; +} + #title { position: relative; background-color: #E0E0E0; text-align: center; width: 750px; margin: 10px 0px 5px; - font-size: 32px; padding: 25px; border: 0px; border-radius: 10px; } + +#title>h1 { + font-size: 60px; +} + +#title>h2 { + font-size: 20px; + font-family: monospace; +} diff --git a/title.php b/title.php new file mode 100644 index 0000000..edee86b --- /dev/null +++ b/title.php @@ -0,0 +1,11 @@ + +
+

+

+Home +Archives +Feed +Post +
diff --git a/viewpost.php b/viewpost.php index 2b73cc9..031dd0b 100644 --- a/viewpost.php +++ b/viewpost.php @@ -4,6 +4,7 @@ exit(0); } require("settings.php"); + require("functions.php"); $getpost = preg_replace('/\+/', ' ', $_GET['post']); $post = file_get_contents("{$blogPosts}$getpost"); $post = preg_replace('/\n/', "
\n", $post); @@ -19,24 +20,19 @@ "> - "> + - + \n"; + echo "
\n"; echo "$getpost [Permalink] "; ?> - + \n\n\n"; ?> +
+ + +
+ diff --git a/widget.php b/widget.php index 89ec7c4..962cb3b 100644 --- a/widget.php +++ b/widget.php @@ -1,5 +1,6 @@ -- cgit v1.2.3