Skip to content
Permalink
Browse files

Fixed error in blog post code and updated some formatting

  • Loading branch information
pdweinstein committed May 3, 2020
1 parent 1a8ca2a commit 26b2b9b7c98b87ebce5d588e8cd714638b370432
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/pre.php
  2. +1 −1 lib/view/server/php/class.template.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
@@ -191,8 +191,8 @@ public function outputInstagram( $feed ) {

public function outputblog( $feed ) {

$this->outputHTML( "<p><a href=\"" .$feed->link['href']. "\">" .(string) $feed->title. "</a></p>");
$this->outputHTML( "<p>" .( string) $feed->summary. "</p>" );
$this->outputHTML( "<p align=\"right\">Read: <a href=\"" .$feed->link['href']. "\">" .(string) $feed->title. "</a></p>");

}

0 comments on commit 26b2b9b

Please sign in to comment.
You can’t perform that action at this time.