Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Llink to the new Events page in the header #2179

Merged
merged 3 commits into from
Jul 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions www/templates/layouts/includes/wpt-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function addTab($tabName, $tabUrl, $addClass = '')
<summary class="wptheader_menubtn">Menu:</summary>
<nav>
<ul class="wptheader_nav">

<?= addTab('Start Test', '/'); ?>

<?php if (!Util::getSetting('disableTestlog')) : ?>
Expand Down Expand Up @@ -95,8 +96,10 @@ function addTab($tabName, $tabUrl, $addClass = '')
</li>



<?= addTab('Pricing', '/signup'); ?>


<li class="wptheader_nav_menu">
<details>
<summary><span>Resources</span></summary>
Expand All @@ -105,7 +108,7 @@ function addTab($tabName, $tabUrl, $addClass = '')
<ul>
<li class="wptheader_nav_menu_link"><a href="https://docs.webpagetest.org/">Docs</a></li>
<li class="wptheader_nav_menu_link"><a href="https://blog.webpagetest.org/">Blog</a></li>
<li class="wptheader_nav_menu_link"><a href="https://www.webpagetest.org/events/wpt-upcoming-events-2022">Events</a></li>
<li class="wptheader_nav_menu_link"><a href="https://product.webpagetest.org/events/">Events</a></li>
<?php if (Util::getSetting('forums_url')) : ?>
<li class="wptheader_nav_menu_link"><a href="<?= Util::getSetting('forums_url') ?>">Forums</a></li>
<?php endif; //(Util::getSetting('forums_url')):
Expand All @@ -126,6 +129,7 @@ function addTab($tabName, $tabUrl, $addClass = '')
</li>
<?= addTab('About', '/about'); ?>
</ul>

<ul class="wptheader_acct">

<?php
Expand All @@ -151,7 +155,7 @@ function addTab($tabName, $tabUrl, $addClass = '')
<?php else : ?>
<li><a href="/login">Login</a></li>
<li><a href='/signup'>Sign-up</a></li>
<?php endif; //$is_logged_in
<?php endif; //$is_logged_in
?>
<?php
} elseif (isset($user)) {
Expand Down