BUG 9693 Make editable the HTML layout from uxs Simplified... SOLVED
- No was could change template on skin uxs. - Was add the folder "templates" on folder "simplified" where find the templates de skin uxs. - note: only was can enable one skin uxs for server.
This commit is contained in:
@@ -14,6 +14,7 @@ class Home extends Controller
|
||||
private $userFullName;
|
||||
private $userRolName;
|
||||
private $userUxType;
|
||||
private $userUxBaseTemplate;
|
||||
|
||||
private $appListStart = 0;
|
||||
private $appListLimit = 15;
|
||||
@@ -30,6 +31,7 @@ class Home extends Controller
|
||||
// getting the ux type from user o group conf.
|
||||
$this->userUxType = isset($_SESSION['user_experience'])? $_SESSION['user_experience']: 'SIMPLIFIED';
|
||||
$this->lastSkin = isset($_SESSION['user_last_skin']) ? $_SESSION['user_last_skin'] : 'classic';
|
||||
$this->userUxBaseTemplate = (is_dir(PATH_CUSTOM_SKINS . 'uxs')) ? PATH_CUSTOM_SKINS . 'simplified' . PATH_SEP . 'templates' . PATH_SEP : 'home' . PATH_SEP;
|
||||
|
||||
if (isset($_SESSION['USER_LOGGED']) && !empty($_SESSION['USER_LOGGED'])) {
|
||||
$this->userID = isset($_SESSION['USER_LOGGED']) ? $_SESSION['USER_LOGGED'] : null;
|
||||
@@ -59,7 +61,7 @@ class Home extends Controller
|
||||
$this->setVar('pwd', $data['p']);
|
||||
$this->setVar('skin', $skin);
|
||||
|
||||
$this->setView("home/$template");
|
||||
$this->setView($this->userUxBaseTemplate."$template");
|
||||
$this->render();
|
||||
}
|
||||
|
||||
@@ -127,7 +129,7 @@ class Home extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$this->setView('home/index');
|
||||
$this->setView($this->userUxBaseTemplate.'index');
|
||||
|
||||
$this->setVar('usrUid', $this->userID);
|
||||
$this->setVar('userName', $this->userName);
|
||||
@@ -155,8 +157,8 @@ class Home extends Controller
|
||||
|
||||
if (!isset($cases['data'][0])) {
|
||||
//the current user has not any aplication to do
|
||||
$this->setView('home/indexSingle');
|
||||
$this->setVar('default_url', 'home/error?no=2');
|
||||
$this->setView($this->userUxBaseTemplate.'indexSingle');
|
||||
$this->setVar('default_url', $this->userUxBaseTemplate.'error?no=2');
|
||||
$this->render();
|
||||
exit();
|
||||
}
|
||||
@@ -172,7 +174,7 @@ class Home extends Controller
|
||||
$lastStep['title'] = G::LoadTranslation('ID_FINISH');
|
||||
$steps[] = $lastStep;
|
||||
|
||||
$this->setView('home/indexSingle');
|
||||
$this->setView($this->userUxBaseTemplate.'indexSingle');
|
||||
|
||||
$this->setVar('usrUid', $this->userID);
|
||||
$this->setVar('userName', $this->userName);
|
||||
@@ -207,7 +209,7 @@ class Home extends Controller
|
||||
$cases = $this->getAppsData($httpData->t);
|
||||
|
||||
// settings html template
|
||||
$this->setView('home/appList');
|
||||
$this->setView($this->userUxBaseTemplate.'appList');
|
||||
|
||||
// settings vars and rendering
|
||||
$this->setVar('cases', $cases['data']);
|
||||
@@ -224,7 +226,7 @@ class Home extends Controller
|
||||
{
|
||||
$cases = $this->getAppsData($httpData->t, $httpData->start, $httpData->limit);
|
||||
|
||||
$this->setView('home/applications');
|
||||
$this->setView($this->userUxBaseTemplate.'applications');
|
||||
$this->setVar('cases', $cases['data']);
|
||||
$this->render();
|
||||
}
|
||||
@@ -304,8 +306,8 @@ class Home extends Controller
|
||||
$httpData->no = isset($httpData->no) ? $httpData->no : 0;
|
||||
|
||||
switch ($httpData->no) {
|
||||
case 2: $tpl = 'home/noAppsMsg'; break;
|
||||
default: $tpl = 'home/error';
|
||||
case 2: $tpl = $this->userUxBaseTemplate.'noAppsMsg'; break;
|
||||
default: $tpl = $this->userUxBaseTemplate.'error';
|
||||
}
|
||||
|
||||
$this->setView($tpl);
|
||||
|
||||
Reference in New Issue
Block a user