示例#1
0
    function show($post)
    {
        $tags = str_replace(',', ', ', MetaData::get_tags($post->ID));
        ?>
	<td><?php 
        echo htmlspecialchars($post->post_title);
        ?>
</td>
	<td width="60%" id="tags_<?php 
        echo $post->ID;
        ?>
">
		<input style="width: 95%" type="text" name="edit[<?php 
        echo $post->ID;
        ?>
]" value="<?php 
        echo htmlspecialchars($tags);
        ?>
" id="edit_<?php 
        echo $post->ID;
        ?>
"/>
	</td>
	<td width="16"><a class="tag" href="<?php 
        echo admin_url('admin-ajax.php');
        ?>
?id=<?php 
        echo $post->ID;
        ?>
&amp;action=hs_auto_tag&amp;_ajax_nonce=<?php 
        echo wp_create_nonce('headspace-auto_tag_' . $post->ID);
        ?>
"><img src="../wp-content/plugins/headspace2/images/refresh.png" width="16" height="16" alt="View"/></a></td>
	<?php 
    }