opengraph

This commit is contained in:
merdan 2021-05-21 16:54:54 +05:00
parent 7b5ad40a8e
commit 0debdbf12b
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ class Plugin extends PluginBase
"\t\t\t<link>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</link>\n" .
"\t\t\t<guid isPermaLink='true''>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</guid>\n" .
"\t\t\t<pubDate>" . $published->format(DateTime::RFC2822) . "</pubDate>\n" .
"\t\t\t<description><![CDATA[ " . htmlspecialchars($description, ENT_QUOTES, 'UTF-8') . " ]]></description>\n" .
"\t\t\t<description><![CDATA[ <img src='".Settings::get('link')."/storage/app/media/'".$post->featured_image.">"
. htmlspecialchars($description, ENT_QUOTES, 'UTF-8') . " ]]></description>\n" .
"\t\t</item>\n";
}