azine/socialbar-bundle

用于轻松将社交栏添加到您页面的包

2.0.0 2019-01-22 09:36 UTC

This package is auto-updated.

Last update: 2024-09-18 02:41:45 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