Browse Source

User name in navbar now links to Portal home

Skylar Ittner 1 year ago
parent
commit
d6df9d582c
3 changed files with 5 additions and 6 deletions
  1. 2
    1
      .gitignore
  2. 1
    5
      app.php
  3. 2
    0
      settings.template.php

+ 2
- 1
.gitignore View File

@@ -1,3 +1,4 @@
1 1
 vendor
2 2
 settings.php
3
-nbproject/private
3
+nbproject/private
4
+*.sync-conflict*

+ 1
- 5
app.php View File

@@ -78,10 +78,6 @@ if (!is_empty($_GET['page'])) {
78 78
                         <a class="navbar-brand" href="app.php">
79 79
                             <?php
80 80
                             echo SITE_TITLE;
81
-                            // add breadcrumb-y thing
82
-                            //lang("home");
83
-                            //echo " <i class=\"fa fa-caret-right\"></i> ";
84
-                            //lang(PAGES[$pageid]['title']);
85 81
                             ?>
86 82
                         </a>
87 83
                     </div>
@@ -114,7 +110,7 @@ if (!is_empty($_GET['page'])) {
114 110
                             ?>
115 111
                         </ul>
116 112
                         <ul class="nav navbar-nav navbar-right">
117
-                            <li><span class="navbar-text navbar-link"><i class="fa fa-user fa-fw"></i> <?php echo $_SESSION['realname'] ?></span></li>
113
+                            <li><a href="<?php echo PORTAL_URL; ?>"><i class="fa fa-user fa-fw"></i> <?php echo $_SESSION['realname'] ?></a></li>
118 114
                             <li><a href="action.php?action=signout"><i class="fa fa-sign-out fa-fw"></i> <?php lang("sign out") ?></a></li>
119 115
                         </ul>
120 116
                     </div>

+ 2
- 0
settings.template.php View File

@@ -29,6 +29,8 @@ define("MENU_BAR_STYLE", "fixed");
29 29
 
30 30
 // URL of the Business Portal API endpoint
31 31
 define("PORTAL_API", "http://localhost/api.php");
32
+// URL of the Portal home page
33
+define("PORTAL_URL", "http://localhost/home.php");
32 34
 // Business Portal API Key
33 35
 define("PORTAL_KEY", "123");
34 36
 

Loading…
Cancel
Save