<?php
/**
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 * We offer the best and most useful modules PrestaShop and modifications for your online store.
 *
 * @author    knowband.com <support@knowband.com>
 * @copyright 2017 Knowband
 * @license   see file: LICENSE.txt
 * @category  PrestaShop Module
 */

class SocialLoginizerEmailloginModuleFrontController extends ModuleFrontController
{
    public function initContent()
    {
        parent::initContent();
        
        $platform = Tools::getValue('type');
        $platform = trim($platform);
        if (isset($this->context->cookie->login_data_available) &&
            $this->context->cookie->login_data_available == 1) {
            $this->setTemplate('module:socialloginizer/views/templates/front/email_login.tpl');
        }
    }
}
