Tweaks to the dashboard planet display
git-svn-id: http://svn.automattic.com/wordpress/trunk@2201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c19e40c302
commit
24036be935
|
@ -88,7 +88,7 @@ if (0 < $numcats) $numcats = number_format($numcats);
|
|||
$rss = @fetch_rss('http://feedster.com/links.php?url='. trailingslashit(get_option('home')) .'&type=rss&limit=6');
|
||||
if ( isset($rss->items) && 0 != count($rss->items) ) {
|
||||
?>
|
||||
<div>
|
||||
<div id="incominglinks">
|
||||
<h3><?php _e('Incoming Links'); ?> <cite><a href="http://feedster.com/links.php?url=<?php echo trailingslashit(get_option('home')); ?>"><?php _e('More'); ?> »</a></cite></h3>
|
||||
<ul>
|
||||
<?php
|
||||
|
@ -121,11 +121,13 @@ foreach ($rss->items as $item ) {
|
|||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$rss = @fetch_rss('http://planet.wordpress.org/feed/');
|
||||
//var_dump($rss);
|
||||
if ( $rss ) {
|
||||
?>
|
||||
<div id="planetnews">
|
||||
<h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> »</a></h3>
|
||||
<ul>
|
||||
<?php
|
||||
|
@ -137,12 +139,14 @@ foreach ($rss->items as $item ) {
|
|||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div style="clear: both">
|
||||
<br clear="all" />
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID");
|
||||
if ($drafts) {
|
||||
|
|
|
@ -13,6 +13,26 @@ a.delete:hover {
|
|||
color: #fff;
|
||||
}
|
||||
|
||||
#planetnews ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#planetnews li {
|
||||
width: 16%;
|
||||
margin: 1% 2%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#planetnews li a {
|
||||
display: block;
|
||||
padding: .5em;
|
||||
background: #ddd;
|
||||
height: 6em;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
a.edit, a.delete, a.edit:hover, a.delete:hover {
|
||||
border-bottom: none;
|
||||
display: block;
|
||||
|
|
Loading…
Reference in New Issue