/** * Renders appropriate megamenu options in the admin menu builder * * @param int $depth The depth of the navigation item * @param int $nav_id The id of the navigation item * @param int $nav_parent_id The id of the item's parent or 0 if none */ public function render_megamenu_options($depth, $nav_id) { echo '<div class="clear"></div>'; echo '<div class="tf_megamenu_optcontainer">'; echo '<div class="tf_megamenu_commun_opts">'; if ($depth <= $this->max_depth) { echo TF_MEGAMENU_OPTHELP::generate_commun_options_html($depth, $nav_id); } echo '<div class="clear"></div>'; echo '</div>'; echo '<div class="tf_megamenu_uncommun_opts">'; if ($depth === $this->magic_depth) { $template = TF_MEGAMENU_OPTHELP::get_needed_template($nav_id); if ($template !== '') { echo $this->generate_template_options_html($template, $nav_id); } } echo '</div>'; // end .tf_megamenu_uncommun_opts div echo '</div>'; // end .tf_megamenu_optcontainer div }