commit f4343bc87852f04e3fa50411410dc40d63d4d0e2
parent 044de36532e2c8990c116ec7cf166eff812cdcbc
Author: markseu <mark2011@mayberg.se>
Date: Tue, 7 May 2019 14:35:57 +0200
Updated installation files
Diffstat:
4 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/system/extensions/install-languages.zip b/system/extensions/install-languages.zip
Binary files differ.
diff --git a/system/extensions/meta.php b/system/extensions/meta.php
@@ -4,7 +4,7 @@
// This file may be used and distributed under the terms of the public license.
class YellowMeta {
- const VERSION = "0.8.7";
+ const VERSION = "0.8.8";
const TYPE = "feature";
public $yellow; //access to API
@@ -39,7 +39,9 @@ class YellowMeta {
$output = null;
if ($name=="header" && !$page->isError()) {
list($imageUrl, $imageAlt) = $this->getImageInformation($page);
+ $locale = $this->yellow->text->getText("languageLocale", $page->get("language"));
$output .= "<meta property=\"og:url\" content=\"".htmlspecialchars($page->getUrl().$this->yellow->toolbox->getLocationArgs())."\" />\n";
+ $output .= "<meta property=\"og:locale\" content=\"".htmlspecialchars($locale)."\" />\n";
$output .= "<meta property=\"og:type\" content=\"website\" />\n";
$output .= "<meta property=\"og:title\" content=\"".$page->getHtml("title")."\" />\n";
$output .= "<meta property=\"og:site_name\" content=\"".$page->getHtml("sitename")."\" />\n";
@@ -54,7 +56,7 @@ class YellowMeta {
public function onParsePageOutput($page, $text) {
$output = null;
if ($text && preg_match("/^(.*)<html(.*?)>(.*)$/s", $text, $matches)) {
- $output = $matches[1]."<html prefix=\"og: http://ogp.me/ns#\"".$matches[2].">".$matches[3];
+ $output = $matches[1]."<html".$matches[2]." prefix=\"og: http://ogp.me/ns#\">".$matches[3];
}
return $output;
}
diff --git a/system/layouts/header.html b/system/layouts/header.html
@@ -1,4 +1,5 @@
-<!DOCTYPE html><html lang="<?php echo $this->yellow->page->getHtml("language") ?>">
+<!DOCTYPE html>
+<html lang="<?php echo $this->yellow->page->getHtml("language") ?>">
<head>
<title><?php echo $this->yellow->page->getHtml("titleHeader") ?></title>
<meta charset="utf-8" />
diff --git a/system/settings/system.ini b/system/settings/system.ini
@@ -45,7 +45,6 @@ SafeMode: 0
MultiLanguageMode: 0
ServerUrl:
UpdateExtensionUrl: https://github.com/datenstrom/yellow-extensions
-UpdateInformationFile: update.ini
UpdateExtensionFile: extension.ini
UpdateVersionFile: version.ini
UpdateWaffleFile: waffle.ini