<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[3626] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer: developer.wordpress.org: Restructure reference pages to leverage a table of contents for the majority of the page output.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/3626">3626</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/3626","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>drewapicture</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-07-06 19:16:58 +0000 (Wed, 06 Jul 2016)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>developer.wordpress.org: Restructure reference pages to leverage a table of contents for the majority of the page output.
* Splits large sections of content-reference.php into individual template parts captured via output buffering.
* Introduces four top-level sections for any given reference page: Description, More Information (if an explanation exists), Related, and User Contributed Notes
* Improves overall responsive styling for smaller viewports
See <a href="http://meta.trac.wordpress.org/ticket/1802">#1802</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopercontentreferencephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperinctemplatetagsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperscssmainscss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperstylesheetsmaincss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatechangelogphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-changelog.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatedescriptionphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-description.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplateexplanationphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-explanation.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatemethodsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-methods.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatenotesphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-notes.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplateparamsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-params.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplaterelatedphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-related.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatereturnphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-return.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatesourcephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-source.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopercontentreferencephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php 2016-07-06 18:24:34 UTC (rev 3625)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,229 +14,25 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( is_single() ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <section class="description">
- <?php echo get_description(); ?>
- </section>
-
</del><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $return = get_return();
- if ( ! empty( $return ) ) :
- ?>
- <section class="return"><p><strong><?php _e( 'Return:', 'wporg' ); ?></strong> <?php echo $return; ?></p></section>
- <?php endif; ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $content = get_reference_template_parts();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php
- $source_file = get_source_file();
- if ( ! empty( $source_file ) ) :
- ?>
- <section class="source">
- <p>
- <strong><?php _e( 'Source file:', 'wporg' ); ?></strong>
- <a href="<?php echo get_source_file_archive_link( $source_file ); ?>"><?php echo esc_html( $source_file ); ?></a>
- </p>
- <?php if ( post_type_has_source_code() ) { ?>
- <p>
- <a href="#source-code"><?php _e( 'View source', 'wporg' ); ?></a>
- </p>
- <?php } else { ?>
- <p>
- <a href="<?php echo get_source_file_link(); ?>"><?php _e( 'View on Trac', 'wporg' ); ?></a>
- </p>
- <?php } ?>
- </section>
- <?php endif; ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // If the Handbook TOC is available, use it.
+ if ( class_exists( 'WPorg_Handbook_TOC' ) ) :
+ $TOC = new \WPorg_Handbook_TOC( get_parsed_post_types(), array(
+ 'header_text' => __( 'Table of Contents', 'wporg' )
+ ) );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php if ( $params = get_params() ) : ?>
- <hr/>
- <section class="parameters">
- <h2><?php _e( 'Parameters', 'wporg' ); ?></h2>
- <dl>
- <?php foreach ( $params as $param ) : ?>
- <?php if ( ! empty( $param['variable'] ) ) : ?>
- <dt><?php echo esc_html( $param['variable'] ); ?></dt>
- <?php endif; ?>
- <dd>
- <p class="desc">
- <?php if ( ! empty( $param['types'] ) ) : ?>
- <span class="type"><?php printf( __( '(%s)', 'wporg' ), wp_kses_post( $param['types'] ) ); ?></span>
- <?php endif; ?>
- <?php if ( ! empty( $param['required'] ) && 'wp-parser-hook' !== get_post_type() ) : ?>
- <span class="required"><?php printf( __( '(%s)', 'wporg' ), esc_html( $param['required'] ) ); ?></span>
- <?php endif; ?>
- <?php if ( ! empty( $param['content'] ) ) : ?>
- <span class="description"><?php echo wp_kses_post( $param['content'] ); ?></span>
- <?php endif; ?>
- </p>
- <?php if ( ! empty( $param['default'] ) ) : ?>
- <p class="default"><?php _e( 'Default value:', 'wporg' );?> <?php echo htmlentities( $param['default'] ); ?></p>
- <?php endif; ?>
- </dd>
- <?php endforeach; ?>
- </dl>
- </section>
- <?php endif; ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ add_filter( 'the_content', array( $TOC, 'add_toc' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php
- $explanation = get_explanation_field( 'post_content', get_the_ID() );
- if ( $explanation ) :
- ?>
- <hr/>
- <section class="explanation">
- <h2><?php _e( 'More Information', 'wporg' ); ?></h2>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $content = apply_filters( 'the_content', $content );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php
- // Output the explanation. Passed through 'the_content' on retrieval, thus no escaping.
- echo $explanation;
- ?>
- </section>
- <?php endif; ?>
-
- <?php /*
- <?php if ( $arguments = get_arguments() ) : //todo: output arg data ?>
- <hr/>
- <section class="arguments">
- <h2><?php _e( 'Arguments', 'wporg' ); ?></h2>
- </section>
- <?php endif; ?>
- <hr/>
- <section class="learn-more">
- <h2><?php _e( 'Learn More', 'wporg' ); ?></h2>
- </section>
- */ ?>
-
- <?php if ( 'wp-parser-class' === get_post_type() ) :
- if ( $children = get_children( array( 'post_parent' => get_the_ID(), 'post_status' => 'publish' ) ) ) :
- usort( $children, __NAMESPACE__ . '\\compare_objects_by_name' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ remove_filter( 'the_content', array( $TOC, 'add_toc' ) );
+ endif;
</ins><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <hr/>
- <section class="class-methods">
- <h2><?php _e( 'Methods', 'wporg' ); ?></h2>
- <ul>
- <?php foreach ( $children as $child ) : ?>
- <li><a href="<?php echo get_permalink( $child->ID ); ?>">
- <?php
- $title = get_the_title( $child );
- $pos = ( $i = strrpos( $title, ':' ) ) ? $i + 1 : 0;
- echo substr( $title, $pos );
- ?></a>
- <?php if ( $excerpt = apply_filters( 'get_the_excerpt', $child->post_excerpt ) ) {
- echo '— ' . sanitize_text_field( $excerpt );
- } ?>
- <?php if ( is_deprecated( $child->ID ) ) {
- echo '— <span class="deprecated-method">' . __( 'deprecated', 'wporg' ) . '</span>';
- } ?>
- </li>
- <?php endforeach; ?>
- </ul>
- </section>
- <?php endif;
- endif; ?>
</del><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php if ( show_usage_info() ) : ?>
- <hr id="usage" />
- <section class="usage">
- <article class="used-by">
- <h2><?php _e( 'Used by', 'wporg' ); ?></h2>
- <ul>
- <?php
- $used_by = get_used_by();
- $used_by_to_show = 5;
- while ( $used_by->have_posts() ) : $used_by->the_post();
- ?>
- <li>
- <span><?php echo esc_attr( get_source_file() ); ?>:</span>
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if ( 'wp-parser-hook' !== get_post_type() ) : ?>()<?php endif; ?></a>
- </li>
- <?php endwhile; wp_reset_postdata(); ?>
- <?php if ( $used_by->post_count > $used_by_to_show ) : ?>
- <a href="#" class="show-more"><?php
- /* translators: %d: remaining 'used by' count */
- printf( _n( 'Show %d more used by', 'Show %d more used by', $used_by->post_count - $used_by_to_show, 'wporg' ),
- number_format_i18n( $used_by->post_count - $used_by_to_show )
- );
- ?></a>
- <a href="#" class="hide-more"><?php _e( 'Hide more used by', 'wporg' ); ?></a>
- <?php endif; ?>
- </ul>
- </article>
- <?php if ( post_type_has_uses_info() ) : ?>
- <article class="uses">
- <h2><?php _e( 'Uses', 'wporg' ); ?></h2>
- <ul>
- <?php
- $uses = get_uses();
- $uses_to_show = 5;
- while ( $uses->have_posts() ) : $uses->the_post()
- ?>
- <li>
- <span><?php echo esc_attr( get_source_file() ); ?>:</span>
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if ( 'wp-parser-hook' !== get_post_type() ) : ?>()<?php endif; ?></a>
- </li>
- <?php endwhile; wp_reset_postdata(); ?>
- <?php if ( $uses->post_count > $uses_to_show ) : ?>
- <a href="#" class="show-more"><?php
- /* translators: %d: remaining 'uses' count */
- printf( _n( 'Show %d more use', 'Show %d more uses', $uses->post_count - $uses_to_show, 'wporg' ),
- number_format_i18n( $uses->post_count - $uses_to_show )
- );
- ?></a>
- <a href="#" class="hide-more"><?php _e( 'Hide more uses', 'wporg' ); ?></a>
- <?php endif; ?>
- </ul>
- </article>
- <?php endif; ?>
- </section>
- <?php endif; ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php echo $content; ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php if ( post_type_has_source_code() ) : ?>
- <hr />
- <a id="source-code"></a>
- <section class="source-content">
- <h2><?php _e( 'Source', 'wporg' ); ?></h2>
- <div class="source-code-container">
- <pre class="brush: php; toolbar: false; first-line: <?php echo esc_attr( get_post_meta( get_the_ID(), '_wp-parser_line_num', true ) ); ?>"><?php echo htmlentities( get_source_code() ); ?></pre>
- </div>
- <p class="source-code-links">
- <span>
- <a href="#" class="show-complete-source"><?php _e( 'Expand full source code', 'wporg' ); ?></a>
- <a href="#" class="less-complete-source"><?php _e( 'Collapse full source code', 'wporg' ); ?></a>
- </span>
- <span><a href="<?php echo get_source_file_link(); ?>"><?php _e( 'View on Trac', 'wporg' ); ?></a></span>
- </p>
- </section>
- <?php endif; ?>
-
- <?php
- $changelog_data = get_changelog_data();
- if ( ! empty( $changelog_data ) ) :
- ?>
- <hr/>
- <section class="changelog">
- <h2><?php _e( 'Changelog', 'wporg' ); ?></h2>
- <ul>
- <?php foreach ( $changelog_data as $version => $data ) : ?>
- <li>
- <strong><?php _e( 'Since:', 'wporg' ); ?></strong>
- <?php printf(
- /* translators: %s: WordPress version */
- __( 'WordPress %s', 'wporg' ),
- sprintf( '<a href="%1$s">%2$s</a>', esc_url( $data['since_url'] ), esc_html( $version ) )
- ); ?>
- <?php echo $data['description']; // escaped in get_changelog_data() ?>
- </li>
- <?php endforeach; ?>
- </ul>
- </section>
- <?php endif; ?>
-
- <?php if ( comments_open() || '0' != get_comments_number() ) : ?>
- <hr/>
- <section class="user-notes">
- <h2><?php _e( 'User Contributed Notes', 'wporg' ); ?></h2>
- <?php comments_template(); /* TODO: add '/user-notes.php' */ ?>
- </section>
- <?php endif; ?>
-
</del><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> </article>
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperinctemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php 2016-07-06 18:24:34 UTC (rev 3625)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -549,7 +549,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $delimiter = false !== strpos( $signature, '$' ) ? '"' : "'";
</span><span class="cx" style="display: block; padding: 0 10px"> $signature = $delimiter . $signature . $delimiter;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $signature = '<span class="hook-func">' . $hook_type . '</span> ( ' . $signature;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $signature = '<span class="hook-func">' . $hook_type . '</span>( ' . $signature;
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $hook_args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $signature .= ', ';
</span><span class="cx" style="display: block; padding: 0 10px"> $signature .= implode( ', ', $hook_args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -579,7 +579,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $signature .= ' (';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $signature .= '(';
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $args = implode( ', ', $args_strings ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $signature .= $args . ' ';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1320,20 +1320,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $post_field = get_post_field( $field, $explanation, $context );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // If retrieving the explanation content for display, add the TOC if available.
- if ( 'post_content' === $field && 'display' === $context ) {
- if ( class_exists( 'WPorg_Handbook_TOC' ) ) :
- $TOC = new \WPorg_Handbook_TOC( get_parsed_post_types() );
-
- add_filter( 'the_content', array( $TOC, 'add_toc' ) );
- $post_field = apply_filters( 'the_content', apply_filters( 'get_the_content', $post_field ) );
- remove_filter( 'the_content', array( $TOC, 'add_toc' ) );
- else :
- $post_field = apply_filters( 'the_content', apply_filters( 'get_the_content', $post_field ) );
- endif;
- }
-
- return $post_field;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return apply_filters( 'the_content', apply_filters( 'get_the_content', $post_field ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1439,5 +1426,32 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> echo $form;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Retrieves all content for reference template parts.
+ *
+ * @return string Template part markup retrieved via output buffering.
+ */
+ function get_reference_template_parts() {
+ // Order dictates order of display.
+ $templates = array(
+ 'description',
+ 'params',
+ 'return',
+ 'source',
+ 'changelog',
+ 'explanation',
+ 'related',
+ 'methods',
+ 'notes'
+ );
+
+ ob_start();
+
+ foreach ( $templates as $part ) {
+ get_template_part( 'reference/template', $part );
+ }
+
+ return ob_get_clean();
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatechangelogphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-changelog.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-changelog.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-changelog.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,32 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: Changelog
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+
+$changelog_data = get_changelog_data();
+if ( ! empty( $changelog_data ) ) :
+ ?>
+ <hr/>
+ <section class="changelog">
+ <h3><?php _e( 'Changelog', 'wporg' ); ?></h3>
+ <ul>
+ <?php foreach ( $changelog_data as $version => $data ) : ?>
+ <li>
+ <strong><?php _e( 'Since:', 'wporg' ); ?></strong>
+ <?php printf(
+ /* translators: %s: WordPress version */
+ __( 'WordPress %s', 'wporg' ),
+ sprintf( '<a href="%1$s">%2$s</a>', esc_url( $data['since_url'] ), esc_html( $version ) )
+ ); ?>
+ <?php echo $data['description']; // escaped in get_changelog_data() ?>
+ </li>
+ <?php endforeach; ?>
+ </ul>
+ </section>
+<?php endif; ?>
+
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatedescriptionphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-description.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-description.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-description.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: Description
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+?>
+
+<hr />
+<section class="description">
+ <h2><?php _e( 'Description', 'wporg' ); ?></h2>
+ <?php echo get_description(); ?>
+</section>
+
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplateexplanationphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-explanation.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-explanation.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-explanation.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,22 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: "More Information"
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+
+if ( $explanation = get_explanation_field( 'post_content', get_the_ID() ) ) :
+ ?>
+ <hr/>
+ <section class="explanation">
+ <h2><?php _e( 'More Information', 'wporg' ); ?></h2>
+
+ <?php
+ // Output the explanation. Passed through 'the_content' on retrieval, thus no escaping.
+ echo apply_filters( 'the_content', apply_filters( 'get_the_content', $explanation ) );
+ ?>
+ </section>
+<?php endif; ?>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatemethodsphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-methods.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-methods.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-methods.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,37 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: Class Methods
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+
+if ( 'wp-parser-class' === get_post_type() ) :
+ if ( $children = get_children( array( 'post_parent' => get_the_ID(), 'post_status' => 'publish' ) ) ) :
+ usort( $children, __NAMESPACE__ . '\\compare_objects_by_name' );
+ ?>
+ <hr/>
+ <section class="class-methods">
+ <h2><?php _e( 'Methods', 'wporg' ); ?></h2>
+ <ul>
+ <?php foreach ( $children as $child ) : ?>
+ <li><a href="<?php echo get_permalink( $child->ID ); ?>">
+ <?php
+ $title = get_the_title( $child );
+ $pos = ( $i = strrpos( $title, ':' ) ) ? $i + 1 : 0;
+ echo substr( $title, $pos );
+ ?></a>
+ <?php if ( $excerpt = apply_filters( 'get_the_excerpt', $child->post_excerpt ) ) {
+ echo '— ' . sanitize_text_field( $excerpt );
+ } ?>
+ <?php if ( is_deprecated( $child->ID ) ) {
+ echo '— <span class="deprecated-method">' . __( 'deprecated', 'wporg' ) . '</span>';
+ } ?>
+ </li>
+ <?php endforeach; ?>
+ </ul>
+ </section>
+ <?php endif;
+endif; ?>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatenotesphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-notes.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-notes.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-notes.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: User Contributed Notes
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+
+if ( comments_open() || '0' != get_comments_number() ) :
+ ?>
+ <hr />
+ <section class="user-notes">
+ <h2><?php _e( 'User Contributed Notes', 'wporg' ); ?></h2>
+ <?php comments_template(); /* TODO: add '/user-notes.php' */ ?>
+ </section>
+<?php endif; ?>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplateparamsphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-params.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-params.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-params.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,40 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: Parameters
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+
+if ( $params = get_params() ) :
+ ?>
+ <hr/>
+ <section class="parameters">
+ <h3><?php _e( 'Parameters', 'wporg' ); ?></h3>
+ <dl>
+ <?php foreach ( $params as $param ) : ?>
+ <?php if ( ! empty( $param['variable'] ) ) : ?>
+ <dt><?php echo esc_html( $param['variable'] ); ?></dt>
+ <?php endif; ?>
+ <dd>
+ <p class="desc">
+ <?php if ( ! empty( $param['types'] ) ) : ?>
+ <span class="type"><?php printf( __( '(%s)', 'wporg' ), wp_kses_post( $param['types'] ) ); ?></span>
+ <?php endif; ?>
+ <?php if ( ! empty( $param['required'] ) && 'wp-parser-hook' !== get_post_type() ) : ?>
+ <span class="required"><?php printf( __( '(%s)', 'wporg' ), esc_html( $param['required'] ) ); ?></span>
+ <?php endif; ?>
+ <?php if ( ! empty( $param['content'] ) ) : ?>
+ <span class="description"><?php echo wp_kses_post( $param['content'] ); ?></span>
+ <?php endif; ?>
+ </p>
+ <?php if ( ! empty( $param['default'] ) ) : ?>
+ <p class="default"><?php _e( 'Default value:', 'wporg' );?> <?php echo htmlentities( $param['default'] ); ?></p>
+ <?php endif; ?>
+ </dd>
+ <?php endforeach; ?>
+ </dl>
+ </section>
+<?php endif; ?>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplaterelatedphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-related.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-related.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-related.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,71 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: Related Functionality
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+
+if ( show_usage_info() ) :
+ ?>
+ <hr id="related" />
+ <section class="related">
+ <h2><?php _e( 'Related', 'wporg' ); ?></h2>
+
+ <?php if ( post_type_has_uses_info() ) : ?>
+ <article class="uses">
+ <h3><?php _e( 'Uses', 'wporg' ); ?></h3>
+ <ul>
+ <?php
+ $uses = get_uses();
+ $uses_to_show = 5;
+ while ( $uses->have_posts() ) : $uses->the_post()
+ ?>
+ <li>
+ <span><?php echo esc_attr( get_source_file() ); ?>:</span>
+ <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if ( 'wp-parser-hook' !== get_post_type() ) : ?>()<?php endif; ?></a>
+ </li>
+ <?php endwhile; wp_reset_postdata(); ?>
+ <?php if ( $uses->post_count > $uses_to_show ) : ?>
+ <a href="#" class="show-more"><?php
+ /* translators: %d: remaining 'uses' count */
+ printf( _n( 'Show %d more use', 'Show %d more uses', $uses->post_count - $uses_to_show, 'wporg' ),
+ number_format_i18n( $uses->post_count - $uses_to_show )
+ );
+ ?></a>
+ <a href="#" class="hide-more"><?php _e( 'Hide more uses', 'wporg' ); ?></a>
+ <?php endif; ?>
+ </ul>
+ </article>
+ <?php endif; ?>
+
+ <hr />
+ <article class="used-by">
+ <h3><?php _e( 'Used By', 'wporg' ); ?></h3>
+ <ul>
+ <?php
+ $used_by = get_used_by();
+ $used_by_to_show = 5;
+ while ( $used_by->have_posts() ) : $used_by->the_post();
+ ?>
+ <li>
+ <span><?php echo esc_attr( get_source_file() ); ?>:</span>
+ <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if ( 'wp-parser-hook' !== get_post_type() ) : ?>()<?php endif; ?></a>
+ </li>
+ <?php endwhile; wp_reset_postdata(); ?>
+ <?php if ( $used_by->post_count > $used_by_to_show ) : ?>
+ <a href="#" class="show-more"><?php
+ /* translators: %d: remaining 'used by' count */
+ printf( _n( 'Show %d more used by', 'Show %d more used by', $used_by->post_count - $used_by_to_show, 'wporg' ),
+ number_format_i18n( $used_by->post_count - $used_by_to_show )
+ );
+ ?></a>
+ <a href="#" class="hide-more"><?php _e( 'Hide more used by', 'wporg' ); ?></a>
+ <?php endif; ?>
+ </ul>
+ </article>
+ </section>
+<?php endif; ?>
+
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatereturnphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-return.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-return.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-return.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,19 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: Return Information
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+
+$return = get_return();
+if ( ! empty( $return ) ) :
+ ?>
+ <hr />
+ <section class="return">
+ <h3><?php _e( 'Return', 'wporg' ); ?></h3>
+ <p><?php echo $return; ?></p>
+ </section>
+<?php endif; ?>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperreferencetemplatesourcephp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-source.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-source.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-source.php 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,38 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Reference Template: Source Information
+ *
+ * @package wporg-developer
+ * @subpackage Reference
+ */
+
+namespace DevHub;
+
+$source_file = get_source_file();
+if ( ! empty( $source_file ) ) :
+ ?>
+ <hr />
+ <section class="source">
+ <h3><?php _e( 'Source', 'wporg' ); ?></h3>
+ <p>
+ <?php printf( __( 'File: %s', 'wporg' ),
+ '<a href="' . esc_url( get_source_file_archive_link( $source_file ) ) . '">' . esc_html( $source_file ) . '</a>'
+ ); ?>
+ </p>
+
+ <?php if ( post_type_has_source_code() ) : ?>
+ <div class="source-code-container">
+ <pre class="brush: php; toolbar: false; first-line: <?php echo esc_attr( get_post_meta( get_the_ID(), '_wp-parser_line_num', true ) ); ?>"><?php echo htmlentities( get_source_code() ); ?></pre>
+ </div>
+ <p class="source-code-links">
+ <span>
+ <a href="#" class="show-complete-source"><?php _e( 'Expand full source code', 'wporg' ); ?></a>
+ <a href="#" class="less-complete-source"><?php _e( 'Collapse full source code', 'wporg' ); ?></a>
+ </span>
+ </p>
+ <?php endif; ?>
+ <p>
+ <a href="<?php echo get_source_file_link(); ?>"><?php _e( 'View on Trac', 'wporg' ); ?></a>
+ </p>
+ </section>
+<?php endif; ?>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperscssmainscss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss 2016-07-06 18:24:34 UTC (rev 3625)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1056,6 +1056,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .table-of-contents {
</span><span class="cx" style="display: block; padding: 0 10px"> width: 300px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .toc-jump {
+ display: inline-block;
+ float: right;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .callout:before {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1087,19 +1091,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /* = Usage
</span><span class="cx" style="display: block; padding: 0 10px"> ----------------------------------------------- */
</span><span class="cx" style="display: block; padding: 0 10px"> .usage {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- article {
- float: left;
- width: 50%;
- }
-
- .used-by {
- padding-right: 30px;
- }
-
- .uses {
- padding-left: 30px;
- }
-
</del><span class="cx" style="display: block; padding: 0 10px"> ul {
</span><span class="cx" style="display: block; padding: 0 10px"> line-height: 1.7; /* Slightly increase the line height for more readability */
</span><span class="cx" style="display: block; padding: 0 10px"> list-style-type: none;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1428,10 +1419,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> li {
</span><span class="cx" style="display: block; padding: 0 10px"> padding-bottom: 6px !important;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-weight: 600;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> ul li,
</span><span class="cx" style="display: block; padding: 0 10px"> ul li ul li {
</span><span class="cx" style="display: block; padding: 0 10px"> padding-bottom: 0 !important;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-weight: normal;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> a {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1613,25 +1606,29 @@
</span><span class="cx" style="display: block; padding: 0 10px"> padding-left: 45px;
</span><span class="cx" style="display: block; padding: 0 10px"> text-indent: -45px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
- .table-of-contents {
- width: 200px;
- }
</del><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .two-columns .box {
</span><span class="cx" style="display: block; padding: 0 10px"> width: 99%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .usage {
- article {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+@media (max-width: 32em) {
+ .devhub-wrap {
+ .wp-parser-class, .wp-parser-function, .wp-parser-hook, .wp-parser-method {
+ .table-of-contents {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin-bottom: 10px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .uses {
- padding-left: 0;
- margin-top: 30px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ section {
+ overflow: inherit;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ hr {
+ clear: both;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1648,10 +1645,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> text-indent: -20px;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 16px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .table-of-contents {
- width: 100%;
- margin-bottom: 10px;
- }
</del><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> &.single-wp-parser-function, &.single-wp-parser-method, &.single-wp-parser-hook {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperstylesheetsmaincss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css 2016-07-06 18:24:34 UTC (rev 3625)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css 2016-07-06 19:16:58 UTC (rev 3626)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1265,6 +1265,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .wp-parser-class .table-of-contents, .devhub-wrap .wp-parser-function .table-of-contents, .devhub-wrap .wp-parser-hook .table-of-contents, .devhub-wrap .wp-parser-method .table-of-contents {
</span><span class="cx" style="display: block; padding: 0 10px"> width: 300px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.devhub-wrap .wp-parser-class .toc-jump, .devhub-wrap .wp-parser-function .toc-jump, .devhub-wrap .wp-parser-hook .toc-jump, .devhub-wrap .wp-parser-method .toc-jump {
+ display: inline-block;
+ float: right;
+}
</ins><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .callout:before {
</span><span class="cx" style="display: block; padding: 0 10px"> top: 0.2em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1280,16 +1284,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .single .wp-parser-class, .devhub-wrap .single .wp-parser-function, .devhub-wrap .single .wp-parser-hook, .devhub-wrap .single .wp-parser-method {
</span><span class="cx" style="display: block; padding: 0 10px"> border-bottom-style: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.devhub-wrap .usage article {
- float: left;
- width: 50%;
-}
-.devhub-wrap .usage .used-by {
- padding-right: 30px;
-}
-.devhub-wrap .usage .uses {
- padding-left: 30px;
-}
</del><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .usage ul {
</span><span class="cx" style="display: block; padding: 0 10px"> line-height: 1.7;
</span><span class="cx" style="display: block; padding: 0 10px"> /* Slightly increase the line height for more readability */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1527,10 +1521,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap ul.items li {
</span><span class="cx" style="display: block; padding: 0 10px"> padding-bottom: 6px !important;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-weight: 600;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap ul.items li ul li,
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap ul.items li ul li ul li {
</span><span class="cx" style="display: block; padding: 0 10px"> padding-bottom: 0 !important;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-weight: normal;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap ul.items li a {
</span><span class="cx" style="display: block; padding: 0 10px"> color: #555 !important;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1672,19 +1668,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> padding-left: 45px;
</span><span class="cx" style="display: block; padding: 0 10px"> text-indent: -45px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .devhub-wrap .wp-parser-class .table-of-contents, .devhub-wrap .wp-parser-function .table-of-contents, .devhub-wrap .wp-parser-hook .table-of-contents, .devhub-wrap .wp-parser-method .table-of-contents {
- width: 200px;
- }
</del><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .two-columns .box {
</span><span class="cx" style="display: block; padding: 0 10px"> width: 99%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .devhub-wrap .usage article {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+}
+@media (max-width: 32em) {
+ .devhub-wrap .wp-parser-class .table-of-contents, .devhub-wrap .wp-parser-function .table-of-contents, .devhub-wrap .wp-parser-hook .table-of-contents, .devhub-wrap .wp-parser-method .table-of-contents {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin-bottom: 10px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .devhub-wrap .usage .uses {
- padding-left: 0;
- margin-top: 30px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .devhub-wrap .wp-parser-class section, .devhub-wrap .wp-parser-function section, .devhub-wrap .wp-parser-hook section, .devhub-wrap .wp-parser-method section {
+ overflow: inherit;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .devhub-wrap .wp-parser-class hr, .devhub-wrap .wp-parser-function hr, .devhub-wrap .wp-parser-hook hr, .devhub-wrap .wp-parser-method hr {
+ clear: both;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> @media (max-width: 22em) {
</span><span class="cx" style="display: block; padding: 0 10px"> ul, ol {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1697,10 +1695,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> text-indent: -20px;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 16px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .devhub-wrap .wp-parser-class .table-of-contents, .devhub-wrap .wp-parser-function .table-of-contents, .devhub-wrap .wp-parser-hook .table-of-contents, .devhub-wrap .wp-parser-method .table-of-contents {
- width: 100%;
- margin-bottom: 10px;
- }
</del><span class="cx" style="display: block; padding: 0 10px"> .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 {
</span><span class="cx" style="display: block; padding: 0 10px"> padding-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> padding-right: 0;
</span></span></pre>
</div>
</div>
</body>
</html>