Index: comments.php
===================================================================
--- comments.php (revision 1535)
+++ comments.php (working copy)
@@ -39,7 +39,11 @@
* define wporg_developer_comment() and that will be used instead.
* See wporg_developer_comment() in inc/template-tags.php for more.
*/
- wp_list_comments( array( 'callback' => 'wporg_developer_user_note' ) );
+ if ( is_singular( 'post' ) ) {
+ wp_list_comments();
+ } else {
+ wp_list_comments( array( 'callback' => 'wporg_developer_user_note' ) );
+ }
?>
@@ -53,26 +57,32 @@
-
+
-
+
- DevHub_User_Submitted_Content::wp_editor_comments(),
- 'comment_notes_after' => '' .
- __( 'Notes should supplement code reference entries, for example examples, tips, explanations, use-cases, and best practices.', 'wporg' ) .
- '
' .
- __( 'Do not use this form for support requests, discussions, spam, bug reports, complaints, or self-promotion. Entries of this nature will be deleted.', 'wporg' ) .
- '
' .
- __( 'You can enter text and code. Use the php, js, or inline code buttons to wrap code snippets.', 'wporg' ) .
- '
' .
- sprintf( __( 'NOTE: All contributions are licensed under GFDL and are moderated before appearing on the site.', 'wporg' ), 'https://gnu.org/licenses/fdl.html' ) .
- '
',
- 'label_submit' => __( 'Add Note', 'wporg' ),
- 'must_log_in' => '' . sprintf( __( 'You must log in before being able to contribute a note.', 'wporg' ), 'https://wordpress.org/support/bb-login.php' ) . '
',
- 'title_reply' => '', //'Add Example'
- ) ); ?>
+ DevHub_User_Submitted_Content::wp_editor_comments(),
+ 'comment_notes_after' => '' .
+ __( 'Notes should supplement code reference entries, for example examples, tips, explanations, use-cases, and best practices.', 'wporg' ) .
+ '
' .
+ __( 'Do not use this form for support requests, discussions, spam, bug reports, complaints, or self-promotion. Entries of this nature will be deleted.', 'wporg' ) .
+ '
' .
+ __( 'You can enter text and code. Use the php, js, or inline code buttons to wrap code snippets.', 'wporg' ) .
+ '
' .
+ sprintf( __( 'NOTE: All contributions are licensed under GFDL and are moderated before appearing on the site.', 'wporg' ), 'https://gnu.org/licenses/fdl.html' ) .
+ '
',
+ 'label_submit' => __( 'Add Note', 'wporg' ),
+ 'must_log_in' => '' . sprintf( __( 'You must log in before being able to contribute a note.', 'wporg' ), 'https://wordpress.org/support/bb-login.php' ) . '
',
+ 'title_reply' => '', //'Add Example'
+ ) ); ?>
+
+
+
+
+
+
Index: content-post.php
===================================================================
--- content-post.php (revision 0)
+++ content-post.php (working copy)
@@ -0,0 +1,63 @@
+
+>
+
+
+
+
+
+
+
+
+ →', 'wporg' ) ); ?>
+ '
' . __( 'Pages:', 'wporg' ),
+ 'after' => '
',
+ ) );
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ', '' ); ?>
+
+
Index: functions.php
===================================================================
--- functions.php (revision 1535)
+++ functions.php (working copy)
@@ -83,6 +83,8 @@
function init() {
+ register_nav_menus();
+
add_action( 'after_switch_theme', __NAMESPACE__ . '\\add_roles' );
add_action( 'pre_get_posts', __NAMESPACE__ . '\\pre_get_posts' );
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\theme_scripts_styles' );
@@ -221,6 +223,13 @@
return $posts;
}
+function register_nav_menus() {
+
+ \register_nav_menus( array(
+ 'devhub-menu' => __( 'Developer Resources Menu', 'wporg' ),
+ ) );
+}
+
function method_permalink( $link, $post ) {
if ( $post->post_type !== 'wp-parser-method' )
return $link;
Index: header.php
===================================================================
--- header.php (revision 1535)
+++ header.php (working copy)
@@ -22,6 +22,12 @@
>
+
-
+
Index: stylesheets/main.css
===================================================================
--- stylesheets/main.css (revision 1535)
+++ stylesheets/main.css (working copy)
@@ -282,8 +282,6 @@
/* =Media
----------------------------------------------- */
/* Make sure embeds and iframes fit their containers */
- /* =Comments
- ----------------------------------------------- */
/* =Widgets
----------------------------------------------- */
/* Make sure select elements fit in widgets */
@@ -338,6 +336,22 @@
.devhub-wrap .page-header {
margin-top: 1em;
}
+.devhub-wrap .menu {
+ list-style: none;
+ float: right;
+ font-size: 14px;
+ font-weight: bold;
+ padding-top: 22px;
+ margin-right: 15px;
+}
+.devhub-wrap .menu li {
+ display: inline;
+ padding-left: 20px;
+}
+.devhub-wrap .menu a {
+ color: #555;
+ font-weight: 400;
+}
.devhub-wrap a {
color: #21759b;
}
@@ -649,12 +663,6 @@
.devhub-wrap object {
max-width: 100%;
}
-.devhub-wrap .comment-content a {
- word-wrap: break-word;
-}
-.devhub-wrap .bypostauthor {
- background: #eee;
-}
.devhub-wrap .widget select {
max-width: 100%;
}
@@ -1275,22 +1283,27 @@
font-size: 18px;
margin-bottom: 20px;
}
-.devhub-wrap .comment-list,
-.devhub-wrap .comment-list ol {
+.devhub-wrap .comment-content a {
+ word-wrap: break-word;
+}
+.devhub-wrap.single-wp-parser-function .comment-list,
+.devhub-wrap.single-wp-parser-function .comment-list ol, .devhub-wrap.single-wp-parser-method .comment-list,
+.devhub-wrap.single-wp-parser-method .comment-list ol, .devhub-wrap.single-wp-parser-hook .comment-list,
+.devhub-wrap.single-wp-parser-hook .comment-list ol {
list-style: none;
margin: 0 0 1.5em 0;
padding: 0;
}
-.devhub-wrap .comment-list li {
+.devhub-wrap.single-wp-parser-function .comment-list li, .devhub-wrap.single-wp-parser-method .comment-list li, .devhub-wrap.single-wp-parser-hook .comment-list li {
padding: 2rem 1.5rem 1rem;
border: 0 solid #eee;
border-bottom-width: 1px;
background: #fff;
}
-.devhub-wrap .comment-list li:first-child {
+.devhub-wrap.single-wp-parser-function .comment-list li:first-child, .devhub-wrap.single-wp-parser-method .comment-list li:first-child, .devhub-wrap.single-wp-parser-hook .comment-list li:first-child {
padding-top: 1rem;
}
-.devhub-wrap .comment-list .avatar {
+.devhub-wrap.single-wp-parser-function .comment-list .avatar, .devhub-wrap.single-wp-parser-method .comment-list .avatar, .devhub-wrap.single-wp-parser-hook .comment-list .avatar {
float: left;
width: 2.5em;
height: 2.5em;
@@ -1298,20 +1311,20 @@
padding: 0.125em;
border: 1px solid #eee;
}
-.devhub-wrap .comment-author-attribution {
+.devhub-wrap.single-wp-parser-function .comment-author-attribution, .devhub-wrap.single-wp-parser-method .comment-author-attribution, .devhub-wrap.single-wp-parser-hook .comment-author-attribution {
font-weight: bold;
}
-.devhub-wrap .comment-meta {
+.devhub-wrap.single-wp-parser-function .comment-meta, .devhub-wrap.single-wp-parser-method .comment-meta, .devhub-wrap.single-wp-parser-hook .comment-meta {
margin: 0 0 1.5em 0;
font-size: 0.75em;
}
-.devhub-wrap .comment-content {
+.devhub-wrap.single-wp-parser-function .comment-content, .devhub-wrap.single-wp-parser-method .comment-content, .devhub-wrap.single-wp-parser-hook .comment-content {
margin-left: 60px;
margin-left: 3.75rem;
margin-left: 0;
clear: both;
}
-.devhub-wrap .comment-content ol {
+.devhub-wrap.single-wp-parser-function .comment-content ol, .devhub-wrap.single-wp-parser-method .comment-content ol, .devhub-wrap.single-wp-parser-hook .comment-content ol {
list-style: decimal inside;
margin: 0 0 1.5em 0;
border-top: none;
@@ -1318,7 +1331,7 @@
margin: 0 0 1.5em 1.5em;
padding: 0;
}
-.devhub-wrap .comment-content ul {
+.devhub-wrap.single-wp-parser-function .comment-content ul, .devhub-wrap.single-wp-parser-method .comment-content ul, .devhub-wrap.single-wp-parser-hook .comment-content ul {
list-style: square inside;
margin: 0 0 1.5em 0;
border-top: none;
@@ -1325,26 +1338,56 @@
margin: 0 0 1.5em 1.5em;
padding: 0;
}
-.devhub-wrap .comment-content li {
+.devhub-wrap.single-wp-parser-function .comment-content li, .devhub-wrap.single-wp-parser-method .comment-content li, .devhub-wrap.single-wp-parser-hook .comment-content li {
border: none;
padding: 0;
}
-.devhub-wrap #respond {
+.devhub-wrap.single-wp-parser-function #respond, .devhub-wrap.single-wp-parser-method #respond, .devhub-wrap.single-wp-parser-hook #respond {
overflow: hidden;
}
-.devhub-wrap .comment-list #respond {
+.devhub-wrap.single-wp-parser-function .comment-list #respond, .devhub-wrap.single-wp-parser-method .comment-list #respond, .devhub-wrap.single-wp-parser-hook .comment-list #respond {
margin: 1.5em 0 0;
}
-.devhub-wrap #respond .log-in-out a {
+.devhub-wrap.single-wp-parser-function #respond .log-in-out a, .devhub-wrap.single-wp-parser-method #respond .log-in-out a, .devhub-wrap.single-wp-parser-hook #respond .log-in-out a {
font-style: italic;
}
-.devhub-wrap #reply-title small a {
+.devhub-wrap.single-wp-parser-function #reply-title small a, .devhub-wrap.single-wp-parser-method #reply-title small a, .devhub-wrap.single-wp-parser-hook #reply-title small a {
font-style: italic;
}
-.devhub-wrap #respond #submit {
+.devhub-wrap.single-wp-parser-function #respond #submit, .devhub-wrap.single-wp-parser-method #respond #submit, .devhub-wrap.single-wp-parser-hook #respond #submit {
float: left;
margin: 0 0 1.5em;
}
+.devhub-wrap.single-wp-parser-function .comment-author, .devhub-wrap.single-wp-parser-method .comment-author, .devhub-wrap.single-wp-parser-hook .comment-author {
+ float: left;
+}
+.devhub-wrap.single-post .comment-list,
+.devhub-wrap.single-post .comment-list ol {
+ list-style: none;
+ margin: 1.5em 0;
+ padding: 0;
+}
+.devhub-wrap.single-post .comment-list li {
+ margin: 1.5em 0;
+ padding: 1em 0 0 0;
+ border-top: 1px solid #ddd;
+}
+.devhub-wrap.single-post .comment-list p {
+ margin: 0 0 0 42px;
+}
+.devhub-wrap.single-post .comment-list .alt {
+ background: inherit;
+}
+.devhub-wrap.single-post .comment-meta {
+ font-size: 0.65em;
+ color: #888;
+ float: right;
+ margin-top: -15px;
+}
+.devhub-wrap.single-post .comment-author img {
+ float: left;
+ margin: 0 10px 0 0;
+}
.devhub-wrap #content-area.has-sidebar {
float: none;
margin: 0 auto;
@@ -1424,9 +1467,6 @@
.devhub-wrap ul.items li a {
color: #555 !important;
}
-.devhub-wrap .comment-author {
- float: left;
-}
.devhub-wrap .user-note-voting {
font-size: 1.5em;
clear: left;