Updates to menus.
[capital-apms.git] / html / edit.php
blob1cc30f414542c0dafdb443b557b0c539f1453360
1 <?php
2 require_once('../inc/always.php');
4 require_once('classEditor.php');
5 require_once('classLinks.php');
7 require_once('apms_menus.php');
9 // $c->stylesheets[] = "css/edit.css";
10 $page_elements = array();
12 if ( ! @include_once( "edit/$component.php" ) ) {
13 $c->messages[] = "edit/$component not found";
16 ///////////////////////////////////////////////////////
17 // From here we start rendering the page to the user...
18 ///////////////////////////////////////////////////////
19 include('page-header.php');
21 $heading_level = null;
22 foreach( $page_elements AS $k => $page_element ) {
23 echo $page_element->Render($heading_level);
24 $heading_level = 'h2';
27 include('page-footer.php');