Craft\Seomatic_SettingsRecord::getDefaultHumans PHP Method

getDefaultHumans() public method

* -------------------------------------------------------------------------------- Get the default Humans.txt template --------------------------------------------------------------------------------
public getDefaultHumans ( )
    public function getDefaultHumans()
    {
        $oldPath = method_exists(craft()->templates, 'getTemplatesPath') ? craft()->templates->getTemplatesPath() : craft()->path->getTemplatesPath();
        $newPath = craft()->path->getPluginsPath() . 'seomatic/templates';
        method_exists(craft()->templates, 'setTemplatesPath') ? craft()->templates->setTemplatesPath($newPath) : craft()->path->setTemplatesPath($newPath);
        /* -- Return the Humans.txt default template */
        $templateName = '_humansDefault';
        $loader = new TemplateLoader();
        $template = $loader->getSource($templateName);
        method_exists(craft()->templates, 'setTemplatesPath') ? craft()->templates->setTemplatesPath($oldPath) : craft()->path->setTemplatesPath($oldPath);
        return $template;
    }