3 * doesn't allow this file to be loaded with a browser.
\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }
\r
8 * this file must only be included within a Module obj
\r
10 //if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
\r
13 * assign the instructor and admin privileges to the constants.
\r
15 //define('AT_PRIV_ATOPENCAPS', $this->getPrivilege());
\r
16 //define('AT_ADMIN_PRIV_ATOPENCAPS', $this->getAdminPrivilege());
\r
18 // Add menu item into "Manage" => "Content"
\r
19 $this->_pages['mods/_core/content/index.php']['children'] = array('mods/AtOpenCaps/index.php');
\r
23 * create a side menu box/stack.
\r
25 //$this->_stacks['AtOpenCaps'] = array('title_var'=>'AtOpenCaps', 'file'=>'mods/AtOpenCaps/side_menu.inc.php');
\r
26 // ** possible alternative: **
\r
27 //$this->addStack('OpenCaps', array('title_var' => 'OpenCaps', 'file' => './side_menu.inc.php');
\r
28 //$this->addStack('OpenCaps', array('title_var' => 'OpenCaps', 'file' => 'side_menu.inc.php');
\r
31 * if this module is to be made available to students on the Home or Main Navigation.
\r
33 $_group_tool = $_student_tool = 'mods/AtOpenCaps/index.php';
\r
36 * add the admin pages when needed.
\r
38 if (admin_authenticate(AT_ADMIN_PRIV_CMSMS_FEUSERS, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
\r
39 $this->_pages[AT_NAV_ADMIN] = array('mods/AtOpenCaps/index_admin.php');
\r
40 $this->_pages['mods/AtOpenCaps/index_admin.php']['title_var'] = 'Captioning';
\r
41 $this->_pages['mods/AtOpenCaps/index_admin.php']['parent'] = AT_NAV_ADMIN;
\r
46 * instructor Manage section:
\r
48 //$this->_pages['mods/AtOpenCaps/index_instructor.php']['title_var'] = 'AtOpenCaps';
\r
49 //$this->_pages['mods/AtOpenCaps/index_instructor.php']['parent'] = 'tools/index.php';
\r
50 // ** possible alternative: **
\r
51 // $this->pages['./index_instructor.php']['title_var'] = 'AtOpenCaps';
\r
52 // $this->pages['./index_instructor.php']['parent'] = 'tools/index.php';
\r
57 // adding module to content edit page
\r
58 //$this->_pages['mods/AtOpenCaps/index_mystart.php']['title'] = 'edit_content_opencaps';
\r
59 //$this->_pages['mods/AtOpenCaps/index_mystart.php']['parent'] = 'mods/_core/editor/edit_content.php';
\r
60 //$this->_pages['mods/AtOpenCaps/index_instructor.php']['guide'] = 'instructor/?p=content_edit.php';
\r
64 $this->_pages['mods/_core/content/index.php']['children'] = array('mods/AtOpenCaps/index.php');
\r
70 // this not working for some reason; and breaking the shift of AT language compatibility
\r
71 //$this->_pages['mods/AtOpenCaps/index.php']['title_var'] = _AT('atoc_moduleName');
\r
73 $this->_pages['mods/AtOpenCaps/index.php']['title_var'] = 'Captioning';
\r
74 $this->_pages['mods/AtOpenCaps/index.php']['img'] = 'mods/AtOpenCaps/images/AtOpenCaps.png';
\r
78 //$this->_pages[AT_NAV_PUBLIC] = array('mods/AtOpenCaps/index_public.php');
\r
79 //$this->_pages['mods/AtOpenCaps/index_public.php']['title_var'] = 'AtOpenCaps';
\r
80 //$this->_pages['mods/AtOpenCaps/index_public.php']['parent'] = AT_NAV_PUBLIC;
\r
82 /* my start page pages */
\r
83 //$this->_pages[AT_NAV_START] = array('mods/AtOpenCaps/index_mystart.php');
\r
84 //$this->_pages['mods/AtOpenCaps/index_mystart.php']['title_var'] = 'AtOpenCaps';
\r
85 //$this->_pages['mods/AtOpenCaps/index_mystart.php']['parent'] = AT_NAV_START;
\r
87 function AtOpenCaps_get_group_url($group_id) {
\r
88 return 'mods/AtOpenCaps/index.php';
\r