Social sharing links.
Download ZIP file and copy it into your system/extensions
folder. Learn more about extensions.
This extension adds sharing links for popular social media sites. Links are shown on blog pages. To show links on other pages use a [minishare]
shortcut. It's recommended to install the meta extension, it allows you to set additional meta data for social media sites.
If you want to customise sharing links with CSS, write a minishare-custom.css
file, put it into your system/extensions
folder, open file system/extensions/yellow-system.ini
and change MinishareStyle: custom
. Another option to customise sharing links with CSS is editing the files in your system/themes
folder. It's recommended to use the latter option.
Content file with sharing links:
---
Title: Example page
---
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna pizza. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui officia deserunt mollit anim id est laborum.
[minishare]
Layout file with sharing links:
<?php $this->yellow->layout("header") ?>
<div class="content">
<div class="main" role="main">
<h1><?php echo $this->yellow->page->getHtml("titleContent") ?></h1>
<?php echo $this->yellow->page->getContentHtml() ?>
<?php echo $this->yellow->page->getExtraHtml("minishare") ?>
</div>
</div>
<?php $this->yellow->layout("footer") ?>
Configuring different sharing services in the settings:
MinishareServices: facebook, twitter, linkedin, email
MinishareServices: mastodon, facebook, twitter, linkedin, email
The following settings can be configured in file system/extensions/yellow-system.ini
:
MinishareServices
= social sharing services, supported sharing services
MinishareTwitterUser
= your Twitter user name, e.g. @dog_feelings
MinishareStyle
= link style, e.g. plain
, squared
, rounded
The following sharing services are supported:
email
= share via email
facebook
= share on Facebook
flipboard
= share on Flipboard
linkedin
= share on LinkedIn
mastodon
= share on Mastodon
pinterest
= share on Pinterest
reddit
= share on Reddit
telegram
= share on Telegram
tumblr
= share on Tumblr
twitter
= share on Twitter
vk
= share on VK
whatsapp
= share on Whatsapp
Giovanni Salmeri. Get help.