mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 18:48:57 +01:00
339e87dc5c
git-svn-id: http://svn.automattic.com/wordpress/trunk@8973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
80 lines
2.2 KiB
PHP
80 lines
2.2 KiB
PHP
<?php
|
|
require_once('admin.php');
|
|
|
|
$title = __('Inbox');
|
|
$parent_file = 'inbox.php';
|
|
|
|
require_once('admin-header.php');
|
|
|
|
if ( !empty($_GET['doaction']) ) :
|
|
|
|
?>
|
|
|
|
<div class="updated">
|
|
<p>This feature isn't enabled in this prototype.</p>
|
|
</div>
|
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
?>
|
|
<div class="wrap">
|
|
<form id="inbox-filter" action="" method="get">
|
|
<h2><?php _e('Inbox'); ?></h2>
|
|
<ul class="subsubsub">
|
|
<li><a href="#" class="current"><?php _e('Messages') ?></a> | </li><li><a href="#"><?php echo sprintf(__('Archived') . ' (%s)', '42'); ?></a></li>
|
|
</ul>
|
|
<div class="tablenav">
|
|
<div class="alignleft">
|
|
<select name="action">
|
|
<option value="" selected><?php _e('Actions'); ?></option>
|
|
<option value="archive"><?php _e('Archive'); ?></option>
|
|
</select>
|
|
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
|
|
</div>
|
|
<br class="clear" />
|
|
</div>
|
|
<br class="clear" />
|
|
<table class="widefat">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="check-column"><input type="checkbox" /></th>
|
|
<th scope="col"><?php _e('Message'); ?></th>
|
|
<th scope="col"><?php _e('Date'); ?></th>
|
|
<th scope="col"><?php _e('From'); ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php $crazy_posts = array( '', 'some post', 'a post', 'my cool post' ); foreach ( wp_get_inbox_items() as $k => $item ) : // crazyhorse ?>
|
|
|
|
<tr id="message-<?php echo $k; ?>">
|
|
<th scope="col" class="check-column"><input type="checkbox" name="messages[]" value="<?php echo $k; ?>" /></th>
|
|
<td><?php
|
|
if ( $item->href )
|
|
echo "<a href='$item->href' class='no-crazy'>";
|
|
echo wp_specialchars( $item->text );
|
|
if ( strlen( $item->text ) > 180 ) // crazyhorse
|
|
echo '<br/><span class="inbox-more">more…</span>';
|
|
if ( $item->href )
|
|
echo '</a>';
|
|
?></td>
|
|
<td><a href="#link-to-comment" class="no-crazy"><abbr title="<?php echo "$item->date at $item->time"; ?>"><?php echo $item->date; ?></abbr></a></td>
|
|
<td><?php
|
|
echo $item->from;
|
|
if ( 'comment' == $item->type ) // crazyhorse
|
|
echo "<br/>on "<a href='#' class='no-crazy'>{$crazy_posts[$item->parent]}</a>"";
|
|
?></td>
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<div class="tablenav"></div>
|
|
<br class="clear"/>
|
|
</div>
|
|
<?php include('admin-footer.php'); ?>
|