Changeset 3057
- Timestamp:
- 06/10/11 18:35:33 (12 years ago)
- Location:
- plugins/shareOn
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/shareOn/_admin.php
r2400 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 12 12 13 13 if (!defined('DC_CONTEXT_ADMIN')){return;} 14 15 $core->blog->settings->addNamespace('shareOn'); 14 16 15 17 require_once dirname(__FILE__).'/_widgets.php'; -
plugins/shareOn/_define.php
r2543 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 17 17 /* Description*/ "Add some buttons to your posts to share them", 18 18 /* Author */ "JC Denis", 19 /* Version */ ' 0.7',19 /* Version */ '2011.06.11', 20 20 /* Permissions */ 'admin' 21 21 ); 22 /* date */ #2010081323 22 ?> -
plugins/shareOn/_install.php
r2452 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 21 21 { 22 22 # Check DC version 23 if (version_compare( DC_VERSION,'2.2-alpha','<'))23 if (version_compare(str_replace("-r","-p",DC_VERSION),'2.2-alpha','<')) 24 24 { 25 throw new Exception(' Plugin called shareOn requires Dotclear 2.2 or higher.');25 throw new Exception('shareOn requires Dotclear 2.2'); 26 26 } 27 27 … … 33 33 "#sidebar .shareonwidget ul li { margin: 4px; padding: 0; border: none; } \n"; 34 34 35 $core->blog->settings->addNamespace('shareOn'); 35 36 $s = $core->blog->settings->shareOn; 36 37 $s->put('shareOn_active',false,'boolean','Enable shareOn',false,true); -
plugins/shareOn/_prepend.php
r2543 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 15 15 16 16 global $core, $__autoload; 17 $core->blog->settings->addNamespace('shareOn');18 17 19 18 if (!isset($core->shareOnButtons)) { $core->shareOnButtons = array(); } … … 31 30 $__autoload['ybuzzButton'] = dirname(__FILE__).'/inc/class.shareon.php'; 32 31 $__autoload['gbuzzButton'] = dirname(__FILE__).'/inc/class.shareon.php'; 32 $__autoload['gplusButton'] = dirname(__FILE__).'/inc/class.shareon.php'; 33 33 34 34 $core->shareOnButtons['flattr'] = 'flattrButton'; … … 42 42 $core->shareOnButtons['ybuzz'] = 'ybuzzButton'; 43 43 $core->shareOnButtons['gbuzz'] = 'gbuzzButton'; 44 $core->shareOnButtons['gplus'] = 'gplusButton'; 44 45 45 46 ?> -
plugins/shareOn/_public.php
r2400 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 12 12 13 13 if (!defined('DC_RC_PATH')){return;} 14 15 $core->blog->settings->addNamespace('shareOn'); 14 16 15 17 require_once dirname(__FILE__).'/_widgets.php'; … … 25 27 ); 26 28 27 if (!$core->blog->settings->shareOn->shareOn_active) 28 { 29 if (!$core->blog->settings->shareOn->shareOn_active) { 29 30 $core->tpl->addValue('shareOnButton',array('tplShareOn','disable')); 30 31 } 31 else 32 { 32 else { 33 33 $core->tpl->addValue('shareOnButton',array('tplShareOn','button')); 34 34 } -
plugins/shareOn/_uninstall.php
r2206 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # -
plugins/shareOn/_widgets.php
r2400 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # -
plugins/shareOn/inc/class.shareon.php
r2543 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 264 264 public $js_content = '$(\'<iframe src="http://www.facebook.com/plugins/like.php?href=%URL%&layout=%STYLE%&show_faces=%SHOWFACES%&width=100%&action=%ACTION%&colorscheme=%COLORSCHEME%&height=%HEIGHT%" width="%WIDTH%" height="%HEIGHT%" frameborder="0" scrolling="no" allowtransparency="true"> </iframe>\')'; 265 265 public $size = array( 266 0 => array('style'=>'standard','width'=>450,'height'=>2 5),267 1 => array('style'=>'button_count','width'=>80,'height'=>2 5)266 0 => array('style'=>'standard','width'=>450,'height'=>21), 267 1 => array('style'=>'button_count','width'=>80,'height'=>21) 268 268 ); 269 269 protected $preload = true; … … 580 580 public $size = array( 581 581 0 => array('style'=>'normal-count','width'=>51,'height'=>82), 582 1 => array('style'=>'small-count','width'=>100,'height'=> 0)582 1 => array('style'=>'small-count','width'=>100,'height'=>18) 583 583 ); 584 584 protected $preload = false; … … 654 654 } 655 655 } 656 657 class gplusButton extends shareOn 658 { 659 public $id = 'gplus'; 660 public $name = 'Google +1'; 661 public $home = 'http://www.google.com/+1/button/'; 662 public $js_var = "var gplus = document.createElement('SCRIPT'), gplus1 = document.getElementsByTagName('SCRIPT')[0]; gplus.type = 'text/javascript'; gplus.async = true; gplus.src = 'http://apis.google.com/js/plusone.js'; gplus1.parentNode.insertBefore(gplus, gplus1); \n"; 663 public $nl_content = '<div class="g-plusone" size="%STYLE%" href="%URL%" count="true"></div>'; 664 public $size = array( 665 0 => array('style'=>'tall','width'=>52,'height'=>80), //50x60 666 //1 => array('style'=>'small','width'=>80,'height'=>18) //70x15 667 1 => array('style'=>'medium','width'=>70,'height'=>20) //70x15 668 ); 669 protected $preload = true; 670 671 public function __construct($core) 672 { 673 parent::__construct($core); 674 } 675 676 } 656 677 ?> -
plugins/shareOn/index.php
r2452 r3057 3 3 # This file is part of shareOn, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # -
plugins/shareOn/release.txt
r2543 r3057 1 1 * Added buttons order 2 2 * Added CSS class to buttons box 3 * Added language support 4 * Moved JS to footer 3 5 * Fixed buttons default size 6 7 2011.06.10 8 * Fixed install on nightly build 9 * Removed core->blog reference from prepend 10 * Added google +1 button 11 * (c) 2011 4 12 5 13 0.7 20100708
Note: See TracChangeset
for help on using the changeset viewer.