<?php
if (!defined('AT_INCLUDE_PATH')) { exit; }
if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }

if (!defined('AT_PRIV_CONTENT')) {
	define('AT_PRIV_CONTENT', $this->getPrivilege());
}
$_student_tool = 'mods/_core/imscp/export.php';
global $_custom_css;
$_custom_css = AT_BASE_HREF."jscripts/infusion/components/inlineEdit/css/InlineEdit.css";

//side menu dropdowns
$this->_stacks['menu_menu'] = array('title_var'=>'menu_menu', 'file'=>AT_INCLUDE_PATH.'html/dropdowns/menu_menu.inc.php');
$this->_stacks['related_topics'] = array('title_var'=>'related_topics', 'file'=>AT_INCLUDE_PATH.'html/dropdowns/related_topics.inc.php');
$this->_stacks['search'] = array('title_var'=>'search', 'file'=>AT_INCLUDE_PATH.'html/dropdowns/search.inc.php');


$this->_pages['search.php']['title_var']      = 'search';

$this->_pages['mods/_core/content/index.php']['title_var'] = 'content';
$this->_pages['mods/_core/content/index.php']['parent']    = 'tools/index.php';
$this->_pages['mods/_core/content/index.php']['img']       = 'mods/_core/content/home-content.png';
$this->_pages['mods/_core/content/index.php']['guide']     = 'instructor/?p=content.php';
$this->_pages['mods/_core/content/index.php']['children']  = array('mods/_core/editor/add_content.php', 'mods/_core/editor/arrange_content.php', 'mods/_core/imscp/index.php');

$this->_pages['mods/_core/editor/add_content.php']['title_var']    = 'add_content';
$this->_pages['mods/_core/editor/add_content.php']['parent']   = 'mods/_core/content/index.php'; 
$this->_pages['mods/_core/editor/add_content.php']['guide']     = 'instructor/?p=creating_editing_content.php';

$this->_pages['mods/_core/editor/arrange_content.php']['title_var']    = 'arrange_content';
$this->_pages['mods/_core/editor/arrange_content.php']['parent']   = 'mods/_core/content/index.php';
$this->_pages['mods/_core/editor/arrange_content.php']['guide']     = 'instructor/?p=arrange_content.php';

$this->_pages['mods/_core/editor/edit_content.php']['title_var'] = 'edit_content';
$this->_pages['mods/_core/editor/edit_content.php']['parent']    = 'mods/_core/content/index.php';
$this->_pages['mods/_core/editor/edit_content.php']['guide']     = 'instructor/?p=content_edit.php';

$this->_pages['mods/_core/editor/preview.php']['title_var'] = 'preview';
$this->_pages['mods/_core/editor/preview.php']['parent']    = 'mods/_core/content/edit_content.php';

$this->_pages['mods/_core/editor/accessibility.php']['title_var'] = 'accessibility';
$this->_pages['mods/_core/editor/accessibility.php']['parent']    = 'mods/_core/content/edit_content.php';

//instructors
$this->_pages['mods/_core/imscp/index.php']['title_var'] = 'content_packaging';
$this->_pages['mods/_core/imscp/index.php']['parent']    = 'mods/_core/content/index.php';
$this->_pages['mods/_core/imscp/index.php']['guide']     = 'instructor/?p=content_packages.php';

//students
$this->_pages['mods/_core/imscp/export.php']['title_var'] = 'export_content';
$this->_pages['mods/_core/imscp/export.php']['img']       = 'images/home-export_content.png';
$this->_pages['mods/_core/imscp/export.php']['text']      = _AT('export_content_text');
$this->_pages['mods/_core/imscp/export.php']['guide']     = 'general/?p=export_content.php';


if (!isset($_GET['cid']) && !isset($_POST['cid'])) {
	$this->_pages['mods/_core/editor/edit_content_folder.php']['title_var'] = 'add_content_folder';
} else {
	$this->_pages['mods/_core/editor/edit_content_folder.php']['title_var'] = 'edit_content_folder';
}
if($_SESSION['is_admin'] > 0 || authenticate(AT_PRIV_CONTENT, TRUE)){	
    $cid = intval($_GET['cid']);
    $_pages_i['mods/_core/editor/edit_content.php']['title_var'] = 'edit_content';
    $_pages_i['mods/_core/editor/edit_content.php']['other_parent']   = 'content.php';
	$_pages_i['mods/_core/editor/add_content.php']['title_var'] = 'add_content';
	$_pages_i['mods/_core/editor/add_content.php']['other_parent']    = 'content.php';
    $_pages_i['mods/_core/editor/arrange_content.php']['title_var'] = 'arrange_content';
    $_pages_i['mods/_core/editor/arrange_content.php']['other_parent']   = 'content.php';
    $_pages_i['mods/_core/imscp/index.php']['title_var'] = 'export_content';
    $_pages_i['mods/_core/imscp/index.php']['other_parent']   = 'content.php';
    $_pages_i['content.php']['children']  = array('mods/_core/editor/edit_content.php','mods/_core/editor/add_content.php', 'mods/_core/editor/arrange_content.php', 'mods/_core/imscp/index.php');
    $_pages['content.php']['children']  = array();
    $_pages_i['mods/_core/editor/add_content.php']['title_var'] = 'add_content';
	$_pages_i['mods/_core/editor/add_content.php']['parent']    = 'index.php';
    $_pages_i['index.php']['children']  = array('mods/_core/editor/add_content.php', 'mods/_core/properties/course_properties.php');
    $_pages_i['mods/_core/editor/add_content.php']['children'] = array();
    $_pages['index.php']['children']  = array();

}
$this->_pages['mods/_core/editor/edit_content_folder.php']['parent']    = 'mods/_core/content/index.php';

$this->_pages['mods/_core/editor/delete_content.php']['title_var'] = 'delete_content';
$this->_pages['mods/_core/editor/delete_content.php']['parent']    = 'mods/_core/content/index.php';

?>