upgrade
This commit is contained in:
6
plugin/follow_buttons/README.md
Normal file
6
plugin/follow_buttons/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
Follow buttons (or AddThis icons)
|
||||
===
|
||||
|
||||
Edit the main/plugin/follow_buttons/index.php file in order to add your settings.
|
||||
|
||||
It can slow down your website because it will load a javascript file from the addthis.com server
|
||||
20
plugin/follow_buttons/index.php
Normal file
20
plugin/follow_buttons/index.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Controller for example date plugin.
|
||||
*
|
||||
* @package chamilo.plugin.sharethis
|
||||
*/
|
||||
|
||||
//Plugin settings
|
||||
$_template = null;
|
||||
|
||||
//$_template['message'] = 'Follow us';
|
||||
|
||||
$_template['facebook'] = 'chamilolms'; //http://www.facebook.com/your-profile
|
||||
$_template['twitter'] = 'chamilo_news'; //http://twitter.com/your-profile
|
||||
$_template['linkedin'] = 'chamilo_news'; //http://www.linkedin.com/in/your-profile
|
||||
$_template['googleplus'] = ''; //https://plus.google.com/your-profile
|
||||
$_template['youtube'] = ''; //http://www.youtube.com/user/your-profile
|
||||
$_template['flickr'] = ''; //http://www.flickr.com/photos/your-profile
|
||||
$_template['vimeo'] = ''; //http://www.vimeo.com/your-profile
|
||||
$_template['rss'] = 'http://www.chamilo.org/';
|
||||
31
plugin/follow_buttons/plugin.php
Normal file
31
plugin/follow_buttons/plugin.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different).
|
||||
* 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 details (must be present).
|
||||
*/
|
||||
|
||||
/* Plugin config */
|
||||
|
||||
//the plugin title
|
||||
$plugin_info['title'] = 'Follow icons';
|
||||
//the comments that go with the plugin
|
||||
$plugin_info['comment'] = "Add social icons (implemented using addthis.com)";
|
||||
//the plugin version
|
||||
$plugin_info['version'] = '1.0';
|
||||
//the plugin author
|
||||
$plugin_info['author'] = 'Julio Montoya';
|
||||
|
||||
$plugin_info['templates'] = ['template.tpl'];
|
||||
|
||||
//For bigger icons change this value to addthis_32x32_style
|
||||
$plugin_info['icon_class'] = '';
|
||||
|
||||
//To use vertical alignment change this value to
|
||||
$plugin_info['position'] = 'addthis_default_style'; //addthis_vertical_style
|
||||
35
plugin/follow_buttons/template.tpl
Normal file
35
plugin/follow_buttons/template.tpl
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="well">
|
||||
<!-- AddThis Button BEGIN -->
|
||||
{% if follow_buttons.message is not empty %}
|
||||
<h3>{{ follow_buttons.message }}</h3>
|
||||
{% endif %}
|
||||
|
||||
<div class="addthis_toolbox {{ follow_buttons.plugin_info.icon_class}} {{ follow_buttons.plugin_info.position}} ">
|
||||
{% if follow_buttons.facebook is not empty %}
|
||||
<a class="addthis_button_facebook_follow" addthis:userid="{{ follow_buttons.facebook }}"></a>
|
||||
{% endif %}
|
||||
{% if follow_buttons.twitter is not empty %}
|
||||
<a class="addthis_button_twitter_follow" addthis:userid="{{ follow_buttons.twitter }}"></a>
|
||||
{% endif %}
|
||||
{% if follow_buttons.linkedin is not empty %}
|
||||
<a class="addthis_button_linkedin_follow" addthis:userid="{{ follow_buttons.linkedin }}"></a>
|
||||
{% endif %}
|
||||
{% if follow_buttons.googleplus is not empty %}
|
||||
<a class="addthis_button_google_follow" addthis:userid="{{ follow_buttons.googleplus }}"></a>
|
||||
{% endif %}
|
||||
{% if follow_buttons.youtube is not empty %}
|
||||
<a class="addthis_button_youtube_follow" addthis:userid="{{ follow_buttons.youtube }}"></a>
|
||||
{% endif %}
|
||||
{% if follow_buttons.flickr is not empty %}
|
||||
<a class="addthis_button_flickr_follow" addthis:userid="{{ follow_buttons.flickr }}"></a>
|
||||
{% endif %}
|
||||
{% if follow_buttons.vimeo is not empty %}
|
||||
<a class="addthis_button_vimeo_follow" addthis:userid="{{ follow_buttons.vimeo }}"></a>
|
||||
{% endif %}
|
||||
{% if follow_buttons.rss is not empty %}
|
||||
<a class="addthis_button_rss_follow" addthis:url="{{ follow_buttons.rss }}"></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f69d7995360186c"></script>
|
||||
<!-- AddThis Button END -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user