fond-of-spryker/google-site-verification
最新稳定版本:1.0.0
Composer 安装命令:
composer require fond-of-spryker/google-site-verification
包简介
README 文档
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
统计信息
- 总下载量: 18.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-11