<?php ob_start();

/** create_admin_menu()
  * Objective:
  *		Hook to create theme option page at back end.
**/
function create_admin_menu() {
	
	$role = get_role('administrator');
	if(!$role->has_cap('manage_theme')) $role->add_cap('manage_theme');

    if( function_exists('add_menu_page') ) 
		 add_menu_page (IAMD_THEME_NAME.' - '.__('settings','dt_themes'),IAMD_THEME_NAME,'manage_theme','parent','dttheme_options_page','',25);
		 
	if(function_exists('add_submenu_page'))
	 	add_submenu_page ('parent',IAMD_THEME_NAME.' - '.__("options",'dt_themes'),__('Options','dt_themes'),'manage_theme','parent','dttheme_options_page');		
}

### --- ****  create_admin_menu() *** --- ###
add_action('admin_menu', 'create_admin_menu');
require_once(get_template_directory().'/framework/theme_options/settings.php');
#ob_flush();?>