innerspirit / socialbar-bundle
捆绑包,方便您将社交栏添加到页面,已更新以兼容 Symfony 3
2.0.0
2017-09-27 20:06 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ~5.0
- symfony/framework-bundle: >=2.7
- symfony/symfony: >=2.7
- twig/extensions: ~1.0
This package is not auto-updated.
Last update: 2024-09-18 21:55:43 UTC
README
Symfony2 Bundle,方便在 twig 模板中创建社交栏。
特别感谢 Gregquat,他在这里发布了一个很好的入门教程
由于大部分代码都是从该页面复制的,因此大部分关于如何在 twig-模板中使用它的文档也适用。
配置选项
要渲染指向您账号的社交按钮,您可以在配置中设置一些选项,如下所示
//config.yml
azine_social_bar:
# the url to you Facebook profile: will be used for the 'url' parameter when showing the 'follow' button
fb_profile_url: #default = ""
# the url to your Google+ profile: will be used for the 'url' parameter when showing the 'follow' button
google_plus_profile_url: #defaults = ""
# the url to your xing profile: will be used for the 'url' parameter when showing the 'follow' button
xing_profile_url: #default = ""
# your profile-id (=> get it here http://developer.linkedin.com/plugins) : will be used for the 'companyId' parameter when showing the 'follow' button
linked_in_company_id: #default = ""
# your twitter username: will be used for the 'action' parameter when showing the 'follow' button and also for the 'tag' and 'via' parameters of all twitter buttons
twitter_username: #default = ""