Esempio n. 1
0
function sendit_content_box($post)
{
    global $post;
    $posts = extract_posts();
    foreach ($posts as $post) {
        ?>
	<div class="post_box">
	<table>
		<tr>
			<th style="width:200px; text-align:left;"><?php 
        echo $post->post_title;
        ?>
</th><td><a class="button-secondary send_to_editor">Send to Editor &raquo;</a></td>
		</tr>
	</table>
    	<div class="content_to_send" style="display:none;"><h2><a href="<?php 
        echo get_permalink($post->ID);
        ?>
"><?php 
        echo $post->post_title;
        ?>
</a></h2><?php 
        echo apply_filters('the_excerpt', $post->post_content);
        ?>
<a href="<?php 
        echo get_permalink($post->ID);
        ?>
">Read more...</a>
    	</div>
    </div>

	<?php 
    }
}
Esempio n. 2
0
function sendit_content_box($post)
{
    /*
    TO DO: Readmore customizing 
    */
    global $post;
    $posts = extract_posts();
    foreach ($posts as $post) {
        ?>
	<div class="post_box">
	<table>
		<tr>
			<th style="width:200px; text-align:left;"><?php 
        echo $post->post_title;
        ?>
</th><td><a class="button-secondary send_to_editor" data-content-type="post" data-post-id="<?php 
        echo $post->ID;
        ?>
">Send to Editor &raquo;</a></td>
		</tr>
	</table>

    </div>

<?php 
    }
}