<?php
/**
 * -------------------------------------------------------------------------
 *
 * Snippet for rendering a sidebar on the left.
 *
 * -------------------------------------------------------------------------
 */

?>  <nav class="menu">
        <a class="home-link"     href="<?php printSiteUrl ( ) ?>"        > Home     </a>
        <a class="channels-link" href="<?php printSiteUrl ( ) ?>channels"> Channels </a>

        <a class="error404-link"
           href="<?php printSiteUrl ( ) ?>abracadabra"
           rel="nofollow"> Error 404 </a>

        <a class="servo"
           href="<?php printSiteUrl ( ) ?>sitemap"
           rel="nofollow"
           target="_blank"> Sitemap </a>

        <a class="servo"
           href="<?php printSiteUrl ( ) ?>robots.txt"
           rel="nofollow"
           target="_blank"> Robots.txt </a>

        <a class="servo no-gap"
           href="<?php printSiteUrl ( ) ?>polls/api/v1/random"
           rel="nofollow"
           target="_blank"
           title="Random message from all database"> Checkpoint All </a>

        <a class="servo"
           href="<?php printSiteUrl ( ) ?>polls/api/v1/random/from/1"
           rel="nofollow"
           target="_blank"
           title="Random message from first channel only"> Checkpoint One </a>

        <div>You can click a checkpoint above to see it as JSON. The <b>Checkpoint All</b> will also be updated every 10 seconds below to demonstrate how a polling works.</div>

        <div class="idle"
             data-poller="api"
             data-version="v1"
             data-command="random"
             data-options=""
             data-timer="10"
             data-success="displayRandom"></div>
    </nav>
