* @author		BowThemes
 * @email		support@bowthems.com
 * @website		http://bowthemes.com
 * @support		Forum - http://bowthemes.com/forum/
 * @copyright	Copyright (C) 2011 Bowthemes. All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('cms.captcha.captcha');
jimport('joomla.application.component.view');
jimport('joomla.application.component.helper');
jimport('joomla.plugin.plugin');
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
modbt_socialconnectHelper::fetchHead($params);
// load language
$language = JFactory::getLanguage();
$language_tag = $language->getTag();
// loads the current language-tag
JFactory::getLanguage()->load('plg_captcha_recaptcha', JPATH_ADMINISTRATOR, $language_tag, true);
JFactory::getLanguage()->load('mod_btsocialconnect_login', JPATH_SITE, $language_tag, true);
JFactory::getLanguage()->load('lib_joomla', JPATH_SITE, $language_tag, true);
JFactory::getLanguage()->load('com_users', JPATH_SITE, $language_tag, true);
JFactory::getLanguage()->load('com_bt_socialconnect', JPATH_SITE, $language_tag, true);
$mainframe = JFactory::getApplication();
//get position display
$align = $params->get('align_option');
//get color setting
$textColor = $params->get('text_button_color', '#fff');
$showLogout = $params->get('logout_button', 1);