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

define('AT_ADMIN_PRIV_THEMES', $this->getAdminPrivilege());

if (admin_authenticate(AT_ADMIN_PRIV_THEMES, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
	if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
		$this->_pages['admin/config_edit.php']['children']      = array('admin/themes/index.php');
		$this->_pages['admin/themes/index.php']['parent'] = 'admin/config_edit.php';
	} else {
		$this->_pages[AT_NAV_ADMIN] = array('admin/themes/index.php');
		$this->_pages['admin/themes/index.php']['parent'] = AT_NAV_ADMIN;
	}


	//admin
	$this->_pages['admin/themes/index.php']['title_var'] = 'themes';
	$this->_pages['admin/themes/index.php']['guide']     = 'admin/?p=themes.php';

	$this->_pages['admin/themes/delete.php']['title_var'] = 'delete';
	$this->_pages['admin/themes/delete.php']['parent']    = 'admin/themes/index.php';

}
?>