Skip to content

Commit db6ec39

Browse files
committed
plugins.jquery.com: Use content-listing template on index page; move version and release date to entry-meta.
1 parent 7bb48c4 commit db6ec39

File tree

3 files changed

+9
-23
lines changed

3 files changed

+9
-23
lines changed

themes/plugins.jquery.com/content-listing.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<article class="hentry clearfix">
22
<header class="entry-header">
3+
<div class="entry-meta">
4+
Version <?php $latest = get_post_meta( $post->ID, 'latest' ); echo $latest[0]; ?><br>
5+
Released <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>
6+
</div>
37
<h2 class="entry-title">
48
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
59
</h2>
610
</header>
711
<div class="entry-summary row collapse">
812
<div class="eight columns">
9-
<p class="info">
10-
Version <?php $latest = get_post_meta( $post->ID, 'latest' ); echo $latest[0]; ?> -
11-
Released <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago.'; ?>
12-
</p>
1313
<?php the_excerpt(); ?>
1414
</div>
1515
<div class="four columns">

themes/plugins.jquery.com/index.php

+2-19
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,9 @@
2424
'order' => 'DESC'
2525
));
2626
while ( $new_plugins->have_posts() ) : $new_plugins->the_post();
27+
get_template_part( 'content', 'listing' );
28+
endwhile; wp_reset_postdata();
2729
?>
28-
<article class="hentry clearfix">
29-
<header class="entry-header">
30-
<div class="entry-meta">
31-
Updated <?php the_date(); ?>
32-
</div>
33-
<h3 class="entry-title">
34-
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
35-
</h3>
36-
</head>
37-
<div class="entry-summary row">
38-
<div class="eight columns">
39-
<?php the_excerpt(); ?>
40-
</div>
41-
<div class="four columns">
42-
<a class="button" href="<?php the_permalink(); ?>">View Plugin</a>
43-
</div>
44-
</div>
45-
</article>
46-
<?php endwhile; wp_reset_postdata(); ?>
4730
</div>
4831

4932
<div class="three columns">

themes/plugins.jquery.com/style.css

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ a {
2020
padding-bottom: 8px;
2121
}
2222

23+
.entry-meta {
24+
text-align: right;
25+
}
2326
/*----------[ Notifications ]-----------------------------------------------*/
2427

2528
.notify {

0 commit comments

Comments
 (0)