Changeset 24788 for extensions/SocialButtons/include/pinterest.inc.php
- Timestamp:
- Oct 6, 2013, 9:05:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SocialButtons/include/pinterest.inc.php
r24757 r24788 10 10 } 11 11 12 global $conf, $template , $picture;12 global $conf, $template; 13 13 14 14 // config 15 15 $tpl_vars['PINTEREST'] = $conf['SocialButtons']['pinterest']; 16 $tpl_vars['PINTEREST']['title'] = $picture['current']['TITLE'];17 18 if ($conf['SocialButtons']['pinterest']['img_size'] == 'Original')19 {20 $tpl_vars['PINTEREST']['source'] = $picture['current']['src_image']->get_url();21 }22 else23 {24 $tpl_vars['PINTEREST']['source'] = DerivativeImage::url($conf['SocialButtons']['pinterest']['img_size'], $picture['current']['src_image']);25 }26 27 16 28 17 $template->set_filename('pinterest_button', realpath(SOCIALBUTT_PATH .'template/pinterest.tpl'));
Note: See TracChangeset
for help on using the changeset viewer.