From dafc15a12947230ccc070fd1edfcb8e66795c160 Mon Sep 17 00:00:00 2001 From: "Tim Everts (Work)" Date: Tue, 20 Mar 2018 15:11:00 +0800 Subject: [PATCH] The 'Site Meta' data can now be retrieved from within a Twig template. --- variables/SeomaticVariable.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/variables/SeomaticVariable.php b/variables/SeomaticVariable.php index 2606148..cfe19dc 100755 --- a/variables/SeomaticVariable.php +++ b/variables/SeomaticVariable.php @@ -512,6 +512,17 @@ public function renderRobotsTemplate() return $result; } /* -- renderRobotsTemplate */ +/* -------------------------------------------------------------------------------- + Get the site meta record +-------------------------------------------------------------------------------- */ + + public function getSiteMeta($locale=null) + { + if (!$locale) + $locale = craft()->language; + return craft()->seomatic->getSiteMeta($locale); + } /* -- getSiteMeta */ + /* -------------------------------------------------------------------------------- Get the identity record -------------------------------------------------------------------------------- */