Source of file SeoSiteConfig.php
Size: 1,179 Bytes - Last Modified: 2021-12-24T05:15:49+00:00
/var/www/docs.ssmods.com/process/src/src/SeoSiteConfig.php
1234567891011121314151617181920212223242526272829303132333435363738394041 | <?php namespace Hubertusanton\SilverStripeSeo; use SilverStripe\Forms\FieldList; use SilverStripe\Forms\TextareaField; use SilverStripe\Config\Config; use SilverStripe\ORM\DataExtension; /** * SeoSiteConfig adds site-wide settings for SEO */ class SeoSiteConfig extends DataExtension { private static $db = [ 'GoogleWebmasterMetaTag' => 'Varchar(512)' ]; /** * updateCMSFields. * Update Silverstripe CMS Fields for SEO Module * * @param FieldList */ public function updateCMSFields(FieldList $fields) { if (Config::inst()->get(SeoObjectExtension::class, 'use_webmaster_tag')) { $fields->addFieldToTab( "Root.SEO", TextareaField::create( "GoogleWebmasterMetaTag", _t('SEO.SEOGoogleWebmasterMetaTag', 'Google webmaster meta tag') )->setRightTitle(_t( 'SEO.SEOGoogleWebmasterMetaTagRightTitle', "Full Google webmaster meta tag For example <meta name=\"google-site-verification\" content=\"hjhjhJHG12736JHGdfsdf\" />" )) ); } } } |