| <?php |
| |
| require_once $_SERVER['DOCUMENT_ROOT'] . '/rap/_projectCommon.php'; |
| require_once $_SERVER['DOCUMENT_ROOT'] . '/rap/developers-guide/NavigationView.php'; |
| require_once $_SERVER['DOCUMENT_ROOT'] . '/rap/developers-guide/DevGuideUtils.php'; |
| |
| $PAGE_TITLE = "RAP - Developer's Guide"; |
| $PAGE_NAV_POSITION = array( "documentation", "developers-guide" ); |
| |
| $version = DevGuideUtils::CURRENT_VERSION; |
| |
| if( isset( $_GET[ 'version' ] ) ) { |
| $version = $_GET[ 'version' ]; |
| } |
| |
| if( !array_key_exists( $version, DevGuideUtils::$versions ) ) { |
| header( 'Location: /rap/developers-guide/' ); |
| exit; |
| } |
| |
| $versionNav = array(); |
| |
| foreach( DevGuideUtils::$versions as $key => $value ) { |
| $piece; |
| if( $key == $version ) { |
| $piece = '<b>' . $key . '</b>'; |
| } else { |
| $url = '/rap/developers-guide/index.php?version=' . $key; |
| $piece = '<a href = "' . $url .'">' . $key . '</a>'; |
| } |
| $versionNav[] = $piece; |
| } |
| |
| printHeader(); |
| |
| ?> |
| |
| <div id="midcolumn"> |
| <?=implode( ' | ', $versionNav );?> |
| <h1 style = "margin-bottom: 3px" >Developer's Guide for RAP <?=$version ?></h1> |
| <?php |
| if( $version == DevGuideUtils::MASTER_VERSION ) { |
| print '<h3>Note:</h3><em>This version of RAP is currently under development and ' |
| . 'the Developers Guide may not yet reflect all changes. ' |
| . 'The New & Noteworthy entries of the <a href = "/rap/downloads/' |
| . $version |
| . '/">milestone releases</a> provide more up to date information.</em>'; |
| } |
| ?> |
| <h2>Table of contents</h2> |
| <div id="table-of-contents"> |
| <?= NavigationView::create( $version ) ?> |
| </div> |
| </div> |
| |
| <? |
| |
| printFooter(); |
| |
| ?> |