eab / share-buttons-bundle
为 EzSystemsShareButtonsBundle 添加 Pinterest 按钮到 eZ Publish/eZ Platform
0.1.1
2017-01-03 14:00 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-14 19:25:36 UTC
README
##摘要
一个扩展 EzSystemsShareButtonsBundle 的 eZ Publish 5 包。
目前,它仅添加了一个按钮提供商,用于 Pinterest。此包仅提供“任意图片”按钮类型(请参阅Pinterest 小部件构建器)。
##版权
版权所有 (C) 2016 Andy Caiger, Enterprise AB Ltd
##许可证
根据GNU 通用公共许可证 2.0许可
##安装
您可以使用 composer 安装此包及其依赖项
composer require --update-no-dev --prefer-dist eab/sharebuttonsbundle
然后编辑 registerBundles()
在 ezpublish/EzPublishKernel.php
中,并添加以下内容
new EzSystems\ShareButtonsBundle\EzSystemsShareButtonsBundle(),
new Eab\ShareButtonsBundle\EabShareButtonsBundle(),
最后,清除缓存并导出资源
php ezpublish/console cache:clear --env=prod
php ezpublish/console assetic:dump --env=prod
##自定义
不支持自定义图片,但您可以调整按钮的颜色、大小、形状和语言。为此,通过在您的包的 default_settings.yml
中放置值来覆盖默认设置。例如
# Colour of Pinterest share button
ez_share_buttons.default.pinterest.color: red