	
	<!-- beginning of Webshare-API -->
	<link href="{$smarty.const.BLOG_BASEURL}fp-plugins/webshare/res/share.css" rel="stylesheet" type="text/css">
	<script src="{$smarty.const.BLOG_BASEURL}fp-plugins/webshare/res/share.js"></script>
		<script>{literal}
			/**
			 * Initializes the Webshare-API v1.1.0.
			 */
			function shareTheLink() {
				navigator.share({
					title: '{/literal}{$flatpress.title}, {$flatpress.subtitle}{literal}',
					text: '{/literal}{$lang.plugin.webshare.text}{literal}',
					url: location.href,
				// extra, optional options
					fbId: '{/literal}{$lang.plugin.webshare.fbid}{literal}', // Facebook App Id to enable sharing with Messenger (See instructions in the plugin directory)
					hashtags: ['{/literal}{$flatpress.title}', '{$flatpress.subtitle}', '{$flatpress.author}{literal}'] // Pass hashtags to use when sharing to Twitter or Facebook
				},{
				// change this configurations to hide specific unnecessary functions
				// Since your mobile device likely has native support for the Share API, it will be ignored and only applied to desktops.
					copy: true,
					email: true,
					print: true,
					sms: true,
					messenger: true,
					facebook: true,
					whatsapp: true,
					twitter: true,
					linkedin: true,
					telegram: true,
					skype: true,  // Turns off Skype SDK and 3rd party libraries
					pinterest: true,
					line: true,
					language: '{/literal}{$fp_config.locale.lang}{literal}' // specify the default language by fp
				})
				.then( _ => console.log('{/literal}{$lang.plugin.webshare.shareok}{literal} :)'))
				.catch( error => console.log('{/literal}{$lang.plugin.webshare.shareerror}{literal} :\'(\n', error));
			}{/literal}
		</script>
	<!-- end of Webshare-API -->
