Ignore:
Timestamp:
Jan 25, 2013, 4:51:02 PM (11 years ago)
Author:
mistic100
Message:

add pinterest, option to hide counter on facebook button

File:
1 edited

Legend:

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

    r20358 r20374  
    3131        'layout' => 'button_count',
    3232        ),
     33      'pinterest' => array(
     34        'enabled' => true,
     35        'layout' => 'horizontal',
     36        'img_size' => 'Original',
     37        ),
    3338      );
    3439   
     
    5358    }
    5459   
    55    
    5660    $conf['SocialButtons'] = serialize($default_config);
    5761    conf_update_param('SocialButtons', $conf['SocialButtons']);
     62  }
     63  else
     64  {
     65    $new_conf = unserialize($conf['SocialButtons']);
     66    if (empty($new_conf['pinterest']))
     67    {
     68      $new_conf['pinterest'] = array(
     69        'enabled' => true,
     70        'layout' => 'horizontal',
     71        'img_size' => 'Original',
     72        );
     73      $conf['SocialButtons'] = serialize($new_conf);
     74      conf_update_param('SocialButtons', $conf['SocialButtons']);
     75    }
    5876  }
    5977}
Note: See TracChangeset for help on using the changeset viewer.