removed mods directory from the ATutor codebase
[atutor.git] / mods / wordpress / module.php
diff --git a/mods/wordpress/module.php b/mods/wordpress/module.php
deleted file mode 100644 (file)
index a8134c0..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/*******
- * doesn't allow this file to be loaded with a browser.
- */
-if (!defined('AT_INCLUDE_PATH')) { exit; }
-
-/******
- * this file must only be included within a Module obj
- */
-if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
-
-/*******
- * assign the instructor and admin privileges to the constants.
- */
-define('AT_PRIV_WORDPRESS',       $this->getPrivilege());
-define('AT_ADMIN_PRIV_WORDPRESS', $this->getAdminPrivilege());
-
-/*******
- * create a side menu box/stack.
- */
-//$this->_stacks['wordpress'] = array('title_var'=>'wordpress', 'file'=>'mods/wordpress/side_menu.inc.php');
-// ** possible alternative: **
-// $this->addStack('wordpress', array('title_var' => 'wordpress', 'file' => './side_menu.inc.php');
-
-/*******
- * create optional sublinks for module "detail view" on course home page
- * when this line is uncommented, "mods/wordpress/sublinks.php" need to be created to return an array of content to be displayed
- */
-$this->_list['wordpress'] = array('title_var'=>'wordpress','file'=>'mods/wordpress/sublinks.php');
-
-// Uncomment for tiny list bullet icon for module sublinks "icon view" on course home page
-$this->_pages['mods/wordpress/index.php']['icon']      = 'mods/wordpress/wordpress_icon_sm.png';
-
-// Uncomment for big icon for module sublinks "detail view" on course home page
-//$this->_pages['mods/wordpress/index.php']['img']      = 'mods/wordpress/wordpress.jpg';
-
-// ** possible alternative: **
-// the text to display on module "detail view" when sublinks are not available
-$this->_pages['mods/wordpress/index.php']['text']      = _AT('wordpress_text');
-
-/*******
- * if this module is to be made available to students on the Home or Main Navigation.
- */
-$_group_tool = $_student_tool = 'mods/wordpress/index.php';
-
-/*******
- * add the admin pages when needed.
- */
-if (admin_authenticate(AT_ADMIN_PRIV_WORDPRESS, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
-       $this->_pages[AT_NAV_ADMIN] = array('mods/wordpress/index_admin.php');
-       $this->_pages['mods/wordpress/index_admin.php']['title_var'] = 'wordpress';
-       $this->_pages['mods/wordpress/index_admin.php']['parent']    = AT_NAV_ADMIN;
-}
-
-/*******
- * instructor Manage section:
- */
-$this->_pages['mods/wordpress/index_instructor.php']['title_var'] = 'wordpress';
-$this->_pages['mods/wordpress/index_instructor.php']['parent']   = 'tools/index.php';
-// ** possible alternative: **
-// $this->pages['./index_instructor.php']['title_var'] = 'wordpress';
-// $this->pages['./index_instructor.php']['parent']    = 'tools/index.php';
-
-/*******
- * student page.
- */
-$this->_pages['mods/wordpress/index.php']['title_var'] = 'wordpress';
-$this->_pages['mods/wordpress/index.php']['img']       = 'mods/wordpress/wordpress_logo.png';
-
-/* public pages */
-//$this->_pages[AT_NAV_PUBLIC] = array('mods/wordpress/index_public.php');
-//$this->_pages['mods/wordpress/index_public.php']['title_var'] = 'wordpress';
-//$this->_pages['mods/wordpress/index_public.php']['parent'] = AT_NAV_PUBLIC;
-
-/* my start page pages */
-$this->_pages[AT_NAV_START]  = array('mods/wordpress/index_mystart.php');
-$this->_pages['mods/wordpress/index_mystart.php']['title_var'] = 'wordpress';
-$this->_pages['mods/wordpress/index_mystart.php']['parent'] = AT_NAV_START;
-
-function wordpress_get_group_url($group_id) {
-       return 'mods/wordpress/index.php';
-}
-
-?>
\ No newline at end of file