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:
saxmatt 2005-02-02 10:36:59 +00:00
parent c19e40c302
commit 24036be935
2 changed files with 26 additions and 2 deletions

View File

@ -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'); $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) ) { 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'); ?> &raquo;</a></cite></h3> <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>
<ul> <ul>
<?php <?php
@ -121,11 +121,13 @@ foreach ($rss->items as $item ) {
} }
?> ?>
<?php <?php
$rss = @fetch_rss('http://planet.wordpress.org/feed/'); $rss = @fetch_rss('http://planet.wordpress.org/feed/');
//var_dump($rss); //var_dump($rss);
if ( $rss ) { if ( $rss ) {
?> ?>
<div id="planetnews">
<h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> &raquo;</a></h3> <h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> &raquo;</a></h3>
<ul> <ul>
<?php <?php
@ -137,12 +139,14 @@ foreach ($rss->items as $item ) {
} }
?> ?>
</ul> </ul>
</div>
<?php <?php
} }
?> ?>
<div style="clear: both">&nbsp;
<br clear="all" /> <br clear="all" />
</div> </div>
</div>
<?php <?php
$drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID"); $drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID");
if ($drafts) { if ($drafts) {

View File

@ -13,6 +13,26 @@ a.delete:hover {
color: #fff; 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 { a.edit, a.delete, a.edit:hover, a.delete:hover {
border-bottom: none; border-bottom: none;
display: block; display: block;