2008-08-20 17:42:31 -04:00
|
|
|
<?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">
|
2008-09-08 02:01:33 -04:00
|
|
|
<li><a href="#" class="current"><?php _e('Messages') ?></a> | </li><li><a href="#"><?php echo sprintf(__('Archived') . ' (%s)', '42'); ?></a></li>
|
2008-08-20 17:42:31 -04:00
|
|
|
</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>
|
2008-09-25 09:42:34 -04:00
|
|
|
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
|
2008-08-20 17:42:31 -04:00
|
|
|
</div>
|
|
|
|
<br class="clear" />
|
|
|
|
</div>
|
|
|
|
<br class="clear" />
|
|
|
|
<table class="widefat">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2008-09-08 02:01:33 -04:00
|
|
|
<th scope="col" class="check-column"><input type="checkbox" /></th>
|
2008-08-20 17:42:31 -04:00
|
|
|
<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; ?>">
|
2008-09-08 02:01:33 -04:00
|
|
|
<th scope="col" class="check-column"><input type="checkbox" name="messages[]" value="<?php echo $k; ?>" /></th>
|
2008-08-20 17:42:31 -04:00
|
|
|
<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'); ?>
|