Ignore:
Timestamp:
May 19, 2012, 1:12:51 PM (12 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/maintain.inc.php

    r12388 r15122  
    11<?php
    22function plugin_install()
    3 {
    4   pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("TweetThis","horizontal,toolbar","TweetThis config");');
     3{
     4  $conf = array(
     5    'size' => 'small',
     6    'position' => 'toolbar',
     7    'count' => true,
     8    'via' => null,
     9    );
     10     
     11  conf_update_param('TweetThis', serialize($conf));
     12}
     13
     14function plugin_activate()
     15{
     16  global $conf;
     17 
     18  if (@unserialize($conf['TweetThis']) === false)
     19  {
     20    $conf = explode(',', $conf['TweetThis']);
     21    $conf = array(
     22      'size' => 'small',
     23      'position' => $conf[1],
     24      'count' => $conf[1]=='horizontal' || $conf[1]=='vertical',
     25      'via' => null,
     26      );
     27     
     28    conf_update_param('TweetThis', serialize($conf));
     29  }
    530}
    631
Note: See TracChangeset for help on using the changeset viewer.