Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

The 'Site Meta' data can now be retrieved from within a Twig template. #327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions variables/SeomaticVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------------------------------------------------------------------------- */
Expand Down