Ignore:
Timestamp:
May 19, 2012, 1:12:51 PM (8 years ago)
Author:
mistic100
Message:

update for Piwigo 2.4
change previews with new Twitter appearance
remove all custom buttons, keep only official
new options: display counter and via

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/TweetThis/admin.php

    r11425 r15122  
    55
    66load_language('plugin.lang', TWEET_PATH);
    7 $conf['TweetThis'] = explode(',', $conf['TweetThis']);
     7$conf['TweetThis'] = unserialize($conf['TweetThis']);
    88
    99if (isset($_POST['submit']))
    1010{
    1111  $conf['TweetThis'] = array(
    12     $_POST['button_style'],
    13     $_POST['position'],
     12    'size' => $_POST['button_size'],
     13    'position' => $_POST['position'],
     14    'count' => isset($_POST['count']),
     15    'via' => trim($_POST['via']),
    1416    );
    1517 
    16   conf_update_param('TweetThis', implode(',', $conf['TweetThis']));
     18  conf_update_param('TweetThis', serialize($conf['TweetThis']));
    1719  array_push($page['infos'], l10n('Information data registered in database'));
    1820 
     
    2224
    2325$template->assign(array(
    24   'button_style' => $conf['TweetThis'][0],
    25   'position' => $conf['TweetThis'][1],
     26  'button_size' => $conf['TweetThis']['size'],
     27  'position' => $conf['TweetThis']['position'],
     28  'count_check' => $conf['TweetThis']['count'] ? 'checked="checked"' : null,
     29  'via' => $conf['TweetThis']['via'],
    2630  'TWEET_PATH' => TWEET_PATH,
    2731));
Note: See TracChangeset for help on using the changeset viewer.