Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xruff/socialtags
https://github.com/xruff/socialtags
nette nette-component
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/xruff/socialtags
- Owner: XRuff
- License: mit
- Created: 2017-06-30T12:08:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T22:36:12.000Z (about 4 years ago)
- Last Synced: 2024-11-13T14:14:39.943Z (about 2 months ago)
- Topics: nette, nette-component
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Social Tags component for Nette Framework application
======Requirements
------------Package requires PHP 5.6 or higher
- [nette/application](https://github.com/nette/application)
Installation
------------The best way to install XRuff/SocialTags is using [Composer](http://getcomposer.org/):
```sh
$ composer require xruff/socialtags
```Documentation
------------Configuration in config.neon.
```yml
extensions:
socialTags: XRuff\Components\SocialTags\DI\SocialTagsExtensionsocialTags:
twitter:
card: summary_large_image
creator: 'twitternick'
title: Title
description: Description ...
image: http://...
facebook:
appId:
admins:
url: http://www.example.com
siteName: Title
title: Title
type: website
description: Description ...
image: http://...
locale: cs_cz
```Base presenter:
```php
use XRuff\Components\SocialTags\SocialTagsControl;abstract class BasePresenter extends Nette\Application\UI\Presenter
{
/** @var SocialTagsControl $socialTagsControlFactory @inject */
public $socialTagsControlFactory;protected function createComponentSocialTags()
{
return $this->socialTagsControlFactory->create();
}
}
```@layout.latte:
```smarty
{control socialTags:twitter}
{control socialTags:facebook}...
```-----
Repository [https://github.com/XRuff/SocialTags](https://github.com/XRuff/SocialTags).