Changeset 8282
- Timestamp:
- 07/08/08 02:45:53 (5 months ago)
- Files:
-
- branches/crazyhorse/wp-admin/inbox.php (modified) (2 diffs)
- branches/crazyhorse/wp-admin/includes/comment.php (modified) (3 diffs)
- branches/crazyhorse/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/crazyhorse/wp-admin/inbox.php
r8227 r8282 36 36 <tbody> 37 37 38 <?php foreach ( wp_get_inbox_items() as $k => $item ) :?>38 <?php $crazy_posts = array( '', 'some post', 'a post', 'my cool post' ); foreach ( wp_get_inbox_items() as $k => $item ) : // crazyhorse ?> 39 39 40 40 <tr id="message-<?php echo $k; ?>"> 41 41 <th scope="col" class="check-column"><input type="checkbox" name="messages[]" value="<?php echo $k; ?>" /></td> 42 42 <td><?php 43 echo $item->text; 44 if ( strlen( $item->text ) > 180 ) 45 echo '<br/><a class="inbox-more" href="#">more...</a>'; 43 if ( $item->href ) 44 echo "<a href='$item->href'>"; 45 echo wp_specialchars( $item->text ); 46 if ( strlen( $item->text ) > 180 ) // crazyhorse 47 echo '<br/><span class="inbox-more">more…</span>'; 48 if ( $item->href ) 49 echo '</a>'; 46 50 ?></td> 47 51 <td><a href="#link-to-comment"><abbr title="<?php echo "$item->date at $item->time"; ?>"><?php echo $item->date; ?></abbr></a></td> 48 52 <td><?php 49 53 echo $item->from; 50 if ( 'comment' == 'type' )51 echo '<br/>on "<a href="#">Post</a>"';54 if ( 'comment' == $item->type ) // crazyhorse 55 echo "<br/>on "<a href='#'>{$crazy_posts[$item->parent]}</a>""; 52 56 ?></td> 53 57 </tr> … … 57 61 </table> 58 62 </form> 63 59 64 <div class="tablenav"></div> 60 65 <br class="clear"/> branches/crazyhorse/wp-admin/includes/comment.php
r8227 r8282 121 121 'from' => 'I. monroe', 122 122 'type' => 'comment', 123 'parent' => '1' 123 'parent' => '1', 124 'href' => '#' 124 125 ); 125 126 126 127 $r[] = (object) array( 127 'text' => ' <a href="#">Announcement: WordPress introduces new features for mobile blogging</a>.',128 'text' => 'Announcement: WordPress introduces new features for mobile blogging.', 128 129 'date' => '2008/09/06', 129 130 'time' => '3:24pm', 130 131 'from' => 'WordPress.org', 131 132 'type' => 'announcement', 132 'parent' => '0' 133 'parent' => '0', 134 'href' => '#' 133 135 ); 134 136 … … 139 141 'from' => 'matt', 140 142 'type' => 'comment', 141 'parent' => '2' 143 'parent' => '2', 144 'href' => '#' 142 145 ); 143 146 … … 148 151 'from' => 'caped crusader', 149 152 'type' => 'comment', 150 'parent' => '3' 153 'parent' => '3', 154 'href' => '#' 151 155 ); 152 156 branches/crazyhorse/wp-admin/includes/dashboard.php
r8275 r8282 445 445 <ul> 446 446 447 <?php foreach ( wp_get_inbox_items() as $k => $item ) :?>447 <?php $crazy_posts = array( '', 'some post', 'a post', 'my cool post' ); foreach ( wp_get_inbox_items() as $k => $item ) : // crazyhorse ?> 448 448 449 449 <li id="message-<?php echo $k; ?>"> 450 450 <input type="checkbox" name="messages[]" value="<?php echo $k; ?>" class="checkbox" /> 451 451 <p><?php 452 echo $item->text; 453 if ( strlen( $item->text ) > 180 ) 454 echo ' <a class="inbox-more" href="#">more...</a>';; 452 if ( $item->href ) 453 echo "<a href='$item->href'>"; 454 echo wp_specialchars( $item->text ); 455 if ( strlen( $item->text ) > 180 ) // crazyhorse 456 echo '<br/><span class="inbox-more">more…</span>'; 457 if ( $item->href ) 458 echo '</a>'; 455 459 ?><br /> 456 -- <cite><?php echo $item->from; ?></cite>, <?php echo "$item->date, $item->time"; ?> 460 -- <cite><?php 461 echo $item->from; 462 if ( 'comment' == $item->type ) // crazyhorse 463 echo " on "<a href='#'>{$crazy_posts[$item->parent]}</a>""; 464 ?></cite>, <?php echo "$item->date, $item->time"; ?> 457 465 </p> 458 466 </li>
