Browse Source

System update (winter remix)

markseu 8 năm trước cách đây
mục cha
commit
53767190d9

+ 2 - 2
system/plugins/core.php

@@ -115,7 +115,7 @@ class YellowCore
 			$this->pages->requestHandler = "core";
 			$statusCode = $this->processRequest($serverScheme, $serverName, $base, $location, $fileName, true);
 		}
-		if($this->page->isError()) $statusCode = $this->processRequestError();
+		if($this->page->isExisting("pageError")) $statusCode = $this->processRequestError();
 		$this->toolbox->timerStop($time);
 		ob_end_flush();
 		if(defined("DEBUG") && DEBUG>=1)
@@ -970,7 +970,7 @@ class YellowPage
 	// Check if page with error
 	function isError()
 	{
-		return $this->isExisting("pageError");
+		return $this->statusCode>=400;
 	}
 	
 	// Check if response header exists

+ 3 - 3
system/plugins/language-de.txt

@@ -25,10 +25,10 @@ DateFormatShort: F Y
 DateFormatMedium: d.m.Y
 DateFormatLong: d.m.Y H:i
 DateFormatTime: H:i
+PagePrevious: ← Zurück: @title
+PageNext: Weiter: @title →
 PaginationPrevious: ← Zurück
-PaginationNext: Vor →
-PagePrevious: ← @title
-PageNext: @title →
+PaginationNext: Weiter →
 SearchQuery: Suche:
 SearchResultsNone: Bitte einen Suchbegriff eingeben.
 SearchResultsEmpty: Keine Treffer für diese Suchanfrage.

+ 2 - 2
system/plugins/language-en.txt

@@ -25,10 +25,10 @@ DateFormatShort: F Y
 DateFormatMedium: Y-m-d
 DateFormatLong: Y-m-d H:i
 DateFormatTime: H:i
+PagePrevious: ← Previous: @title
+PageNext: Next: @title →
 PaginationPrevious: ← Previous
 PaginationNext: Next →
-PagePrevious: ← @title
-PageNext: @title →
 SearchQuery: Search:
 SearchResultsNone: Enter a search term.
 SearchResultsEmpty: No results found.

+ 2 - 2
system/plugins/language-fr.txt

@@ -25,10 +25,10 @@ DateFormatShort: F Y
 DateFormatMedium: d/m/Y
 DateFormatLong: d/m/Y H:i
 DateFormatTime: H:i
+PagePrevious: ← Précédent: @title
+PageNext: Suivant: @title →
 PaginationPrevious: ← Précédent
 PaginationNext: Suivant →
-PagePrevious: ← @title
-PageNext: @title →
 SearchQuery: Rechercher:
 SearchResultsNone: Entrez un mot dans le champ de recherche.
 SearchResultsEmpty: Pas de résultats.

BIN
system/plugins/yellow-blog.zip.download


+ 2 - 1
system/themes/flatsite.css

@@ -1,5 +1,5 @@
 /* Theme: Flatsite theme */
-/* Version: 0.6.10 */
+/* Version: 0.6.11 */
 /* Designer: Mark Mayberg */
 
 @import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);
@@ -39,6 +39,7 @@ a:hover { color:#07d; text-decoration:underline; }
 .content .stretchable li { margin:0; padding:1em 0; display:inline-block; text-align:center; vertical-align:top; }
 .content .stretchable a { color:#717171; text-decoration:none; }
 .content .toc { margin:0; padding:0; list-style:none; }
+.content .links { margin:1em 0; }
 .content .pagination { margin:1em 0; }
 .content .left { float:left; margin:0 1em 0 0; }
 .content .center { display:block; margin:0 auto; }