upgrade
This commit is contained in:
17
plugin/add_facebook_login_button/index.php
Normal file
17
plugin/add_facebook_login_button/index.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
// Show the FACEBOOK login button
|
||||
$_template['show_message'] = false;
|
||||
|
||||
//if (api_is_anonymous() && api_get_setting('facebook_login_activate') == 'true') {
|
||||
if (api_is_anonymous()) {
|
||||
require_once api_get_path(SYS_CODE_PATH)."auth/external_login/facebook.inc.php";
|
||||
$_template['show_message'] = true;
|
||||
// the default title
|
||||
$button_url = '';
|
||||
$href_link = facebookGetLoginUrl();
|
||||
if (!empty($plugin_info['settings']['add_facebook_login_button_facebook_button_url'])) {
|
||||
$button_url = api_htmlentities($plugin_info['settings']['add_facebook_login_button_facebook_button_url']);
|
||||
}
|
||||
$_template['facebook_button_url'] = $button_url;
|
||||
$_template['facebook_href_link'] = $href_link;
|
||||
}
|
||||
Reference in New Issue
Block a user