first commit
This commit is contained in:
25
admininistrator/controller/common/footer.php
Normal file
25
admininistrator/controller/common/footer.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace Opencart\Admin\Controller\Common;
|
||||
/**
|
||||
* Class Footer
|
||||
*
|
||||
* @package Opencart\Admin\Controller\Common
|
||||
*/
|
||||
class Footer extends \Opencart\System\Engine\Controller {
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function index(): string {
|
||||
$this->load->language('common/footer');
|
||||
|
||||
if ($this->user->isLogged() && isset($this->request->get['user_token']) && ($this->request->get['user_token'] == $this->session->data['user_token'])) {
|
||||
$data['text_version'] = sprintf($this->language->get('text_version'), VERSION);
|
||||
} else {
|
||||
$data['text_version'] = '';
|
||||
}
|
||||
|
||||
$data['bootstrap'] = 'view/javascript/bootstrap/js/bootstrap.bundle.min.js';
|
||||
|
||||
return $this->load->view('common/footer', $data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user