Changeset 8842
- Timestamp:
- 05/20/2019 10:18:26 PM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
r8802 r8842 289 289 'devhub-menu' => __( 'Developer Resources Menu', 'wporg' ), 290 290 'devhub-cli-menu' => __( 'WP-CLI Commands Menu', 'wporg' ), 291 'reference-home-api' => __( 'Reference API Menu', 'wporg' ), 291 292 ) ); 292 293 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/page-reference-landing.php
r7442 r8842 44 44 45 45 $list = new WP_Query( array( 46 'posts_per_page' => 1 4,46 'posts_per_page' => 15, 47 47 'post_type' => DevHub\get_parsed_post_types(), 48 48 'orderby' => 'title', … … 56 56 57 57 while ( $list->have_posts() ) : $list->the_post(); 58 ?> 58 59 59 echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>'; 60 <li> 61 <a href="<?php esc_url( get_permalink() ); ?>" title="<?php the_title_attribute(); ?>"> 62 <?php the_title(); ?> 63 </a> 64 </li> 60 65 61 endwhile; 62 ?> 66 <?php endwhile; ?> 63 67 <li class="view-all-new-in"><a href="<?php echo esc_attr( get_term_link( $version, 'wp-parser-since' ) ); ?>"><?php _e( 'View all…', 'wporg' ); ?></a></li> 64 68 </ul> … … 69 73 <h3 class="widget-title"><?php _e( 'API', 'wporg' ); ?></h3> 70 74 <div class="widget-content"> 75 <?php 76 77 if ( has_nav_menu( 'reference-home-api' ) ) : 78 wp_nav_menu( 79 [ 80 'theme_location' => 'reference-home-api', 81 'menu_class' => 'unordered-list no-bullets', 82 ] 83 ); 84 else: 85 ?> 86 71 87 <ul class="unordered-list no-bullets"> 72 <li><a href="https://codex.wordpress.org/Dashboard_Widgets_API">Dashboard widgets</a></li> 73 <li><a href="https://codex.wordpress.org/Database_API">Database</a></li> 74 <li><a href="https://codex.wordpress.org/HTTP_API">HTTP API</a></li> 75 <li><a href="https://codex.wordpress.org/Filesystem_API">Filesystem</a></li> 76 <li><a href="https://codex.wordpress.org/Metadata_API">Metadata</a></li> 77 <li><a href="https://codex.wordpress.org/Options_API">Options</a></li> 78 <li><a href="https://codex.wordpress.org/Plugin_API">Plugins</a></li> 79 <li><a href="https://codex.wordpress.org/Quicktags_API">Quicktags</a></li> 80 <li><a href="https://developer.wordpress.org/rest-api/">REST API</a></li> 81 <li><a href="https://codex.wordpress.org/Rewrite_API">Rewrite</a></li> 82 <li><a href="https://codex.wordpress.org/Settings_API">Settings</a></li> 83 <li><a href="https://codex.wordpress.org/Shortcode_API">Shortcode</a></li> 84 <li><a href="https://codex.wordpress.org/Theme_Modification_API">Theme Modification</a></li> 85 <li><a href="https://codex.wordpress.org/Transients_API">Transients</a></li> 86 <li><a href="https://codex.wordpress.org/XML-RPC_WordPress_API">XML-RPC</a></li> 88 <li><a href="https://codex.wordpress.org/Dashboard_Widgets_API"><?php _e( 'Dashboard widgets', 'wporg'); ?></a></li> 89 <li><a href="https://codex.wordpress.org/Database_API"><?php _e( 'Database', 'worg' ); ?></a></li> 90 <li><a href="https://codex.wordpress.org/HTTP_API"><?php _e( 'HTTP API', 'wporg' ); ?></a></li> 91 <li><a href="https://codex.wordpress.org/Filesystem_API"><?php _e( 'Filesystem', 'wporg' ); ?></a></li> 92 <li><a href="https://codex.wordpress.org/Global_Variables"><?php _e( 'Global Variables', 'wporg' ); ?></a></li> 93 <li><a href="https://codex.wordpress.org/Metadata_API"><?php _e( 'Metadata', 'wporg' ); ?></a></li> 94 <li><a href="https://codex.wordpress.org/Options_API"><?php _e( 'Options', 'wporg' ); ?></a></li> 95 <li><a href="https://developer.wordpress.org/plugins/"><?php _e( 'Plugins', 'wporg' ); ?></a></li> 96 <li><a href="https://codex.wordpress.org/Quicktags_API"><?php _e( 'Quicktags', 'wporg' ); ?></a></li> 97 <li><a href="https://developer.wordpress.org/rest-api/"><?php _e( 'REST API', 'wporg' ); ?></a></li> 98 <li><a href="https://codex.wordpress.org/Rewrite_API"><?php _e( 'Rewrite', 'wporg' ); ?></a></li> 99 <li><a href="https://codex.wordpress.org/Settings_API"><?php _e( 'Settings', 'wporg' ); ?></a></li> 100 <li><a href="https://codex.wordpress.org/Shortcode_API"><?php _e( 'Shortcode', 'wporg' ); ?></a></li> 101 <li><a href="https://developer.wordpress.org/themes/"><?php _e( 'Theme Modification', 'wporg' ); ?></a></li> 102 <li><a href="https://codex.wordpress.org/Transients_API"><?php _e( 'Transients', 'wporg' ); ?></a></li> 103 <li><a href="https://codex.wordpress.org/XML-RPC_WordPress_API"><?php _e( 'XML-RPC', 'wporg' ); ?></a></li> 87 104 </ul> 105 <?php endif; ?> 106 88 107 </div> 89 108 </div>
Note: See TracChangeset
for help on using the changeset viewer.