source: extensions/SocialButtons/include/pinterest.inc.php @ 30804

Last change on this file since 30804 was 29781, checked in by mistic100, 10 years ago

fix maintain class + facebook url

File size: 464 bytes
Line 
1<?php
2defined('SOCIALBUTT_PATH') or die('Hacking attempt!');
3
4function socialbutt_pinterest($basename, $root_url, &$tpl_vars, &$buttons)
5{
6  // only on picture page
7  if ($basename != 'picture')
8  {
9    return;
10  }
11 
12  global $conf, $template;
13 
14  // config
15  $tpl_vars['PINTEREST'] = $conf['SocialButtons']['pinterest'];
16 
17  $template->set_filename('pinterest_button', realpath(SOCIALBUTT_PATH .'template/pinterest.tpl'));
18  $buttons[] = 'pinterest_button';
19}
Note: See TracBrowser for help on using the repository browser.