定制 fond-of-spryker/google-site-verification 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fond-of-spryker/google-site-verification

最新稳定版本:1.0.0

Composer 安装命令:

composer require fond-of-spryker/google-site-verification

包简介

README 文档

README

Build Status PHP from Travis config license

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-11