Skip to content

Commit 3c9697a

Browse files
committed
plugins.jquery.com: Adjust markup for recent updates.
1 parent 71a48e3 commit 3c9697a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

themes/plugins.jquery.com/functions.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function jq_updated_plugins( $total = 10 ) {
9393
$added = array();
9494
$updated_plugins = new WP_Query( $updated_plugins_args );
9595
if ( $updated_plugins->have_posts() ):
96-
echo '<ul>';
96+
echo '<ul class="recent-updates">';
9797
while ( $updated_plugins->have_posts() ) :
9898
$updated_plugins->the_post();
9999
$parent_id = $post->post_parent;
@@ -106,7 +106,7 @@ function jq_updated_plugins( $total = 10 ) {
106106

107107
?>
108108
<li>
109-
<a href="/<?php echo $parent->post_name . '/' . $post->post_name ?>/"><?php echo $post->post_title; ?></a><br />
109+
<a href="/<?php echo $parent->post_name . '/' . $post->post_name ?>/"><?php echo $post->post_title; ?></a><br>
110110
(version <?php echo $post->post_name; ?>)
111111
</li>
112112
<?php

themes/plugins.jquery.com/style.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ a {
1111
float: right;
1212
}
1313

14-
#sidebar .popular-tags a {
14+
#sidebar .popular-tags a,
15+
#sidebar .recent-updates a {
1516
display: inline-block;
1617
}
1718

19+
#sidebar .recent-updates li {
20+
padding-bottom: 8px;
21+
}
22+
1823
/*----------[ Notifications ]-----------------------------------------------*/
1924

2025
.notify {

0 commit comments

Comments
 (0)