|
18 | 18 | $message = line('The <strong>Dummy Module</strong> is kept to fill dashboard with dummy content, but also to show you how you can add content to it.', 'dummy', false)."<br />"; |
19 | 19 | $message .= line('Action: <code>admin_page_header</code>, so this content is visible at the top of all dashboard pages.', 'dummy', false); |
20 | 20 |
|
21 | | - echo app()->theme->js_alert($message, 'warning'); |
| 21 | + echo driver('hub')->ui->alert($message, 'warning'); |
22 | 22 | }); |
23 | 23 |
|
24 | 24 | // -------------------------------------------------------------------- |
|
31 | 31 | $heading = '<strong>'.line('Remove this page\'s dummy content.', 'dummy', false).'</strong><br >'; |
32 | 32 | $message = line('The <code>dummy module</code> displays dummy content on the dashboard. Make sure to delete it on production mode.<br />Action: <code>admin_index_header</code>, so this alert is only visible on dashboard main page.', 'dummy', false); |
33 | 33 |
|
34 | | - echo app()->theme->js_alert($heading.$message, 'info'); |
| 34 | + echo driver('hub')->ui->alert($heading.$message, 'info'); |
35 | 35 | }); |
36 | 36 |
|
37 | 37 | // -------------------------------------------------------------------- |
|
41 | 41 | * @since 2.1 |
42 | 42 | */ |
43 | 43 | add_action('admin_index_footer', function () { |
44 | | - app()->load->view('dummy/index'); |
| 44 | + CI_Controller::get_instance()->load->view('dummy/index'); |
45 | 45 | }, 98); |
46 | 46 |
|
47 | 47 | // -------------------------------------------------------------------- |
|
51 | 51 | * @since 2.1 |
52 | 52 | */ |
53 | 53 | add_action('admin_index_footer', function () { |
54 | | - app()->assets->highlight('stackoverflow-dark'); |
| 54 | + driver('hub')->assets->highlight('stackoverflow-dark'); |
55 | 55 |
|
56 | 56 | $content = <<<HTML |
57 | 57 | <pre class="mt-3 border"><code class="language-php"><?php |
|
0 commit comments