Make WordPress Core


Ignore:
Timestamp:
12/20/2007 08:23:30 PM (17 years ago)
Author:
matt
Message:

To avoid monolithic commits I'm going to be bringing this in piece by piece. No need to file bug about lack of styling, it's on purpose right now. Trunk will be hit with the oogly stick for 2-3 days. This brings in structure for new dashboard.

File:
1 edited

Legend:

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

    r6026 r6431  
    1010
    1111$rss_feed = apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) );
    12 $more_link = apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) );
     12
    1313
    1414$rss = @fetch_rss( $rss_feed );
    1515if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results
    1616?>
    17 <h3><?php _e('Incoming Links'); ?> <cite><a href="<?php echo htmlspecialchars( $more_link ); ?>"><?php _e('More &raquo;'); ?></a></cite></h3>
     17
    1818<ul>
    1919<?php
     
    2525</ul>
    2626<?php
     27} else {
     28?>
     29<p><?php _e('No incoming links found... yet.'); ?></p>
     30<?php
    2731}
    2832break;
     
    3135$rss = @fetch_rss(apply_filters( 'dashboard_primary_feed', 'http://wordpress.org/development/feed/' ));
    3236if ( isset($rss->items) && 0 != count($rss->items) ) {
    33 ?>
    34 <h3><?php echo apply_filters( 'dashboard_primary_title', __('WordPress Development Blog') ); ?></h3>
    35 <?php
    36 $rss->items = array_slice($rss->items, 0, 3);
     37
     38$rss->items = array_slice($rss->items, 0, 2);
    3739foreach ($rss->items as $item ) {
    3840?>
    39 <h4><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> &#8212; <?php printf(__('%s ago'), human_time_diff(strtotime($item['pubdate'], time() ) ) ); ?></h4>
     41<h4><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> <?php gmdate( 'Y/m/d', strtotime( $item['pubdate'] ) ); ?></h4>
    4042<p><?php echo $item['description']; ?></p>
    4143<?php
Note: See TracChangeset for help on using the changeset viewer.