<p>dbnav.php has hardcoding for join.php & verify_email.php in templates.</p>
<p>1st problem would be that they are coded as nav-items instead of dropdown-items in DropdownString.</p>
<p>I would like to propose returning nothing if conditions are false, instead of returning something specific if it is true.</p>
<p>This would remove the elseifs and make it fall in else in both functions and do an if check and return nothing if it should not be putting the link in the navigation.</p>
<p>This solves the problem as they would no longer be hardcoded with an error, as well as not have special conditions to return a specific string.</p>
<p>It would end up looking like this:</p>
<p>https://gist.github.com/bangingheads/0a16b16dfea72bb3c1ab12336560d6f8</p>