fond-of-spryker / google-site-verification
Installs: 16 211
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
Requires (Dev)
- codeception/codeception: ^2.5
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.0
- phpro/grumphp: ^0.14
- sebastian/phpcpd: ^4.1
- spryker/code-sniffer: ^0.14.7
This package is auto-updated.
Last update: 2024-10-11 21:11:03 UTC
README
Description
Add the google site verification key as a template variable (google_site_verification_key) to twig.
Installation
composer require fond-of-spryker/google-site-verification
Register GoogleSiteVerificationTwigPlugin to TwigDependencyProvider
protected function getTwigPlugins(): array
{
return [
...
new GoogleSiteVerificationTwigPlugin(),
];
}
Usage
Use it in template
{% if google_site_verification_key != ''%}<meta name="google-site-verification" content="{{ google_site_verification_key }}" />{% endif %}
ToDo
Since it was extracted from the old ShopApplicationServiceProvider addGlobalTemplateVariables. Move it to a widget instead of passing the key as a global variable