WordPress.org

Making WordPress.org


Ignore:
Timestamp:
02/14/2017 05:33:38 AM (3 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Display code reference table of contents items as links.

Also minor ToC box style tweaks and renaming to "Contents".

Props keesiemeijer, kevinwhoffman.
Fixes #1814.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php

    r3629 r4902  
    2121    if ( class_exists( 'WPorg_Handbook_TOC' ) ) :
    2222        $TOC = new \WPorg_Handbook_TOC( get_parsed_post_types(), array(
    23             'header_text' => __( 'Table of Contents', 'wporg' )
     23            'header_text' => __( 'Contents', 'wporg' )
    2424        ) );
    2525
    26         $content = $TOC->add_toc( $content );
     26        $content = '<div class="content-toc">' . $TOC->add_toc( $content ) . '</div>';
     27
    2728    endif;
    2829    ?>
Note: See TracChangeset for help on using the changeset viewer.