Making WordPress.org


Ignore:
Timestamp:
08/12/2014 06:26:08 AM (12 years ago)
Author:
coffee2code
Message:

Code Reference: streamline UI for archive/search listings

  • Add content-reference-archive.php template and use it for archive and search listings
  • Add wporg_filter_archive_excerpt() and use it to prefix post type label to excerpts in archive listings
  • Add wporg_filter_archive_title() and use it to append '()' to titles for function-like post types in archive listings
  • Add get_line_number() to get either start or end line number
  • Display simplified archive listing (no full method signature, no parts highlighting)
  • Add post type label, source file relative path, and start line number to archive listed items

fixes #450
props nicolealleyinteractivecom

File:
1 edited

Legend:

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

    r591 r781  
    2323                                <?php while ( have_posts() ) : the_post(); ?>
    2424
    25                                         <?php
    26                                                 /* Include the Post-Format-specific template for the content.
    27                                                  * If you want to override this in a child theme, then include a file
    28                                                  * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    29                                                  */
    30                                                 get_template_part( 'content', 'reference' );
    31                                         ?>
     25                                        <?php get_template_part( 'content', 'reference-archive' ); ?>
    3226
    3327                                <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.