Ignore:
Timestamp:
May 19, 2012, 1:11:01 PM (13 years ago)
Author:
mistic100
Message:

update for Piwigo 2.4
change previews with new G+1 appearance
add Annotation parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GooglePlusOne/maintain.inc.php

    r11600 r15121  
    11<?php
    22function plugin_install()
    3 {
    4   pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("GooglePlusOne","medium,toolbar","GooglePlusOne config");');
     3{
     4  $conf = array(
     5    'size' => 'medium',
     6    'position' => 'toolbar',
     7    'annotation' => 'inline',
     8    );
     9     
     10  conf_update_param('GooglePlusOne', serialize($conf));
     11}
     12
     13function plugin_activate()
     14{
     15  global $conf;
     16 
     17  if (@unserialize($conf['GooglePlusOne']) === false)
     18  {
     19    $conf = explode(',', $conf['GooglePlusOne']);
     20    $conf = array(
     21      'size' => $conf[0],
     22      'position' => $conf[1],
     23      'annotation' => 'bubble',
     24      );
     25     
     26    conf_update_param('GooglePlusOne', serialize($conf));
     27  }
    528}
    629
Note: See TracChangeset for help on using the changeset viewer.