+ if(!function_exists("esc_attr")) :
+ function esc_attr($content){
+ return htmlspecialchars($content, ENT_COMPAT, "UTF-8");
+ }
+ endif;
+
+ if(!function_exists("get_menu_ul")) :
+ function get_menu_ul($menu, $indent = ""){
+ $html = "";
+ if($menu["subs"]){
+ $html .= $indent."<div class=\"menu\"><ul>\n";
+ foreach($menu["subs"] as $sub){
+ $html .= $indent." <li>\n";
+ $html .= $indent." <a href=\"".$sub["url"]."\">".$sub["intitule"]."</a>\n";
+ $html .= get_menu_ul($sub, $indent." ");
+ $html .= $indent." </li>\n";
+ }
+ $html .= $indent."</ul></div>\n";
+ }
+ return $html;
+ }
+ endif;
+