made a copy
[atutor.git] / mods / _core / themes / module.php
1 <?php\r
2 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
3 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
4 \r
5 define('AT_ADMIN_PRIV_THEMES', $this->getAdminPrivilege());\r
6 \r
7 if (admin_authenticate(AT_ADMIN_PRIV_THEMES, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
8         if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
9                 $this->_pages['admin/config_edit.php']['children']      = array('admin/themes/index.php');\r
10                 $this->_pages['admin/themes/index.php']['parent'] = 'admin/config_edit.php';\r
11         } else {\r
12                 $this->_pages[AT_NAV_ADMIN] = array('admin/themes/index.php');\r
13                 $this->_pages['admin/themes/index.php']['parent'] = AT_NAV_ADMIN;\r
14         }\r
15 \r
16 \r
17         //admin\r
18         $this->_pages['admin/themes/index.php']['title_var'] = 'themes';\r
19         $this->_pages['admin/themes/index.php']['guide']     = 'admin/?p=themes.php';\r
20         $this->_pages['admin/themes/index.php']['children']  = array('admin/themes/install_themes.php');\r
21 \r
22         $this->_pages['admin/themes/delete.php']['title_var'] = 'delete';\r
23         $this->_pages['admin/themes/delete.php']['parent']    = 'admin/themes/index.php';\r
24 \r
25         $this->_pages['admin/themes/install_themes.php']['title_var'] = 'install_themes';\r
26         $this->_pages['admin/themes/install_themes.php']['parent'] = 'admin/themes/index.php';\r
27 \r
28         $this->_pages['admin/themes/theme_install_step_1.php']['title_var'] = 'details';\r
29         $this->_pages['admin/themes/theme_install_step_1.php']['parent']    = 'admin/themes/install_themes.php';\r
30 \r
31         $this->_pages['admin/themes/theme_install_step_2.php']['title_var'] = 'details';\r
32         $this->_pages['admin/themes/theme_install_step_2.php']['parent']    = 'admin/themes/install_themes.php';\r
33 \r
34         $this->_pages['admin/themes/theme_install_step_3.php']['title_var'] = 'details';\r
35         $this->_pages['admin/themes/theme_install_step_3.php']['parent']    = 'admin/themes/install_themes.php';\r
36 \r
37         $this->_pages['admin/themes/version_history.php']['title_var'] = 'version_history';\r
38         $this->_pages['admin/themes/version_history.php']['parent']    = 'admin/themes/install_themes.php';\r
39 \r
40 }\r
41 ?>