first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
<?php
/**
* 2007-2015 Apollotheme
*
* NOTICE OF LICENSE
*
* ApPageBuilder is module help you can build content for your shop
*
* DISCLAIMER
*
* @author Apollotheme <apollotheme@gmail.com>
* @copyright 2007-2019 Apollotheme
* @license http://apollotheme.com - prestashop template provider
*/
if (!defined('_PS_VERSION_')) {
# module validation
exit;
}
class ApAlert extends ApShortCodeBase
{
public $name = 'ApAlert';
public $for_module = 'manage';
public function getInfo()
{
return array('label' => $this->l('Alert'),
'position' => 5,
'desc' => $this->l('Alert Message box'),
'icon_class' => 'icon-info-sign',
'tag' => 'content');
}
public function getConfigList()
{
$types = array(
array(
'value' => 'alert-success',
'text' => $this->l('Alert Success')
),
array(
'value' => 'alert-info',
'text' => $this->l('Alert Info')
),
array(
'value' => 'alert-warning',
'text' => $this->l('Alert Warning')
),
array(
'value' => 'alert-danger',
'text' => $this->l('Alert Danger')
)
);
$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' => 'textarea',
'lang' => true,
'label' => $this->l('Content'),
'name' => 'content_html',
'cols' => 40,
'rows' => 10,
'value' => true,
'lang' => true,
'default' => '',
'autoload_rte' => true,
),
array(
'type' => 'select',
'label' => $this->l('Alert Type'),
'name' => 'alert_type',
'options' => array('query' => $types,
'id' => 'value',
'name' => 'text'),
'default' => '1',
'desc' => $this->l('Select a alert style')
)
);
return $inputs;
}
}