/** * Gets the default html for depths 0 & 1. * Used for dynamic tf_megamenu_optcontainer * html substitution when reordering the * admin nav menu builder * @ajax */ public function ajax_optcontainer_defaults() { if (!tf_current_user_can(array('manage_options', 'edit_theme_options'), false)) { die(__('Access denied', 'tfuse')); } $arr = TF_MEGAMENU_OPTHELP::get_optcontainer_defaults(); echo json_encode($arr); die; }