PHP Classes

File: templates/grey/_menu.phtml

Recommend this page to a friend!
  Classes of Mike Stowe   PHP RAML to HTML   templates/grey/_menu.phtml   Download  
File: templates/grey/_menu.phtml
Role: Auxiliary script
Content type: text/plain
Description: Sample output
Class: PHP RAML to HTML
Parse RAML of an API to generate documentation
Author: By
Last change:
Date: 10 years ago
Size: 624 bytes
 

Contents

Class file image Download
<h2>Documentation</h2>
   
<ul>
    <li><a href="<?php echo $_SERVER['PHP_SELF']; ?>?path=/">Index</a></li>
   
    <?php foreach ($RAML->getChildPaths('/') as $endpoint => $resource) { ?>
<li><a href="<?php echo $_SERVER['PHP_SELF']; ?>?path=<?php echo $endpoint; ?>"><?php echo $endpoint; ?></a></li>
    <?php } ?>
</ul>

<p>&nbsp;</p>

<h2>
    Server Status:
   
    <?php
    $status
= $RAML->pingStatus();
    if (
$status == 'online'): ?>
<span class="online">Online</span>
    <?php else: ?>
<span class="offline">Offline</span>
    <?php endif; ?>
</h2>

<small style="display: block; margin: -10px 0 20px 0;">Updated every 5 minutes</small>