Change libs path
This commit is contained in:
parent
0a4e6cf6ec
commit
718dd61be2
@ -21,6 +21,8 @@ class HelperFormBootstrap
|
||||
public $_dateTime;
|
||||
public $_dateTimePicker;
|
||||
|
||||
public $pathAssets = 'adm/helpers/libs';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->_html = '';
|
||||
@ -42,26 +44,33 @@ class HelperFormBootstrap
|
||||
{
|
||||
$this->_style .= '<style type="text/css">';
|
||||
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.'adm/helpers/includes/jquery-ui-1.8.20.custom.css"); ';
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.'adm/helpers/includes/css/bootstrap.min.css"); ';
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/ui-1.12.1/jquery-ui.min.css"); ';
|
||||
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/bootstrap-3.3.7/css/bootstrap.min.css"); ';
|
||||
|
||||
if ($this->_select2) {
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.'adm/helpers/includes/css/select2.min.css"); ';
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/select2-4.0.5/css/select2.min.css"); ';
|
||||
}
|
||||
|
||||
if ($this->_dateTimePicker) {
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.'adm/helpers/includes/css/bootstrap-datetimepicker.min.css"); ';
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/bootstrap-datetimepicker-4.17.47/css/bootstrap-datetimepicker.min.css"); ';
|
||||
}
|
||||
|
||||
if ($this->_inputTag) {
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.'adm/helpers/includes/jquery.tagsinput.min.css"); ';
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/tagsinput-1.3.6/jquery.tagsinput.min.css"); ';
|
||||
}
|
||||
|
||||
if ($this->_inputSwitch) {
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.'adm/helpers/includes/switchery.min.css"); ';
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/switchery-0.8.2/switchery.min.css"); ';
|
||||
}
|
||||
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.'adm/helpers/includes/css/custom.css"); ';
|
||||
$this->_style .= '@import url("'.__PS_BASE_URI__.$this->pathAssets.'/custom.css"); ';
|
||||
|
||||
$this->_style .= $this->_css;
|
||||
$this->_style .= '</style>';
|
||||
@ -71,36 +80,49 @@ class HelperFormBootstrap
|
||||
|
||||
public function renderScript()
|
||||
{
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/libs/jquery-3.3.1.min.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/jquery-ui.min.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/js/bootstrap.min.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/jquery-3.3.1.min.js"></script>';
|
||||
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/ui-1.12.1/jquery-ui.min.js"></script>';
|
||||
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/bootstrap-3.3.7/js/bootstrap.min.js"></script>';
|
||||
|
||||
if ($this->_select2) {
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/js/select2.full.min.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/select2-4.0.5/js/select2.full.min.js"></script>';
|
||||
}
|
||||
|
||||
if ($this->_dateTimePicker) {
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/js/moment-with-locales.min.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/js/bootstrap-datetimepicker.min.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/moment-with-locales.min.js"></script>';
|
||||
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/bootstrap-datetimepicker-4.17.47/js/bootstrap-datetimepicker.min.js"></script>';
|
||||
}
|
||||
|
||||
if ($this->_inputMask) {
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/jquery.inputmask.bundle.min.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/inputmask-3.3.11/jquery.inputmask.bundle.min.js"></script>';
|
||||
}
|
||||
|
||||
if ($this->_inputTag) {
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/jquery.tagsinput.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/tagsinput-1.3.6/jquery.tagsinput.min.js"></script>';
|
||||
}
|
||||
|
||||
if ($this->_inputSwitch) {
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/switchery.min.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/switchery-0.8.2/switchery.min.js"></script>';
|
||||
}
|
||||
|
||||
if ($this->_inputWizard) {
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/jquery.smartWizard.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.
|
||||
'/smartwizard-3.3.1/js/jquery.smartWizard.js"></script>';
|
||||
}
|
||||
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.'adm/helpers/includes/js/custom.js"></script>';
|
||||
$this->_script .= '<script type="text/javascript" src="'.__PS_BASE_URI__.$this->pathAssets.'/custom.js"></script>';
|
||||
$this->_script .= $this->_js;
|
||||
|
||||
return $this->_script;
|
||||
|
Loading…
Reference in New Issue
Block a user