Add Custom UI Folder to customize UI
This commit is contained in:
parent
1515a44ae5
commit
1f4bd28045
3
.gitignore
vendored
3
.gitignore
vendored
@ -17,3 +17,6 @@ system/paymentgateway/**
|
||||
!system/plugin/ui/
|
||||
system/plugin/ui/*
|
||||
!system/plugin/ui/index.html
|
||||
ui/ui_custom/**
|
||||
!ui/ui_custom/index.html
|
||||
!ui/ui_custom/README.md
|
@ -84,7 +84,7 @@ function _notify($msg, $type = 'e')
|
||||
$lan_file = 'system/lan/' . $config['language'] . '/common.lan.php';
|
||||
require($lan_file);
|
||||
$ui = new Smarty();
|
||||
$ui->setTemplateDir('ui/ui/');
|
||||
$ui->setTemplateDir(['custom' => 'ui/ui_custom/', 'default' => 'ui/ui/']);
|
||||
$ui->addTemplateDir('system/paymentgateway/ui/', 'pg');
|
||||
$ui->addTemplateDir('system/plugin/ui/', 'plugin');
|
||||
$ui->setCompileDir('ui/compiled/');
|
||||
@ -130,8 +130,7 @@ include "autoload/Hookers.php";
|
||||
|
||||
|
||||
//register all plugin
|
||||
foreach (glob("system/plugin/*.php") as $filename)
|
||||
{
|
||||
foreach (glob("system/plugin/*.php") as $filename) {
|
||||
include $filename;
|
||||
}
|
||||
|
||||
|
5
ui/ui_custom/README.md
Normal file
5
ui/ui_custom/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# CUSTOM DESIGN
|
||||
|
||||
If you want to change the UI, copy the file from UI, to here, and edit as you need, so it will not be overwrite when updating
|
||||
|
||||
Jika mau mengubah tampilan UI, salin filenya dari folder UI kesini, lalu ubah sesuai keinginan, sehingga tidak akan ditimpa saat ada update
|
0
ui/ui_custom/index.html
Normal file
0
ui/ui_custom/index.html
Normal file
Loading…
x
Reference in New Issue
Block a user