Ignore:
Timestamp:
Jan 26, 2013, 12:48:44 PM (11 years ago)
Author:
mistic100
Message:

simplyfy code, add noscript fallback for twitter

Location:
extensions/SocialButtons/include
Files:
2 edited

Legend:

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

    r20374 r20406  
    1414  // config
    1515  $tpl_vars['PINTEREST'] = $conf['SocialButtons']['pinterest'];
    16   $tpl_vars['PINTEREST']['copyright'] = ' (from <a href="'.$root_url.'">'.$conf['gallery_title'].'</a>)';
    1716  $tpl_vars['PINTEREST']['title'] = $picture['current']['TITLE'];
    1817 
  • extensions/SocialButtons/include/tumblr.inc.php

    r20374 r20406  
    66  global $conf, $template;
    77 
    8   $tumblr_css = array(
    9     'share_1' => 'width:81px; height:20px;',
    10     'share_2' => 'width:61px; height:20px;',
    11     'share_3' => 'width:129px; height:20px;',
    12     'share_4' => 'width:20px; height:20px;',
    13     'share_1T' => 'width:81px; height:20px;',
    14     'share_2T' => 'width:61px; height:20px;',
    15     'share_3T' => 'width:129px; height:20px;',
    16     'share_4T' => 'width:20px; height:20px;',
    17     );
    18  
    19  
    208  // config
    219  $tpl_vars['TUMBLR'] = $conf['SocialButtons']['tumblr'];
    22   $tpl_vars['TUMBLR']['css'] = $tumblr_css[ $conf['SocialButtons']['tumblr']['type'] ];
    23   $tpl_vars['TUMBLR']['copyright'] = ' (from <a href="'.$root_url.'">'.$conf['gallery_title'].'</a>)';
    2410 
    2511  // button on piture page
Note: See TracChangeset for help on using the changeset viewer.