Updated installation files
This commit is contained in:
parent
044de36532
commit
f4343bc878
4 changed files with 6 additions and 4 deletions
Binary file not shown.
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue