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

Last change on this file since 24799 was 24788, checked in by mistic100, 11 years ago

improve facebook light link and clean code & conf

File size: 467 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}
20
21?>
Note: See TracBrowser for help on using the repository browser.