From bd1a021a405d57c23b484dc164938a19ef3233e5 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Terlizzi Date: Tue, 23 May 2017 16:39:42 +0200 Subject: [PATCH] Added og:image url for OpenGraph data (thanks to anonymous user on DokuWiki --- helper.php | 1 + plugin.info.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/helper.php b/helper.php index fdb7dbb..b4a3ae5 100644 --- a/helper.php +++ b/helper.php @@ -280,6 +280,7 @@ class helper_plugin_semantic extends DokuWiki_Plugin { 'og:description' => str_replace("\n", ' ', $this->getDescription()), 'og:url' => wl($this->page, '', true), 'og:type' => 'website', + 'og:image' => $this->getFirstImageURL(), ); return $open_graph; diff --git a/plugin.info.txt b/plugin.info.txt index b5ea617..0221a57 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base semantic author Giuseppe Di Terlizzi email giuseppe.diterlizzi@gmail.com -date 2016-12-12 +date 2017-05-23 name Semantic Plugin desc Add Semantic Data in DokuWiki url http://www.dokuwiki.org/plugin:semantic