Making WordPress.org


Ignore:
Timestamp:
08/12/2014 06:26:08 AM (10 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/scss/main.scss

    r780 r781  
    883883    }
    884884
     885    &.archive, &.search {
     886        .wp-parser-class, .wp-parser-function, .wp-parser-hook, .wp-parser-method {
     887            h1 {
     888                a {
     889                    font-family: $body-font;
     890                    color: #21759b;
     891                    font-weight: normal;
     892                }
     893            }
     894            div {
     895                &.sourcefile {
     896                    color: #999999;
     897                    font-style: italic;
     898                }
     899            }
     900        }
     901    }
     902
    885903    .single {
    886904        .wp-parser-class, .wp-parser-function, .wp-parser-hook, .wp-parser-method {
Note: See TracChangeset for help on using the changeset viewer.