From 26b2b9b7c98b87ebce5d588e8cd714638b370432 Mon Sep 17 00:00:00 2001 From: Paul Weinstein Date: Sun, 3 May 2020 11:44:02 -0700 Subject: [PATCH] Fixed error in blog post code and updated some formatting --- lib/pre.php | 2 +- lib/view/server/php/class.template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pre.php b/lib/pre.php index a1f1161..33910e3 100644 --- a/lib/pre.php +++ b/lib/pre.php @@ -85,7 +85,7 @@ // Last Blog Post $blog = simplexml_load_file( $rss ); $bPost = $blog->entry; - $posts['blog'] = $bPost->published; + $posts['blog'] = strtotime( ( string ) $bPost->published ); $feed['blog'] = $bPost; // Sort Array of Unix Timestamps diff --git a/lib/view/server/php/class.template.php b/lib/view/server/php/class.template.php index ef584d2..b00f6d1 100644 --- a/lib/view/server/php/class.template.php +++ b/lib/view/server/php/class.template.php @@ -191,8 +191,8 @@ public function outputInstagram( $feed ) { public function outputblog( $feed ) { - $this->outputHTML( "

link['href']. "\">" .(string) $feed->title. "

"); $this->outputHTML( "

" .( string) $feed->summary. "

" ); + $this->outputHTML( "

Read: link['href']. "\">" .(string) $feed->title. "

"); }