function gdm_blogger_scheduling_metabox($post)
    {
        require_once GDM_CLIENTS_CLASS;
        $clients = new gdm_clients();
        $requested_client = get_post_meta($post->ID, gdm_blogger_requested_client, true);
        if (is_numeric($requested_client)) {
            $category_list = $clients->get_client_categories($requested_client);
            ?>
				<table>
					<tr>
						<td style="width: 60%">
							<p>The author of this post has requested the category group:<br>
							<i><?php 
            echo implode(", ", $category_list);
            ?>
</i><br>
							Is this post is ready for publishing? Please leave a note for the author.
							<select name="gdm_blogger_approved">
								<option value=""></option>
								<option value="yes">Yes</option>
								<option value="no">No</option>
							</select></p>
						</td>
						<td style="width: 40%">
							<textarea rows="3" cols="40" name="gdm_blogger_notes">Notes:</textarea>
						</td>
					</tr>
				</table>
				<?php 
        } else {
            echo "<p>The author of this post has not requested this post be assigned to any client yet.</p>";
        }
    }
Example #2
0
<h2>Blogging Options</h2>

<table class="form-table">
	<?php 
require_once GDM_CLIENTS_CLASS;
$gdm_clients = new gdm_clients();
if (current_user_can('edit_gdm_profile') || current_user_can('promote_users')) {
    // if is admin or gdm client
    $categories = implode(", ", $gdm_clients->get_client_categories($user->ID));
    ?>
		<tr>
			<th><label for="gdm_client_categories">Interested Categories</label></th>
			<td>
			<input type="text" name="gdm_client_categories" value="<?php 
    echo $categories;
    ?>
"><br>
			<small>Comma-Seperated list of categories you would like us to blog about</small>
		</td>
		<tr>
			<th><label for="gdm_client_categories">Website To Blog To</label></th>
			<td>
			<input type="text" name="gdm_client_website" value="<?php 
    echo $gdm_clients->list[$user->ID]['url'];
    ?>
"><br>
			<small>The website your posts will be sent to</small>
		</td>
		<?php 
}
?>