tagging as ATutor 1.5.4-release
[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 \r
21         $this->_pages['admin/themes/delete.php']['title_var'] = 'delete';\r
22         $this->_pages['admin/themes/delete.php']['parent']    = 'admin/themes/index.php';\r
23 \r
24 }\r
25 ?>