mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Some UI cleanups, changes, and various miscellany.
git-svn-id: https://develop.svn.wordpress.org/trunk@4349 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+9
-4
@@ -132,7 +132,8 @@ if (0 < $numcats) $numcats = number_format($numcats);
|
||||
$rss = @fetch_rss('http://wordpress.org/development/feed/');
|
||||
if ( isset($rss->items) && 0 != count($rss->items) ) {
|
||||
?>
|
||||
<h3><?php _e('WordPress Development News'); ?></h3>
|
||||
<div id="devnews">
|
||||
<h3><?php _e('WordPress Development Blog'); ?></h3>
|
||||
<?php
|
||||
$rss->items = array_slice($rss->items, 0, 3);
|
||||
foreach ($rss->items as $item ) {
|
||||
@@ -143,24 +144,28 @@ foreach ($rss->items as $item ) {
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$rss = @fetch_rss('http://planet.wordpress.org/feed/');
|
||||
if ( isset($rss->items) && 0 != count($rss->items) ) {
|
||||
?>
|
||||
<div id="planetnews">
|
||||
<h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> »</a></h3>
|
||||
<h3><?php _e('Other WordPress News'); ?></h3>
|
||||
<ul>
|
||||
<?php
|
||||
$rss->items = array_slice($rss->items, 0, 20);
|
||||
foreach ($rss->items as $item ) {
|
||||
$title = wp_specialchars($item['title']);
|
||||
$author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] );
|
||||
$post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] );
|
||||
?>
|
||||
<li><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li>
|
||||
<li><a href='<?php echo wp_filter_kses($item['link']); ?>'><span class="post"><?php echo $post; ?></span><span class="hidden"> - </span><cite><?php echo $author; ?></cite></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<p class="readmore"><a href="http://planet.wordpress.org/"><?php _e('Read more'); ?> »</a></p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user