fix to broker welcome
Showing
2 changed files
with
8 additions
and
3 deletions
| ... | @@ -147,9 +147,14 @@ | ... | @@ -147,9 +147,14 @@ |
| 147 | <?= _("BROKER RESOURCE CENTRE"); ?> | 147 | <?= _("BROKER RESOURCE CENTRE"); ?> |
| 148 | </div> | 148 | </div> |
| 149 | <div id='sault'> | 149 | <div id='sault'> |
| 150 | <span class="username" style="text-transform:uppercase;"><?= _("Welcome,") ?> <?= esc_html($current_user->user_firstname) . " " . esc_html($current_user->user_lastname) ?> | 150 | <span class="username" style="text-transform:uppercase;"> |
| 151 | <?php if(!empty($current_user->user_firstname)) { ?> | ||
| 152 | <?= _("Welcome").", ". esc_html($current_user->user_firstname) . " " . esc_html($current_user->user_lastname) ?> | ||
| 153 | <?php } else { ?> | ||
| 154 | <?= _("Welcome") ?> | ||
| 155 | <?php } ?> | ||
| 151 | </span> | 156 | </span> |
| 152 | <a class='logout-btn' href='http://localhost:3000/wp-login.php?action=logout' target='_blank'>Log Out</a> | 157 | <a class='logout-btn' href='/wp-login.php?action=logout' target='_blank'>Log Out</a> |
| 153 | </div> | 158 | </div> |
| 154 | </header> | 159 | </header> |
| 155 | <button class='mobile-btn'></button> | 160 | <button class='mobile-btn'></button> | ... | ... |
| ... | @@ -192,7 +192,7 @@ function resources_fav(){ | ... | @@ -192,7 +192,7 @@ function resources_fav(){ |
| 192 | </table> | 192 | </table> |
| 193 | <?php } else { ?> | 193 | <?php } else { ?> |
| 194 | <span class='fav-border-top'></span> | 194 | <span class='fav-border-top'></span> |
| 195 | <p>Curabitur molestie sapien vel magna rhoncus, varius facilisis lacus ullamcorper. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | 195 | <p><?= _("Curabitur molestie sapien vel magna rhoncus, varius facilisis lacus ullamcorper. Lorem ipsum dolor sit amet, consectetur adipiscing elit.") ?></p> |
| 196 | <?php } ?> | 196 | <?php } ?> |
| 197 | </div> | 197 | </div> |
| 198 | <?php endif; | 198 | <?php endif; | ... | ... |
-
Please register or sign in to post a comment