Skip to content

Commit 652eecb

Browse files
committed
462: Add HeroDevs support.
- add status message top of screen on homepage - add Support to navigation bar - add warning box to api pages - add styling for warning box
1 parent 4d153eb commit 652eecb

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

themes/api.jquery.com/single.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@
44
*/
55

66
get_header();
7+
8+
<div id="support-warning-box" class="warning"><svg width="20" height="20" viewBox="0 0 24 24">
9+
<circle cx="12" cy="12" r="10" fill="none" stroke="black" stroke-width="2" />
10+
<text x="50%" y="57%" dominant-baseline="middle" text-anchor="middle">i</text>
11+
</svg>&nbsp;&nbsp;This version is End-of-Life. Read more about support options&nbsp;<a href="https://jquery.com/support/">here</a>.
12+
</div>
13+
714
get_template_part( 'single', 'api' );
815
get_footer();

themes/api.jquery.com/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ a {
3434
margin-top: 0;
3535
padding-left: 1em;
3636
}
37+
38+
/* Support warning at top of API pages */
39+
40+
#support-warning-box {
41+
padding-top: 8px;
42+
padding-left: 8px;
43+
padding-bottom: 8px;
44+
display: flex;
45+
}

themes/jquery/header.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
</head>
3535
<body <?php body_class(); ?>>
3636

37-
<div id="support-message" class="support-message">
38-
<span style="">jQuery 4 is currently in beta. Soon jQuery 3 will reach EOL along with versions 1 and 2. Learn more about our&nbsp;<a href="https://jquery.com/support/">Version&nbsp;Support</a>.</span>
39-
</div>
37+
<?php if (is_front_page()) { ?>
38+
<div id="support-message" class="support-message">
39+
<span style="">jQuery 4 is currently in beta. Soon jQuery 3 will reach EOL along with versions 1 and 2. Learn more about our&nbsp;<a href="https://jquery.com/support/">Version&nbsp;Support</a>.</span>
40+
</div>
41+
<?php } ?>
4042

4143
<header>
4244
<section id="global-nav">

themes/jquery/menu-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ function menu_header_jquery_com() {
1111
'https://jquery.com/download/' => 'Download',
1212
'https://api.jquery.com/' => 'API Documentation',
1313
'https://blog.jquery.com/' => 'Blog',
14+
'https://jquery.com/support/' => 'Support',
1415
'https://plugins.jquery.com/' => 'Plugins',
1516
'https://jquery.com/browser-support/' => 'Browser Support',
16-
'https://jquery.com/support/' => 'Version Support',
1717
);
1818
}
1919

0 commit comments

Comments
 (0)