azine/socialbar-bundle

Bundle to easily add a social-bar to your pages

Installs: 4 542

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 2

Open Issues: 0

Type:symfony-bundle

2.0.0 2019-01-22 09:36 UTC

This package is auto-updated.

Last update: 2024-04-18 01:48:50 UTC


README

Symfony2 Bundle to easily create a social bar in your twig templates.

Special thanx to Gregquat who posted a good how to get stared here:

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

As a lot of code is copied from that page, most of the documentation on how to use it in your twig-templates applies as well.

Configuration Options

To render social buttons with references to your account(s) you can configure some options in the config as follows:

//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 = ""

Build-Status ec.

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