Ignore:
Timestamp:
Oct 6, 2013, 9:05:18 PM (11 years ago)
Author:
mistic100
Message:

improve facebook light link and clean code & conf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SocialButtons/include/pinterest.inc.php

    r24757 r24788  
    1010  }
    1111 
    12   global $conf, $template, $picture;
     12  global $conf, $template;
    1313 
    1414  // config
    1515  $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   else
    23   {
    24     $tpl_vars['PINTEREST']['source'] = DerivativeImage::url($conf['SocialButtons']['pinterest']['img_size'], $picture['current']['src_image']);
    25   }
    26  
    2716 
    2817  $template->set_filename('pinterest_button', realpath(SOCIALBUTT_PATH .'template/pinterest.tpl'));
Note: See TracChangeset for help on using the changeset viewer.