diff options
author | valentineus <valentineus@gmail.com> | 2016-09-14 00:30:05 +0300 |
---|---|---|
committer | valentineus <valentineus@gmail.com> | 2016-09-14 00:30:05 +0300 |
commit | 288980ceb35d5ace51284cfdf176e9acb5f7bb39 (patch) | |
tree | 97b9f6779fae3a630a42951e1a85b7eeced93375 /test/components/navbar.php | |
parent | 4d0e9148a3551e0af6fa7476021c9ef052149c71 (diff) | |
download | iii-module-288980ceb35d5ace51284cfdf176e9acb5f7bb39.tar.xz iii-module-288980ceb35d5ace51284cfdf176e9acb5f7bb39.zip |
Alpha version
Diffstat (limited to 'test/components/navbar.php')
-rw-r--r-- | test/components/navbar.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/components/navbar.php b/test/components/navbar.php new file mode 100644 index 0000000..ed858b5 --- /dev/null +++ b/test/components/navbar.php @@ -0,0 +1,36 @@ +<!-- Start navigation bar -->
+<nav class="navbar navbar-default navbar-fixed-top">
+ <div class="container">
+ <div class="collapse navbar-collapse">
+ <ul class="nav navbar-nav">
+ <li>
+ <!-- Home project -->
+ <a href="https://github.com/valentineus/Module-III-API"><span class="github" aria-hidden="true"></span> GitHub.com</a>
+ </li>
+ </ul>
+ <!-- The right side of the navigation bar -->
+ <ul class="nav navbar-nav navbar-right">
+ <li>
+ <p class="navbar-text" data-toggle="popover" data-placement="auto" data-trigger="hover" data-content="Cookies must be enabled in your browser!"><?php
+ // Check the ability to use Cookie
+ if (SetCookie("TestCookie", "Success")) { ?>
+ <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
+ <?php } else { ?>
+ <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
+ <?php }
+ ?> Cookie</p>
+
+ <p class="navbar-text" data-toggle="popover" data-placement="auto" data-trigger="hover" data-content="Before the work necessary to configure!"><?php
+ // Checking the portal settings
+ if (isset($_COOKIE['BOT_TOKEN']) OR isset($_POST['BOT_TOKEN'])) { ?>
+ <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
+ <?php } else { ?>
+ <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
+ <?php }
+ ?> Settings</p>
+ </li>
+ </ul><!-- navbar-right -->
+ </div>
+ </div><!-- container -->
+</nav>
+<!-- End navigation bar -->
|