Making WordPress.org


Ignore:
Timestamp:
06/06/2014 09:51:08 PM (11 years ago)
Author:
coffee2code
Message:

Code Reference: Improve linking related to source code display. See #176

  • Remove 'View source code:' label and links
  • Add 'View source' link that links downpage to Source section
  • Remove ellipsis from link text
  • Add ability to collapse expanded source code
  • Move link to core.trac for function to be under source code display as 'View on Trac'
  • Fix to display link to trac for hooks and classes
File:
1 edited

Legend:

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

    r686 r687  
    2929            <p>
    3030                <strong><?php _e( 'Source file:', 'wporg' ); ?></strong>
    31                 <a href="<?php echo get_source_file_archive_link( $source_file ); ?>"><?php echo esc_html( $source_file ); ?></a><br />
    32                 <strong><?php _e( 'View source code:', 'wporg' ); ?></strong>
    33                 <a href="<?php echo get_source_file_link(); ?>"><?php _e( 'on the WP Trac code browser&hellip;', 'wporg' ); ?></a>
     31                <a href="<?php echo get_source_file_archive_link( $source_file ); ?>"><?php echo esc_html( $source_file ); ?></a>
     32            </p>
     33            <p>
     34                <a href="<?php echo get_source_file_link(); ?>"><?php _e( 'View on Trac', 'wporg' ); ?></a>
    3435            </p>
    3536        </section>
Note: See TracChangeset for help on using the changeset viewer.