summaryrefslogtreecommitdiffstats
path: root/examples/topp.view.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-21 02:45:30 -0400
committerMalf Furious <m@lfurio.us>2018-09-21 02:45:30 -0400
commitca89b1b60fc198be1fa01a4b1499c9c75cdfdc85 (patch)
tree48b6f2f97f44fcb8e5bdcee27015581879132cfe /examples/topp.view.php
parent3424ebde9147ab5838c0433d6723c0d8b0d66c8c (diff)
downloadscrott-ca89b1b60fc198be1fa01a4b1499c9c75cdfdc85.tar.gz
scrott-ca89b1b60fc198be1fa01a4b1499c9c75cdfdc85.zip
Remove old content
Diffstat (limited to '')
-rw-r--r--examples/topp.view.php83
1 files changed, 0 insertions, 83 deletions
diff --git a/examples/topp.view.php b/examples/topp.view.php
deleted file mode 100644
index d9e0df0..0000000
--- a/examples/topp.view.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-/*
- * SCROTT Copyright (C) 2016 Malf Furious
- *
- * Scrott is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation, either version 3 of the License,
- * or (at your option) any later version.
- *
- * Scrott is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
- * License for more details.
- */
-
-?>
-
-<?php include "view/master/topp.view.php"; ?>
-
-<?php if ($mod->getCurrentUser()) { ?>
- <?php include "view/common/setting.modal.view.php"; ?>
- <?php include "view/common/newgroup.modal.view.php"; ?>
-<?php } ?>
-
-<nav class="navbar navbar-inverse navbar-fixed-top">
- <div class="container-fluid">
-
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#scrottnav" aria-expanded="false">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
-
- <a href="<?=$mod->ar()?>/" class="navbar-brand"><span class="glyphicon glyphicon-pencil"></span> Scrott</a>
- </div>
-
- <div class="collapse navbar-collapse" id="scrottnav">
- <?php if (!$mod->getCurrentUser()) { ?>
- <p class="navbar-text navbar-right"><i>Not Logged In&nbsp;</i></p>
- <?php } else { ?>
- <ul class="nav navbar-nav">
- <li><a href="<?=$mod->ap()?>"><span class="glyphicon glyphicon-refresh"></span></a></li>
-
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
- <?=(isset($mod->obj) ? $mod->obj->name : "<i>Dashboard</i>")?> <span class="caret"></span>
- </a>
-
- <ul class="dropdown-menu">
- <?php foreach ($mod->getCurrentUser()->getGroups() as $group) { ?>
- <li><a href="<?=$mod->ar()?>/<?=$group->guid?>"><?=$group->name?></a></li>
- <?php } ?>
- </ul>
- </li>
-
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-plus"></span> <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- <li><a href="#" data-toggle="modal" data-target="#newgroupModal">New Group</a></li>
- </ul>
- </li>
- </ul>
-
- <ul class="nav navbar-nav navbar-right">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
- <span class="<?=$mod->getCurrentUser()->getGlyphicon()?>"></span> <?=$mod->getCurrentUser()->getDisplayName()?> <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- <li><a href="#" data-toggle="modal" data-target="#settingModal">Settings</a></li>
- <li><a href="<?=$mod->ar()?>/logout">Log out</a></li>
- </ul>
- </li>
- </ul>
- <?php } ?>
- </div>
-
- </div>
-</nav>