Skip to content

Commit 768c5f8

Browse files
committed
Tweaks to the dashboard planet display
git-svn-id: https://develop.svn.wordpress.org/trunk@2201 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f365442 commit 768c5f8

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

wp-admin/index.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
$rss = @fetch_rss('http://feedster.com/links.php?url='. trailingslashit(get_option('home')) .'&type=rss&limit=6');
8989
if ( isset($rss->items) && 0 != count($rss->items) ) {
9090
?>
91-
<div>
91+
<div id="incominglinks">
9292
<h3><?php _e('Incoming Links'); ?> <cite><a href="http://feedster.com/links.php?url=<?php echo trailingslashit(get_option('home')); ?>"><?php _e('More'); ?> &raquo;</a></cite></h3>
9393
<ul>
9494
<?php
@@ -121,11 +121,13 @@
121121
}
122122
?>
123123

124+
124125
<?php
125126
$rss = @fetch_rss('http://planet.wordpress.org/feed/');
126127
//var_dump($rss);
127128
if ( $rss ) {
128129
?>
130+
<div id="planetnews">
129131
<h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> &raquo;</a></h3>
130132
<ul>
131133
<?php
@@ -137,12 +139,14 @@
137139
}
138140
?>
139141
</ul>
142+
</div>
140143
<?php
141144
}
142145
?>
143-
146+
<div style="clear: both">&nbsp;
144147
<br clear="all" />
145148
</div>
149+
</div>
146150
<?php
147151
$drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID");
148152
if ($drafts) {

wp-admin/wp-admin.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,26 @@ a.delete:hover {
1313
color: #fff;
1414
}
1515

16+
#planetnews ul {
17+
list-style: none;
18+
margin: 0;
19+
padding: 0;
20+
}
21+
22+
#planetnews li {
23+
width: 16%;
24+
margin: 1% 2%;
25+
float: left;
26+
}
27+
28+
#planetnews li a {
29+
display: block;
30+
padding: .5em;
31+
background: #ddd;
32+
height: 6em;
33+
overflow: hidden;
34+
}
35+
1636
a.edit, a.delete, a.edit:hover, a.delete:hover {
1737
border-bottom: none;
1838
display: block;

0 commit comments

Comments
 (0)