Changeset 677 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php
- Timestamp:
- 06/05/2014 09:46:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php
r676 r677 29 29 ?> 30 30 <section class="source"> 31 <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> 32 <p><a href="<?php echo get_source_file_link(); ?>"><?php _e( 'View source…', 'wporg' ); ?></a></p> 31 <p> 32 <strong><?php _e( 'Source file:', 'wporg' ); ?></strong> 33 <a href="<?php echo get_source_file_archive_link( $source_file ); ?>"><?php echo esc_html( $source_file ); ?></a><br /> 34 <strong><?php _e( 'View source code:', 'wporg' ); ?></strong> 35 <?php if ( post_type_has_source_code() ) { ?> 36 <a href="#source-code"><?php _e( 'below', 'wporg' ); ?></a> or 37 <?php } ?> 38 <a href="<?php echo get_source_file_link(); ?>"><?php _e( 'on the WP Trac code browser…', 'wporg' ); ?></a> 39 </p> 33 40 </section> 34 41 <?php endif; ?> … … 117 124 endif; ?> 118 125 119 <?php if ( 'wp-parser-function' === get_post_type() || 'wp-parser-method' === get_post_type() ) : ?>126 <?php if ( post_type_has_source_code() ) : ?> 120 127 <hr /> 128 <a id="source-code"></a> 121 129 <section class="source-content"> 122 130 <h2><?php _e( 'Source', 'wporg' ); ?></h2> … … 124 132 <pre class="brush: php; toolbar: false;"><?php echo esc_html( get_source_code() ); ?></pre> 125 133 </div> 126 <p><a href="#" class="show-complete-source"><?php _e( 'View full source code…', 'wporg -developer' ); ?></a></p>134 <p><a href="#" class="show-complete-source"><?php _e( 'View full source code…', 'wporg' ); ?></a></p> 127 135 </section> 128 136 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.