Exemplo n.º 1
0
</div>
<?php 
    nxt_nonce_field('samplepermalink', 'samplepermalinknonce', false);
    ?>
</div>
<?php 
}
?>

<?php 
if (post_type_supports($post_type, 'editor')) {
    ?>
<div id="postdivrich" class="postarea">

<?php 
    nxt_editor($post->post_content, 'content', array('dfw' => true, 'tabindex' => 1));
    ?>

<table id="post-status-info" cellspacing="0"><tbody><tr>
	<td id="nxt-word-count"><?php 
    printf(__('Word count: %s'), '<span class="word-count">0</span>');
    ?>
</td>
	<td class="autosave-info">
	<span class="autosave-message">&nbsp;</span>
<?php 
    if ('auto-draft' != $post->post_status) {
        echo '<span id="last-edit">';
        if ($last_id = get_post_meta($post_ID, '_edit_last', true)) {
            $last_user = get_userdata($last_id);
            printf(__('Last edited by %1$s on %2$s at %3$s'), esc_html($last_user->display_name), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
Exemplo n.º 2
0
/**
 * Wrapper to overcome recent and any futher changes in nxt editor API
 * 
 * @see nxt_editor()
 * @param String $content, the content to be edited
 * @param String $target, target HTML element to be used on load
 * @param Mixed $settings, a bunch of settings to be used
 */
function courseware_editor($content, $target, $settings = array())
{
    $settings = array_merge($settings, array('dfw' => true));
    nxt_editor($content, $target, $settings);
}
Exemplo n.º 3
0
/**
 * {@internal Missing Short Description}}
 *
 * @since 2.7.0
 *
 * @param unknown_type $position
 * @param unknown_type $checkbox
 * @param unknown_type $mode
 */
function nxt_comment_reply($position = '1', $checkbox = false, $mode = 'single', $table_row = true)
{
    // allow plugin to replace the popup content
    $content = apply_filters('nxt_comment_reply', '', array('position' => $position, 'checkbox' => $checkbox, 'mode' => $mode));
    if (!empty($content)) {
        echo $content;
        return;
    }
    if ($mode == 'single') {
        $nxt_list_table = _get_list_table('nxt_Post_Comments_List_Table');
    } else {
        $nxt_list_table = _get_list_table('nxt_Comments_List_Table');
    }
    ?>
<form method="get" action="">
<?php 
    if ($table_row) {
        ?>
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" style="display:none;"><td colspan="<?php 
        echo $nxt_list_table->get_column_count();
        ?>
" class="colspanchange">
<?php 
    } else {
        ?>
<div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;">
<?php 
    }
    ?>
	<div id="replyhead" style="display:none;"><h5><?php 
    _e('Reply to Comment');
    ?>
</h5></div>

	<div id="edithead" style="display:none;">
		<div class="inside">
		<label for="author"><?php 
    _e('Name');
    ?>
</label>
		<input type="text" name="newcomment_author" size="50" value="" tabindex="101" id="author" />
		</div>

		<div class="inside">
		<label for="author-email"><?php 
    _e('E-mail');
    ?>
</label>
		<input type="text" name="newcomment_author_email" size="50" value="" tabindex="102" id="author-email" />
		</div>

		<div class="inside">
		<label for="author-url"><?php 
    _e('URL');
    ?>
</label>
		<input type="text" id="author-url" name="newcomment_author_url" size="103" value="" tabindex="103" />
		</div>
		<div style="clear:both;"></div>
	</div>

	<div id="replycontainer">
	<?php 
    $quicktags_settings = array('buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close');
    nxt_editor('', 'replycontent', array('media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings, 'tabindex' => 104));
    ?>
	</div>

	<p id="replysubmit" class="submit">
	<a href="#comments-form" class="cancel button-secondary alignleft" tabindex="106"><?php 
    _e('Cancel');
    ?>
</a>
	<a href="#comments-form" class="save button-primary alignright" tabindex="104">
	<span id="savebtn" style="display:none;"><?php 
    _e('Update Comment');
    ?>
</span>
	<span id="replybtn" style="display:none;"><?php 
    _e('Submit Reply');
    ?>
</span></a>
	<img class="waiting" style="display:none;" src="<?php 
    echo esc_url(admin_url('images/nxtspin_light.gif'));
    ?>
" alt="" />
	<span class="error" style="display:none;"></span>
	<br class="clear" />
	</p>

	<input type="hidden" name="user_ID" id="user_ID" value="<?php 
    echo get_current_user_id();
    ?>
" />
	<input type="hidden" name="action" id="action" value="" />
	<input type="hidden" name="comment_ID" id="comment_ID" value="" />
	<input type="hidden" name="comment_post_ID" id="comment_post_ID" value="" />
	<input type="hidden" name="status" id="status" value="" />
	<input type="hidden" name="position" id="position" value="<?php 
    echo $position;
    ?>
" />
	<input type="hidden" name="checkbox" id="checkbox" value="<?php 
    echo $checkbox ? 1 : 0;
    ?>
" />
	<input type="hidden" name="mode" id="mode" value="<?php 
    echo esc_attr($mode);
    ?>
" />
	<?php 
    nxt_nonce_field('replyto-comment', '_ajax_nonce-replyto-comment', false);
    if (current_user_can('unfiltered_html')) {
        nxt_nonce_field('unfiltered-html-comment', '_nxt_unfiltered_html_comment', false);
    }
    if ($table_row) {
        ?>
</td></tr></tbody></table>
<?php 
    } else {
        ?>
</div></div>
<?php 
    }
    ?>
</form>
<?php 
}
Exemplo n.º 4
0
/**
 * Display editor: TinyMCE, HTML, or both.
 *
 * @since 2.1.0
 * @deprecated 3.3
 *
 * @param string $content Textarea content.
 * @param string $id Optional, default is 'content'. HTML ID attribute value.
 * @param string $prev_id Optional, not used
 * @param bool $media_buttons Optional, default is true. Whether to display media buttons.
 * @param int $tab_index Optional, not used
 */
function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true)
{
    nxt_editor($content, $id, array('media_buttons' => $media_buttons));
    return;
}
Exemplo n.º 5
0
</td>
	<td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php 
echo esc_attr($comment->comment_author_url);
?>
" tabindex="3" /></td>
</tr>
</tbody>
</table>
<br />
</div>
</div>

<div id="postdiv" class="postarea">
<?php 
$quicktags_settings = array('buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close');
nxt_editor($comment->comment_content, 'content', array('media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings));
nxt_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
?>
</div>

<?php 
do_action('add_meta_boxes', 'comment', $comment);
do_action('add_meta_boxes_comment', $comment);
do_meta_boxes(null, 'normal', $comment);
?>
<input type="hidden" name="c" value="<?php 
echo esc_attr($comment->comment_ID);
?>
" />
<input type="hidden" name="p" value="<?php 
echo esc_attr($comment->comment_post_ID);