2008-08-20 23:42:31 +02:00
|
|
|
<?php
|
2008-10-02 03:02:17 +02:00
|
|
|
/**
|
|
|
|
* New Comment management "Inbox" Administration Panel feature.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Administration bootstrap */
|
2008-08-20 23:42:31 +02:00
|
|
|
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">
|
|
|
|
<ul class="subsubsub">
|
2008-09-08 08:01:33 +02: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 23:42:31 +02: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 15:42:34 +02:00
|
|
|
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
|
2008-08-20 23:42:31 +02:00
|
|
|
</div>
|
|
|
|
<br class="clear" />
|
|
|
|
</div>
|
|
|
|
<br class="clear" />
|
|
|
|
<table class="widefat">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2008-09-08 08:01:33 +02:00
|
|
|
<th scope="col" class="check-column"><input type="checkbox" /></th>
|
2008-08-20 23:42:31 +02: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 08:01:33 +02:00
|
|
|
<th scope="col" class="check-column"><input type="checkbox" name="messages[]" value="<?php echo $k; ?>" /></th>
|
2008-08-20 23:42:31 +02: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'); ?>
|