* @copyright 2007-2019 Apollotheme * @license http://apollotheme.com - prestashop template provider */ if (!defined('_PS_VERSION_')) { # module validation exit; } class ApQuicklogin extends ApShortCodeBase { public $name = 'ApQuicklogin'; public $for_module = 'manage'; public function getInfo() { return array('label' => $this->l('Quicklogin Module'), 'position' => 3, 'desc' => $this->l('You set quick login or social login form from leoquicklogin module'), 'icon_class' => 'icon icon-chevron-right', 'tag' => 'content'); } public function getConfigList() { if (Module::isInstalled('leoquicklogin') && Module::isEnabled('leoquicklogin')) { include_once(_PS_MODULE_DIR_.'leoquicklogin/leoquicklogin.php'); $module = new Leoquicklogin(); $select_list_type = array(); foreach ($module->list_type as $key => $value) { $select_list_type[] = array('id' => $key, 'name' => $value); } $select_list_layout = array(); foreach ($module->list_layout as $key => $value) { $select_list_layout[] = array('id' => $key, 'name' => $value); } $inputs = array( array( 'type' => 'select', 'label' => $this->l('Select type'), 'name' => 'quicklogin_type', 'options' => array( 'query' => $select_list_type, 'id' => 'id', 'name' => 'name' ), ), array( 'type' => 'select', 'label' => $this->l('Select layout'), 'name' => 'quicklogin_layout', 'options' => array( 'query' => $select_list_layout, 'id' => 'id', 'name' => 'name' ), ), array( 'type' => 'select', 'label' => $this->l('Show Social Login'), 'name' => 'quicklogin_sociallogin', 'options' => array( 'query' => array( array( 'id' => 'enable', 'name' => $this->l('Yes'), ), array( 'id' => 'disable', 'name' => $this->l('No'), )), 'id' => 'id', 'name' => 'name' ), ), ); } else { $inputs = array( array( 'type' => 'html', 'name' => 'default_html', 'html_content' => '