* @copyright 2007-2019 Apollotheme * @license http://apollotheme.com - prestashop template provider */ if (!defined('_PS_VERSION_')) { # module validation exit; } class ApButton extends ApShortCodeBase { public $name = 'ApButton'; public $for_module = 'manage'; public function getInfo() { return array('label' => $this->l('Buttons'), 'position' => 5, 'desc' => $this->l('Custom color, size and create a link for button'), 'icon_class' => 'icon-edit', 'tag' => 'content control'); } public function getConfigList() { $inputs = array( array( 'type' => 'text', 'name' => 'title', 'label' => $this->l('Title'), 'desc' => $this->l('Auto hide if leave it blank'), 'lang' => 'true', 'form_group_class' => 'aprow_general', 'default' => '' ), array( 'type' => 'textarea', 'name' => 'sub_title', 'label' => $this->l('Sub Title'), 'lang' => true, 'values' => '', 'autoload_rte' => false, 'default' => '', ), array( 'type' => 'text', 'name' => 'name', 'label' => $this->l('Name'), 'lang' => 'true', 'form_group_class' => 'aprow_general', 'default' => 'Button' ), array( 'type' => 'select', 'label' => $this->l('Use Outline Button'), 'class' => 'form-action', 'name' => 'use_outline_button', 'options' => array( 'query' => array( array('id' => 'no', 'name' => $this->l('No')), array('id' => 'yes', 'name' => $this->l('Yes')), ), 'id' => 'id', 'name' => 'name' ), 'default' => '0' ), array( 'type' => 'select', 'label' => $this->l('Button Type'), 'name' => 'button_type', 'options' => array('query' => $this->getDataButtonType(), 'id' => 'value', 'name' => 'text'), 'default' => '1', 'form_group_class' => 'use_outline_button_sub use_outline_button-no', ), array( 'type' => 'select', 'label' => $this->l('Button Type'), 'name' => 'outline_button_type', 'options' => array('query' => $this->getDataOutlineButtonType(), 'id' => 'value', 'name' => 'text'), 'default' => '1', 'form_group_class' => 'use_outline_button_sub use_outline_button-yes', ), array( 'type' => 'select', 'label' => $this->l('Button Size'), 'name' => 'button_size', 'options' => array('query' => $this->getDataSize(), 'id' => 'value', 'name' => 'text'), 'default' => 'btn-lg', 'desc' => $this->l('Select a button size') ), array( 'type' => 'switch', 'label' => $this->l('Is Block'), 'name' => 'is_block', 'desc' => $this->l('If is block, will display width is full 100%'), 'values' => ApPageSetting::returnYesNo(), 'default' => '0' ), array( 'type' => 'html', 'name' => 'default_html', 'html_content' => '