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
Requires
- php: ^7.0
- symfony/symfony: ~3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.2
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2024-10-18 02:55:00 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:
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 = ""