Add optional navbar / menu bar
diff --git a/templates/register.htm b/templates/register.htm
index d6e14b1..e92b69b 100644
--- a/templates/register.htm
+++ b/templates/register.htm
@@ -9,16 +9,14 @@
<?php echo $SERVICE_NAME; ?>
</h1>
</div>
- <!--
- <div class="col-md-12 bold navbar-expand-lg mt-5 ml-5 pl-5 bg-primary" data-bs-theme="dark">
- <ul class="nav nav-pills justify-content-start fs-4">
- <li class="nav-item"><a href="https://korpus.cz/icc" class="nav-link">Home</a></li>
- <li class="nav-item"><a href="#" class="nav-link active" aria-current="page">Sign up</a></li>
- <li class="nav-item"><a href="#" class="nav-link">Query</a></li>
- </ul>
- </div>
- -->
- <div class="col-md-12 justify-content-start align-self-center pb-1 float-start">
+ <?php if( isset($MENU_BAR) ) {
+ $menubar_path = stream_resolve_include_path($MENU_BAR);
+ if ($menubar_path !== false) {
+ include $menubar_path;
+ }
+ }
+ ?>
+ <div class="col-12 justify-content-start align-self-center pb-1 float-start">
<h2 class="text-center fw-bold">
<?php echo $SERVICE_ACRONYM;?> Registration
</h2>
@@ -56,7 +54,8 @@
<input pattern="[^\s].{<?php echo ($VAL_USER->min_first_name - 1) . ','.$VAL_USER->max_first_name;?>}" required title="At least 2 not whitespace characters" name="first_name" type="text" id="form3Example1" class="form-control fs-4 <?php if(isset($error) && $error && !isset($_POST['first_name'])){echo 'border-danger';}?>"
placeholder="Jane" value="<?php echo isset($_POST['first_name']) ? htmlspecialchars($_POST['first_name']) : '' ?>" />
<div class="invalid-feedback">
- Please provide a first name with at least <?php echo $VAL_USER->min_first_name ?> characters, not starting with white spaces.
+ Please provide a first name with at least
+ <?php echo $VAL_USER->min_first_name ?> characters, not starting with white spaces.
</div>
</div>
</div>
@@ -66,7 +65,8 @@
<input pattern="[^\s].{<?php echo ($VAL_USER->min_last_name - 1). ','.$VAL_USER->max_last_name;?>}" required title="At least 2 not whitespace characters" name="last_name" type="text" id="form3Example2" class="form-control fs-4 <?php if(isset($error) && $error && !isset($_POST['last_name'])){echo 'border-danger';}?>"
placeholder="Doe" value="<?php echo isset($_POST['last_name']) ? htmlspecialchars($_POST['last_name']) : '' ?>" />
<div class="invalid-feedback">
- Please provide a last name with at least <?php echo $VAL_USER->min_last_name ?> characters, not starting with white spaces.
+ Please provide a last name with at least
+ <?php echo $VAL_USER->min_last_name ?> characters, not starting with white spaces.
</div>
</div>
</div>