X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=lib%2Fplugins%2Fwww.php;h=7811beaa9a3a8fdf9aa0e872cac777aa4632e65d;hp=4ef4c993469b617bcbb1cf27a890f5110bc167e9;hb=afe6e413d073cd29e366b0642ef0928db712c8e5;hpb=2502c56617641015719878906907e91354aa3fd7 diff --git a/lib/plugins/www.php b/lib/plugins/www.php index 4ef4c99..7811bea 100644 --- a/lib/plugins/www.php +++ b/lib/plugins/www.php @@ -1,22 +1,118 @@ "; + + // top + if(isset($calls["top_function"])) { + $func = $calls["top_function"]; + $func(); + } else { + www_top(); } - foreach($webComponents as $function) { - if(function_exists($function)) $function(); + echo ""; + + // left menu + if(isset($calls["left_menu_function"])) { + $func = $calls["left_menu_function"]; + $func(); + } else { + www_leftmenu(); } - foreach($postWebComponents as $function) { - if(function_exists($function)) $function(); + echo ""; + + // contentpane + if(isset($calls["content_pane_function"])) { + $func = $calls["content_pane_function"]; + $func(); + } else { + www_contentpane(); } + + echo ""; + + // footer + if(isset($calls["footer_function"])) { + $func = $calls["footer_function"]; + $func(); + } else { + www_footer(); + } + + echo ""; + + // page end + if(isset($calls["page_end_function"])) { + $func = $calls["page_end_function"]; + $func(); + } else { + www_pageend(); + } + +} + +function www_header() +{ + echo ""; +} + +function www_top() +{ + echo "i be a top, yar"; +} + +function www_leftmenu() +{ + echo "i be a menu, yar"; +} + +function www_contentpane() +{ + echo "i be a content pane, yar"; +} + +function www_footer() +{ + echo "i be a footer, yar"; +} + + +function www_pageend() +{ + echo ""; } ?> \ No newline at end of file