(no commit message)
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Thu, 8 Dec 2005 16:12:50 +0000 (16:12 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Thu, 8 Dec 2005 16:12:50 +0000 (16:12 -0000)
docs/mods/_core/themes/module.php [new file with mode: 0644]
docs/mods/_core/themes/module.xml [new file with mode: 0644]

diff --git a/docs/mods/_core/themes/module.php b/docs/mods/_core/themes/module.php
new file mode 100644 (file)
index 0000000..08a9db7
--- /dev/null
@@ -0,0 +1,25 @@
+<?php\r
+if (!defined('AT_INCLUDE_PATH')) { exit; }\r
+if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
+\r
+define('AT_ADMIN_PRIV_THEMES', $this->getAdminPrivilege());\r
+\r
+if (admin_authenticate(AT_ADMIN_PRIV_THEMES, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
+       if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
+               $this->_pages['admin/index.php']['children']      = array('admin/themes/index.php');\r
+               $this->_pages['admin/themes/index.php']['parent'] = 'admin/index.php';\r
+       } else {\r
+               $this->_pages[AT_NAV_ADMIN] = array('admin/themes/index.php');\r
+               $this->_pages['admin/themes/index.php']['parent'] = AT_NAV_ADMIN;\r
+       }\r
+\r
+\r
+       //admin\r
+       $this->_pages['admin/themes/index.php']['title_var'] = 'themes';\r
+       $this->_pages['admin/themes/index.php']['guide']     = 'admin/?p=2.4.themes.php';\r
+\r
+       $this->_pages['admin/themes/delete.php']['title_var'] = 'delete';\r
+       $this->_pages['admin/themes/delete.php']['parent']    = 'admin/themes/index.php';\r
+\r
+}\r
+?>
\ No newline at end of file
diff --git a/docs/mods/_core/themes/module.xml b/docs/mods/_core/themes/module.xml
new file mode 100644 (file)
index 0000000..4533e75
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ISO-8859-1"?> \r
+<module version="0.1"> \r
+    <name lang="en">Themes</name> \r
+    <description lang="en">Allows administrators themes.</description> \r
+    <maintainers>\r
+        <maintainer> \r
+            <name>ATutor Team</name> \r
+            <email>info@atutor.ca</email> \r
+        </maintainer>\r
+    </maintainers> \r
+    <url>http://atutor.ca</url> \r
+    <license>GPL</license> \r
+       <release> \r
+        <version>0.1</version> \r
+               <privileges>\r
+                       <instructor_privilege></instructor_privilege>\r
+                       <admin_privilege>create</admin_privilege> \r
+               </privileges>\r
+        <date>2005-09-19</date> \r
+        <state>stable</state> \r
+        <notes>This is a core module.</notes> \r
+    </release> \r
+</module>
\ No newline at end of file