Make WordPress Core


Ignore:
Timestamp:
10/06/2006 01:14:47 AM (18 years ago)
Author:
matt
Message:

Some UI cleanups, changes, and various miscellany.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r4295 r4349  
    133133if ( isset($rss->items) && 0 != count($rss->items) ) {
    134134?>
    135 <h3><?php _e('WordPress Development News'); ?></h3>
     135<div id="devnews">
     136<h3><?php _e('WordPress Development Blog'); ?></h3>
    136137<?php
    137138$rss->items = array_slice($rss->items, 0, 3);
     
    144145}
    145146?>
    146 
     147</div>
    147148
    148149<?php
     
    151152?>
    152153<div id="planetnews">
    153 <h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> &raquo;</a></h3>
     154<h3><?php _e('Other WordPress News'); ?></h3>
    154155<ul>
    155156<?php
    156157$rss->items = array_slice($rss->items, 0, 20);
    157158foreach ($rss->items as $item ) {
     159$title = wp_specialchars($item['title']);
     160$author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] );
     161$post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] );
    158162?>
    159 <li><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li>
     163<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>
    160164<?php
    161165    }
    162166?>
    163167</ul>
     168<p class="readmore"><a href="http://planet.wordpress.org/"><?php _e('Read more'); ?> &raquo;</a></p>
    164169</div>
    165170<?php
Note: See TracChangeset for help on using the changeset viewer.