innerspirit/socialbar-bundle

捆绑包,方便您将社交栏添加到页面,已更新以兼容 Symfony 3

安装: 197

依赖者: 0

建议者: 0

安全性: 0

星标: 1

关注者: 2

分支: 2

类型:symfony-bundle

2.0.0 2017-09-27 20:06 UTC

This package is not auto-updated.

Last update: 2024-09-18 21:55:43 UTC


README

Symfony2 Bundle,方便在 twig 模板中创建社交栏。

特别感谢 Gregquat,他在这里发布了一个很好的入门教程

http://obtao.com/blog/2012/11/create-a-social-buttons-bar-for-facebook-twitter-and-google-with-symfony2/

由于大部分代码都是从该页面复制的,因此大部分关于如何在 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 = ""

构建状态 ec.

Build Status Total Downloads Latest Stable Version Scrutinizer Quality Score Code Coverage Dependency Status