public function getCurrentRequestOutput()
 {
     if (empty($this->path)) {
         \Redirect::withoutMessage(\Scope::url("home"));
     }
     $this->variables["path"] = $this->getApplicationVariableValue("path");
     $this->variables["siteTitle"] = \Scope::$domain->site_name;
     $this->getToolbar()->getNav()->getContent()->getLayout();
     if (empty(trim($this->variables['content'])) && !empty($this->current['children'])) {
         \Redirect::withoutMessage($this->current['children'][0]['href']);
     }
     $this->active[2] = $this->_findActiveNavItemAtLevel($this->nav, 2);
     if (@$this->active[2]["data"]["meta"]->sidebar == true) {
         $this->variables["sidebar"] = $this->_buildSidebar($this->active[2]);
     }
     if (!file_exists($this->current["file"])) {
         if (!empty($this->current["children"])) {
             \Redirect::withoutMessage(Scope::url($this->current["children"][0]["href"]));
         } else {
             \EventTower::fire("app.render.getAlternativeContent", ["app" => &$this, "reason" => ["status" => 404, "message" => "Content not Found"]]);
         }
     } else {
         $this->page()->body["content"] = (string) $this;
     }
     return $this;
 }
		<?php 
        }
        ?>

	<?php 
    }
    ?>

	<?php 
}
?>

</div>

<a class="btn btn-success btn-block" href="<?php 
echo Scope::url("api/explorer");
?>
">

	<br />

	<?php 
echo UI_Icon::create("material", "code", "xxl");
?>

	<br />

	<span class="h4">Explore the API interactively</span>

	<br />
	<div class="col-xs-7">

		<h3><a class="text-blue-grey text-900" href="<?php 
echo Scope::url("");
?>
"><?php 
echo $siteTitle;
?>
</a></h3>

	</div>

	<div class="col-xs-5">

		<form role="form" class="form-inline" method="post" action="<?php 
echo Scope::url("search");
?>
">

			<div class="form-group material full-width">
				<input type="text" name="query" class="form-control text-blue-grey text-900" placeholder="Search" value="<?php 
echo @$_POST["query"];
?>
">
				<button class="btn bg-blue-grey bg-900" type="submit">
					<i class="icon material-icons">search</i>
				</button>
			</div>

		</form>
						<ul class="list-level-2">

						<?php 
        foreach ($primary['children'] as $secondary) {
            ?>

							<li role="presentation" class="<?php 
            if ($secondary['active']) {
                echo 'active current';
            }
            ?>
">

								<a href="<?php 
            echo Scope::url($secondary['href']);
            ?>
">
									<?php 
            echo $secondary['name'];
            ?>
								</a>

							</li>

						<?php 
        }
        ?>

						</ul>