aboutsummaryrefslogtreecommitdiff
path: root/app/class/modelrender.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-03-31 15:38:42 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-03-31 15:38:42 +0200
commit2e27596acb55e15495492fee916304d647bb3eab (patch)
treeaa7a06d0323d1c7c0bbeef7c665b61fcdcc9bb5f /app/class/modelrender.php
parent20c44426207b8f58fd8ef1145b509913371b2901 (diff)
downloadwcms-2e27596acb55e15495492fee916304d647bb3eab.tar.gz
wcms-2e27596acb55e15495492fee916304d647bb3eab.zip
domain analyser OG meta rendering
Diffstat (limited to 'app/class/modelrender.php')
-rw-r--r--app/class/modelrender.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/class/modelrender.php b/app/class/modelrender.php
index 046499f..540e7b9 100644
--- a/app/class/modelrender.php
+++ b/app/class/modelrender.php
@@ -198,6 +198,13 @@ class Modelrender extends Modelart
$head .= '<meta name="description" content="' . $this->art->description() . '" />' . PHP_EOL;
$head .= '<meta name="viewport" content="width=device-width" />' . PHP_EOL;
+
+ $head .= '<meta property="og:title" content="' . $this->art->title() . '">' . PHP_EOL;
+ $head .= '<meta property="og:description" content="' . $this->art->description() . '">' . PHP_EOL;
+ $head .= '<meta property="og:image" content="' . Config::domain() . '/' . Config::basepath() . '/' . self::thumbnailpath() . $this->art->id() . '.jpg">' . PHP_EOL;
+ $head .= '<meta property="og:url" content="' . Config::domain() . '">' . PHP_EOL;
+
+
foreach ($this->art->externalcss() as $externalcss) {
$head .= '<link href="' . $externalcss . '" rel="stylesheet" />' . PHP_EOL;
}
@@ -216,12 +223,6 @@ class Modelrender extends Modelart
$head .= '<link href="' . Model::globalpath() . 'fonts.css" rel="stylesheet" />' . PHP_EOL;
$head .= '<link href="' . Model::globalpath() . 'global.css" rel="stylesheet" />' . PHP_EOL;
- // if (!empty($this->art->templatecss())) {
- // $tempaltequickcssart = $this->art->templatecss();
- // $head .= '<link href="' . Model::renderpath() . $tempaltequickcssart . '.quick.css" rel="stylesheet" />' . PHP_EOL;
- // }
- // $head .= '<link href="' . Model::renderpath() . $this->art->id() . '.quick.css" rel="stylesheet" />' . PHP_EOL;
-
if (!empty($this->art->templatecss())) {
$tempaltecssart = $this->art->templatecss();
$head .= '<link href="' . Model::renderpath() . $tempaltecssart . '.css" rel="stylesheet" />' . PHP_EOL;