Changeset 781
- Timestamp:
- 08/12/2014 06:26:08 AM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/archive.php
r591 r781 23 23 <?php while ( have_posts() ) : the_post(); ?> 24 24 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' ); ?> 32 26 33 27 <?php endwhile; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/header.php
r554 r781 10 10 ?> 11 11 12 <div id="page" class="hfeed site devhub-wrap">12 <div id="page" <?php body_class( 'hfeed site devhub-wrap' ); ?>> 13 13 <?php do_action( 'before' ); ?> 14 14 <header id="masthead" class="site-header" role="banner"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php
r554 r781 67 67 } 68 68 add_filter( 'wp_title', 'wporg_developer_wp_title', 10, 2 ); 69 70 /** 71 * Prefixes excerpts for archive view with content type label. 72 * 73 * @param string $excerpt The excerpt. 74 * @return string 75 */ 76 function wporg_filter_archive_excerpt( $excerpt ) { 77 if ( ! is_single() ) { 78 $excerpt = '<b>' . get_post_type_labels( get_post_type_object( get_post_type( get_the_ID() ) ) )->singular_name . ': </b>' . $excerpt; 79 } 80 81 return $excerpt; 82 } 83 add_filter( 'get_the_excerpt', 'wporg_filter_archive_excerpt' ); 84 85 /** 86 * Appends parentheses to titles in archive view for functions and methods. 87 * 88 * @param string $title The title. 89 * @return string 90 */ 91 function wporg_filter_archive_title( $title ) { 92 if ( ! is_single() && in_array( get_post_type(), array( 'wp-parser-function', 'wp-parser-method' ) ) ) { 93 $title .= '()'; 94 } 95 96 return $title; 97 } 98 add_filter( 'the_title', 'wporg_filter_archive_title' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r773 r781 623 623 624 624 /** 625 * Retrieve either the starting or ending line number. 626 * 627 * @param int $post_id Optional. The post ID. 628 * @param string $type Optional. Either 'start' for starting line number, or 'end' for ending line number. 629 * 630 * @return int 631 */ 632 function get_line_number( $post_id = null, $type = 'start' ) { 633 634 $post_id = empty( $post_id ) ? get_the_ID() : $post_id; 635 $meta_key = ( 'end' == $type ) ? '_wp-parser_end_line_num' : '_wp-parser_line_num'; 636 637 return (int) get_post_meta( $post_id, $meta_key, true ); 638 } 639 640 /** 625 641 * Retrieve the URL to the actual source file and line. 626 642 * -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss
r780 r781 883 883 } 884 884 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 885 903 .single { 886 904 .wp-parser-class, .wp-parser-function, .wp-parser-hook, .wp-parser-method { -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/search.php
r742 r781 24 24 <?php while ( have_posts() ) : the_post(); ?> 25 25 26 <?php get_template_part( 'content', 'reference ' ); ?>26 <?php get_template_part( 'content', 'reference-archive' ); ?> 27 27 28 28 <?php endwhile; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css
r780 r781 1094 1094 padding: 20px; 1095 1095 } 1096 .devhub-wrap.archive .wp-parser-class h1 a, .devhub-wrap.archive .wp-parser-function h1 a, .devhub-wrap.archive .wp-parser-hook h1 a, .devhub-wrap.archive .wp-parser-method h1 a, .devhub-wrap.search .wp-parser-class h1 a, .devhub-wrap.search .wp-parser-function h1 a, .devhub-wrap.search .wp-parser-hook h1 a, .devhub-wrap.search .wp-parser-method h1 a { 1097 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 1098 color: #21759b; 1099 font-weight: normal; 1100 } 1101 .devhub-wrap.archive .wp-parser-class div.sourcefile, .devhub-wrap.archive .wp-parser-function div.sourcefile, .devhub-wrap.archive .wp-parser-hook div.sourcefile, .devhub-wrap.archive .wp-parser-method div.sourcefile, .devhub-wrap.search .wp-parser-class div.sourcefile, .devhub-wrap.search .wp-parser-function div.sourcefile, .devhub-wrap.search .wp-parser-hook div.sourcefile, .devhub-wrap.search .wp-parser-method div.sourcefile { 1102 color: #999999; 1103 font-style: italic; 1104 } 1096 1105 .devhub-wrap .single .wp-parser-class, .devhub-wrap .single .wp-parser-function, .devhub-wrap .single .wp-parser-hook, .devhub-wrap .single .wp-parser-method { 1097 1106 border-bottom-style: none;
Note: See TracChangeset
for help on using the changeset viewer.