sy/bootstrap plugin for adding social media link component in your sy/project based application.
From your sy/project based application directory, run this command:
composer install-plugin link
NOTES
The install-plugin command will do all these following steps:
$ composer require sy/bootstrap-link
Use the database installation script: sql/install.sql
Copy the scss file scss/_bootstrap-link.scss
into your project scss directory: protected/scss
Import it in your app.scss
file and rebuild the css file.
Got to the file: protected\src\Component\User\AccountPanel.php
And add this method in the class:
public function linkAction() {
$service = \Project\Service\Container::getInstance();
$user = $service->user->getCurrentUser();
$p = new \Sy\Component\Html\Element('p');
$p->addText($this->_('You can display on your page your web site or social media links'));
$this->setComponent('NORTH', $p);
$this->setComponent('CENTER', new \Sy\Bootstrap\Component\Link\Div('user-' . $user->id, true));
$this->setComponent('SOUTH', new \Sy\Bootstrap\Component\Link\Create('user-' . $user->id));
}