Changeset 31136
- Timestamp:
- May 8, 2015, 9:51:02 PM (9 years ago)
- Location:
- extensions/ShareThis
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ShareThis/changelog.txt
r31106 r31136 18 18 19 19 === Changelog === 20 version 1.0.4 21 + Added en_UK language folder to allow plugin translation 22 - Fixed extension repository link to allow proper plugin update detection 23 - Fixed issue when under some coditions plugin parameters are not present on plugin update 24 20 25 version 1.0.3 21 26 + ALL: Added better reference for OG: metadata -
extensions/ShareThis/main.inc.php
r31106 r31136 2 2 /* 3 3 Plugin Name: ShareThis 4 Version: 1.0. 34 Version: 1.0.4 5 5 Description: Add "Share This" functionality to your site 6 //Plugin URI: http://piwigo.org/ext/extension_view.php?eid=5436 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=793 7 7 Author: Serguei Dosyukov 8 8 Author URI: http://blog.dragonsoft.us … … 15 15 // +-----------------------------------------------------------------------+ 16 16 17 define('SHARETHIS_VERSION', '1.0. 3');17 define('SHARETHIS_VERSION', '1.0.4'); 18 18 define('SHARETHIS_ID', basename(dirname(__FILE__))); 19 19 define('SHARETHIS_PATH' , PHPWG_PLUGINS_PATH . SHARETHIS_ID . '/'); … … 94 94 "icon_class" => "fa fa-share-alt", 95 95 "title" => "{'Share This'|@translate}", 96 "content" => '<span>{\'Share This :\'|@translate}</span>'96 "content" => '<span>{\'Share This\'|@translate}:</span>' 97 97 . '{html_head}<!-- START OPEN GRAPH TAGS-->{"\n"}' 98 98 . '<meta property="og:title" content="{$GALLERY_TITLE} | {$PAGE_TITLE}{if $current->author} | by {$current->author}{/if}" />{"\n"}' -
extensions/ShareThis/maintain.class.php
r31051 r31136 3 3 4 4 class sharethis_maintain extends PluginMaintain { 5 5 6 private $default_conf = array( 6 7 'facebook' => false, 7 8 'pinterest' => false, 8 9 'twitter' => false, 9 'googleplus' => false 10 'googleplus' => false, 11 'tumblr' => false 10 12 ); 11 13 … … 14 16 } 15 17 16 /** 17 * Plugin installation 18 */ 18 /**** Plugin installation */ 19 19 function install($plugin_version, &$errors=array()) { 20 20 global $conf; … … 26 26 $old_conf = safe_unserialize($conf['sharethis']); 27 27 28 //if (empty($old_conf['option3'])) 29 //{ // use case: this parameter was added in a new version 30 // $old_conf['option3'] = 'two'; 31 //} 28 foreach ($this->default_conf as $key => $value): 29 if (array_key_exists($key, $old_conf)): 30 else: 31 $old_conf[$key] = $value; 32 endif; 33 endforeach; 32 34 33 35 conf_update_param('sharethis', $old_conf, true); … … 35 37 } 36 38 37 /** 38 * Plugin activation 39 */ 40 function activate($plugin_version, &$errors=array()) { 41 } 39 /**** Plugin activation */ 40 function activate($plugin_version, &$errors=array()) { } 42 41 43 /** 44 * Plugin deactivation 45 */ 46 function deactivate() { 47 } 42 /**** Plugin deactivation */ 43 function deactivate() { } 48 44 49 /** 50 * Plugin (auto)update 51 */ 45 /**** Plugin (auto)update */ 52 46 function update($old_version, $new_version, &$errors=array()) { 53 47 $this->install($new_version, $errors); 54 48 } 55 49 56 /** 57 * Plugin uninstallation 58 */ 50 /**** Plugin uninstallation */ 59 51 function uninstall() { 60 52 // delete configuration
Note: See TracChangeset
for help on using the changeset viewer.