-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:krogsgard/wporg-developer
Conflicts: content.php footer.php functions.php header.php index.php style.css
- Loading branch information
Showing
10 changed files
with
1,778 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php namespace DevHub; ?> | ||
<?php get_header(); ?> | ||
|
||
<div class="<?php body_class( 'pagebody' ) ?>"> | ||
<div class="wrapper"> | ||
|
||
<?php breadcrumb_trail(); ?> | ||
|
||
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | ||
|
||
<?php /** @var \WP_Query $wp_query */ if ( $wp_query->current_post ) : ?> | ||
<hr /> | ||
<?php endif; ?> | ||
|
||
<?php get_template_part( 'content', get_post_type() ); ?> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php else : ?> | ||
|
||
<h1><?php _e( 'Not Found', 'wporg' ); ?></h1> | ||
|
||
<?php endif; ?> | ||
|
||
<?php loop_pagination(); ?> | ||
|
||
</div> | ||
<!-- /wrapper --> | ||
</div><!-- /pagebody --> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php namespace DevHub; ?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
|
||
<h1><a href="<?php the_permalink() ?>"><?php echo get_signature(); ?></a></h1> | ||
|
||
<section class="description"> | ||
<?php the_excerpt(); ?> | ||
</section> | ||
|
||
<section class="long-description"> | ||
<?php the_content(); ?> | ||
</section> | ||
|
||
<section class="return"><strong>Return:</strong> <?php echo get_return(); ?></section> | ||
|
||
<?php | ||
$since = get_since(); | ||
if ( ! empty( $since ) ) : | ||
?> | ||
<section class="since"> | ||
<strong>Since:</strong> WordPress | ||
<a href="<?php echo get_since_link( $since ); ?>"><?php echo $since; ?></a> | ||
</section> | ||
<?php endif; ?> | ||
|
||
<section class="meta">Used by TODO | Uses TODO | TODO Examples</section> | ||
|
||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php get_header(); ?> | ||
|
||
<div class="pagebody"> | ||
<div class="wrapper"> | ||
|
||
<div class="reference-landing"> | ||
|
||
<div class="search-guide section clear"> | ||
<h3><?php _e( 'Find what you need:', 'wporg' ); ?></h3> | ||
<?php get_search_form(); ?> | ||
</div><!-- /search-guide --> | ||
|
||
<div class="topic-guide section"> | ||
<h4><?php _e( 'Or browse through topics:', 'wporg' ); ?></h4> | ||
<ul class="unordered-list horizontal-list no-bullets"> | ||
<li><a href="<?php echo get_post_type_archive_link( 'wpapi-function' ) ?>"><?php _e( 'Functions', 'wporg' ); ?></a></li> | ||
<li><a href="<?php echo get_post_type_archive_link( 'wpapi-hook' ) ?>"><?php _e( 'Hooks', 'wporg' ); ?></a></li> | ||
<li><a href="<?php echo get_post_type_archive_link( 'wpapi-class' ) ?>"><?php _e( 'Classes', 'wporg' ); ?></a></li> | ||
</ul> | ||
</div><!-- /topic-guide --> | ||
|
||
<div class="new-in-guide section clear"> | ||
<div class="widget box box-left"> | ||
<h3 class="widget-title"><?php $version = DevHub\get_current_version(); printf( __( 'New in %s:', 'wporg' ), $version->name ); ?></h3> | ||
<ul class="unordered-list no-bullets"> | ||
<?php | ||
|
||
$list = new WP_Query( array( | ||
'posts_per_page' => 10, | ||
'post_type' => array( 'wpapi-function', 'wpapi-hook', 'wpapi-class' ), | ||
'orderby' => 'title', | ||
'order' => 'ASC', | ||
'tax_query' => array( array( | ||
'taxonomy' => 'wpapi-since', | ||
'field' => 'ids', | ||
'terms' => $version->term_id, | ||
) ), | ||
) ); | ||
|
||
while ( $list->have_posts() ) : $list->the_post(); | ||
|
||
echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>'; | ||
|
||
endwhile; | ||
?> | ||
</ul> | ||
</div> | ||
<div class="widget box box-right"> | ||
<h3 class="widget-title"><?php _e( 'APIs', 'wporg' ); ?></h3> | ||
<ul class="unordered-list no-bullets"> | ||
<li><a href="#">Some API</a></li> | ||
<li><a href="#">Some other API</a></li> | ||
<li><a href="#">Another new API</a></li> | ||
</ul> | ||
</div> | ||
</div><!-- /new-in-guide --> | ||
|
||
</div><!-- /reference-landing --> | ||
|
||
</div><!-- /wrapper --> | ||
</div><!-- /pagebody --> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.