Files
Piwigo-Social-Buttons/include/pinterest.inc.php
mistic100 ed7aaf8b8f fix maintain class + facebook url
git-svn-id: http://piwigo.org/svn/extensions/SocialButtons@29781 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-25 16:52:23 +00:00

20 lines
464 B
PHP

<?php
defined('SOCIALBUTT_PATH') or die('Hacking attempt!');
function socialbutt_pinterest($basename, $root_url, &$tpl_vars, &$buttons)
{
// only on picture page
if ($basename != 'picture')
{
return;
}
global $conf, $template;
// config
$tpl_vars['PINTEREST'] = $conf['SocialButtons']['pinterest'];
$template->set_filename('pinterest_button', realpath(SOCIALBUTT_PATH .'template/pinterest.tpl'));
$buttons[] = 'pinterest_button';
}