Skip to content

Commit 02fecde

Browse files
committed
Add Code of Conduct pages
1 parent 233b26b commit 02fecde

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

themes/jquery.org/page-conduct.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
/**
3+
* Template Name: Code of Conduct Sidebar Template
4+
* Description: A Page Template that adds a sidebar to pages
5+
*/
6+
7+
get_header(); ?>
8+
9+
<div id="primary" class="twelve columns">
10+
<div id="content" role="main">
11+
12+
<?php the_post(); ?>
13+
<?php if ( !count( get_post_meta( $post->ID, "hide_title" ) ) ) : ?>
14+
<h1 class="entry-title"><?php the_title(); ?></h1>
15+
<hr>
16+
<?php endif; ?>
17+
18+
<?php get_template_part( 'content', 'page' ); ?>
19+
20+
<?php comments_template( '', true ); ?>
21+
22+
</div><!-- #content -->
23+
24+
<div id="sidebar" class="sidebar-right" role="complementary">
25+
<aside class="widget">
26+
<h3>jQuery Foundation Code of Conduct</h3>
27+
<ul>
28+
<li><a href="https://jquery.org/conduct/">Code of Conduct</a></li>
29+
<li><a href="https://jquery.org/conduct/committee/">Committee</a></li>
30+
<li><a href="https://jquery.org/conduct/faq/">Frequently Asked Questions</a></li>
31+
<li><a href="https://jquery.org/conduct/reporting/">Reporting Guide</a></li>
32+
<li><a href="https://jquery.org/conduct/enforcement-manual/">Enforcement Manual</a></li>
33+
<li><a href="https://jquery.org/conduct/changes/">Changes</a></li>
34+
</ul>
35+
</aside>
36+
37+
<h2>License</h2>
38+
<p>
39+
All content on this page is licensed under a
40+
<a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution </a> license.
41+
</p>
42+
<p>
43+
<a href="http://creativecommons.org/licenses/by/3.0/">
44+
<img src="//i.creativecommons.org/l/by/3.0/88x31.png" height="31" width="88" alt="CC-by">
45+
</a>
46+
</p>
47+
</div>
48+
</div><!-- #primary -->
49+
50+
<?php get_footer(); ?>

themes/jquery/header.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
<li><a href="https://jquery.org/join/">Join</a></li>
9494
<li><a href="https://jquery.org/members/">Members</a></li>
9595
<li><a href="https://jquery.org/team/">Team</a></li>
96+
<li><a href="https://jquery.org/conduct/">Conduct</a></li>
9697
<li><a href="http://brand.jquery.org/">Brand Guide</a></li>
9798
<li><a href="https://jquery.org/donate/">Donate</a></li>
9899
</ul>

themes/jquery/menu-header.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function menu_header_jquery_org() {
9494
'https://jquery.org/members/' => 'Members',
9595
'https://jquery.org/support/' => 'Support',
9696
'https://jquery.org/team/' => 'Team',
97+
'https://jquery.org/conduct/' => 'Conduct',
9798
'http://meetings.jquery.org/' => 'Meetings',
9899
'https://jquery.org/history/' => 'History',
99100
'http://brand.jquery.org/' => 'Brand Guide',

0 commit comments

Comments
 (0)