upgrade
This commit is contained in:
6
plugin/share_buttons/README.md
Normal file
6
plugin/share_buttons/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
Share buttons plugin
|
||||
===
|
||||
|
||||
This plugin could slow down your website because it will load a javascript file from the addthis.com server.
|
||||
|
||||
This plugin is very close to the Follow Buttons plugin.
|
||||
21
plugin/share_buttons/index.php
Normal file
21
plugin/share_buttons/index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Controller for example date plugin.
|
||||
*
|
||||
* @package chamilo.plugin.share_buttons
|
||||
*/
|
||||
echo '
|
||||
<div class="well well-sm">
|
||||
<!-- AddThis Button BEGIN -->
|
||||
<div class="addthis_toolbox addthis_default_style '.$plugin_info['icon_class'].'">
|
||||
<a class="addthis_button_preferred_1"></a>
|
||||
<a class="addthis_button_preferred_2"></a>
|
||||
<a class="addthis_button_preferred_3"></a>
|
||||
<a class="addthis_button_preferred_4"></a>
|
||||
<a class="addthis_button_compact"></a>
|
||||
<a class="addthis_counter addthis_bubble_style"></a>
|
||||
</div>
|
||||
<!-- AddThis Button END -->
|
||||
</div>
|
||||
<script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js"></script>
|
||||
';
|
||||
22
plugin/share_buttons/plugin.php
Normal file
22
plugin/share_buttons/plugin.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* This script is a configuration file for the add_this plugin.
|
||||
* These settings will be used in the administration interface for plugins
|
||||
* (Chamilo configuration settings->Plugins).
|
||||
*
|
||||
* @package chamilo.plugin
|
||||
*
|
||||
* @author Julio Montoya <gugli100@gmail.com>
|
||||
*/
|
||||
/* Plugin config */
|
||||
|
||||
// The plugin title.
|
||||
$plugin_info['title'] = 'Share this page';
|
||||
// The comments that go with the plugin.
|
||||
$plugin_info['comment'] = "Show social icons to share a page using addthis.com";
|
||||
// The plugin version.
|
||||
$plugin_info['version'] = '1.0';
|
||||
// The plugin author.
|
||||
$plugin_info['author'] = 'Julio Montoya';
|
||||
// For bigger icons change this value to addthis_32x32_style
|
||||
$plugin_info['icon_class'] = '';
|
||||
Reference in New Issue
Block a user