X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=out%2Fdist%2Ffunctions.php;fp=out%2Fdist%2Ffunctions.php;h=0000000000000000000000000000000000000000;hb=a3ee9fb267bbf0f639d711287a25dd31f0ab0fea;hp=f96e4b8865c00116c87516d001c18072dc80b655;hpb=4031b5b71a6f9820ca38fd3a743d9f27ee8ade2b;p=mw_pages diff --git a/out/dist/functions.php b/out/dist/functions.php deleted file mode 100644 index f96e4b8..0000000 --- a/out/dist/functions.php +++ /dev/null @@ -1,112 +0,0 @@ -url("pages/view/page", array("id" => $page["id"]))."\">".$page["title"]."\n"; - if($path_item["id"] == $page["id"]){ - if($sub_content = pages_arbo_navig_lis($env, $page, $ariane)){ - $content .= - "\n"; - } - } - } - } - else{ - foreach($arbo["subs"] as $page){ - $content .= "
  • url("pages/view/page", array("id" => $page["id"]))."\">".$page["title"]."
  • \n"; - } - } - } - return $content; - } - endif; - - if(!function_exists("pages_arbo_edit_select_options")) : - function pages_arbo_edit_select_options($arbo, $id_page, $id_parent, $indent_increment = "", $indent = ""){ - $arbo["id"] = $arbo["id"] ? $arbo["id"] : ""; - $content = - "" - .$indent.($arbo["id"] ? $arbo["title"] : "Aucune") - .""; - if($arbo["subs"]){ - $indent .= $indent_increment; - foreach($arbo["subs"] as $i => $sub){ - if(!isset($id_page) || $id_page != $sub["id"]){ - $content .= pages_arbo_edit_select_options($sub, $id_page, $id_parent, $indent_increment, $indent); - } - } - } - return $content; - } - endif; - - if(!function_exists("pages_arbo_list_select_options")) : - function pages_arbo_list_select_options($env, $etat, $arbo, $current_page_id, $indent_increment = "", $indent = ""){ - $arbo["id"] = isset($arbo["id"]) ? $arbo["id"] : ""; - $content = - "url($etat, array("parent" => $arbo["id"]))."\"" - .(isset($current_page_id) && ($arbo["id"] == $current_page_id) ? " selected=\"selected\"" : "") - .">" - .$indent.($arbo["id"] ? $arbo["title"] : "Racine des pages") - .""; - if($arbo["subs"]){ - $indent .= $indent_increment; - foreach($arbo["subs"] as $i => $sub){ - $content .= pages_arbo_list_select_options($env, $etat, $sub, $current_page_id, $indent_increment, $indent); - } - } - return $content; - } - endif; - - if(!function_exists("pages_arbo_start_select_options")) : - function pages_arbo_start_select_options($env, $arbo, $current_start_action, $current_start_action_params, $indent_increment = "", $indent = ""){ - $arbo["id"] = isset($arbo["id"]) ? $arbo["id"] : ""; - if($arbo["id"]){ - $content = - "" - .$indent.$arbo["title"] - .""; - } - if($arbo["subs"]){ - $indent .= $indent_increment; - $indent .= "  "; - foreach($arbo["subs"] as $i => $sub){ - $content .= pages_arbo_start_select_options($env, $sub, $current_start_action, $current_start_action_params, $indent_increment, $indent); - } - } - return $content; - } - endif; - -?> \ No newline at end of file