当前位置: 首页>>代码示例>>PHP>>正文


PHP get_tags_to_edit函数代码示例

本文整理汇总了PHP中get_tags_to_edit函数的典型用法代码示例。如果您正苦于以下问题:PHP get_tags_to_edit函数的具体用法?PHP get_tags_to_edit怎么用?PHP get_tags_to_edit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_tags_to_edit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: postbox_classes

<?php 
echo $form_pingback;
echo $form_prevstatus;
?>

<div id="tagsdiv" class="postbox <?php 
echo postbox_classes('tagsdiv', 'post');
?>
">
<h3><?php 
_e('Tags');
?>
</h3>
<div class="inside">
<p id="jaxtag"><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php 
echo get_tags_to_edit($post_ID);
?>
" /></p>
<div id="tagchecklist"></div>
</div>
</div>

<div id="categorydiv" class="postbox <?php 
echo postbox_classes('categorydiv', 'post');
?>
">
<h3><?php 
_e('Categories');
?>
</h3>
<div class="inside">
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-form-advanced.php

示例2: get_inline_data

/**
 * {@internal Missing Short Description}}
 *
 * @since unknown
 *
 * @param unknown_type $post
 */
function get_inline_data($post) {

	if ( ! current_user_can('edit_' . $post->post_type, $post->ID) )
		return;

	$title = attribute_escape($post->post_title);

	echo '
<div class="hidden" id="inline_' . $post->ID . '">
	<div class="post_title">' . $title . '</div>
	<div class="post_name">' . $post->post_name . '</div>
	<div class="post_author">' . $post->post_author . '</div>
	<div class="comment_status">' . $post->comment_status . '</div>
	<div class="ping_status">' . $post->ping_status . '</div>
	<div class="_status">' . $post->post_status . '</div>
	<div class="jj">' . mysql2date( 'd', $post->post_date ) . '</div>
	<div class="mm">' . mysql2date( 'm', $post->post_date ) . '</div>
	<div class="aa">' . mysql2date( 'Y', $post->post_date ) . '</div>
	<div class="hh">' . mysql2date( 'H', $post->post_date ) . '</div>
	<div class="mn">' . mysql2date( 'i', $post->post_date ) . '</div>
	<div class="ss">' . mysql2date( 's', $post->post_date ) . '</div>
	<div class="post_password">' . wp_specialchars($post->post_password, 1) . '</div>';

	if( $post->post_type == 'page' )
		echo '
	<div class="post_parent">' . $post->post_parent . '</div>
	<div class="page_template">' . wp_specialchars(get_post_meta( $post->ID, '_wp_page_template', true ), 1) . '</div>
	<div class="menu_order">' . $post->menu_order . '</div>';

	if( $post->post_type == 'post' )
		echo '
	<div class="tags_input">' . wp_specialchars( str_replace( ',', ', ', get_tags_to_edit($post->ID) ), 1) . '</div>
	<div class="post_category">' . implode( ',', wp_get_post_categories( $post->ID ) ) . '</div>
	<div class="sticky">' . (is_sticky($post->ID) ? 'sticky' : '') . '</div>';

	echo '</div>';
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:44,代码来源:template.php

示例3: wp_dashboard_quick_press

function wp_dashboard_quick_press() {
	$drafts = false;
	if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) {
		$view = get_permalink( $_POST['post_ID'] );
		$edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) );
		if ( 'post-quickpress-publish' == $_POST['action'] ) {
			if ( current_user_can('publish_posts') )
				printf( '<div class="message"><p>' . __( 'Post Published. <a href="%s">View post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( $view ), $edit );
			else
				printf( '<div class="message"><p>' . __( 'Post submitted. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit );
		} else {
			printf( '<div class="message"><p>' . __( 'Draft Saved. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit );
			$drafts_query = new WP_Query( array(
				'post_type' => 'post',
				'what_to_show' => 'posts',
				'post_status' => 'draft',
				'author' => $GLOBALS['current_user']->ID,
				'posts_per_page' => 1,
				'orderby' => 'modified',
				'order' => 'DESC'
			) );

			if ( $drafts_query->posts )
				$drafts =& $drafts_query->posts;
		}
		printf('<p class="textright">' . __('You can also try %s, easy blogging from anywhere on the Web.') . '</p>', '<a href="tools.php">' . __('Press This') . '</a>' );
		$_REQUEST = array(); // hack for get_default_post_to_edit()
	}

	$post = get_default_post_to_edit();
?>

	<form name="post" action="<?php echo clean_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press">
		<h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4>
		<div class="input-text-wrap">
			<input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo attribute_escape( $post->post_title ); ?>" />
		</div>

		<?php if ( current_user_can( 'upload_files' ) ) : ?>
		<div id="media-buttons" class="hide-if-no-js">
			<?php do_action( 'media_buttons' ); ?>
		</div>
		<?php endif; ?>

		<h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
		<div class="textarea-wrap">
			<textarea name="content" id="content" class="mceEditor" rows="3" cols="15" tabindex="2"><?php echo $post->post_content; ?></textarea>
		</div>

		<script type="text/javascript">edCanvas = document.getElementById('content');edInsertContent = null;</script>

		<h4><label for="tags-input"><?php _e('Tags') ?></label></h4>
		<div class="input-text-wrap">
			<input type="text" name="tags_input" id="tags-input" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" />
		</div>

		<p class="submit">
			<input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" />
			<input type="hidden" name="quickpress_post_ID" value="<?php echo (int) $post->ID; ?>" />
			<?php wp_nonce_field('add-post'); ?>
			<input type="submit" name="save" id="save-post" class="button" tabindex="4" value="<?php _e('Save Draft'); ?>" />
			<input type="reset" value="<?php _e( 'Cancel' ); ?>" class="cancel" />
			<?php if ( current_user_can('publish_posts') ) { ?>
			<input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php _e('Publish'); ?>" />
			<?php } else { ?>
			<input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php _e('Submit for Review'); ?>" />
			<?php } ?>
			<br class="clear" />
		</p>

	</form>

<?php
	if ( $drafts )
		wp_dashboard_recent_drafts( $drafts );
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:76,代码来源:dashboard.php

示例4: post_tags_meta_box

function post_tags_meta_box($post)
{
    ?>
<p id="jaxtag"><label class="hidden" for="newtag"><?php 
    _e('Tags');
    ?>
</label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php 
    echo get_tags_to_edit($post->ID);
    ?>
" /></p>
<div id="tagchecklist"></div>
<?php 
}
开发者ID:nurpax,项目名称:saastafi,代码行数:13,代码来源:edit-form-advanced.php

示例5: esc_attr

<p id="jaxtag">
	<input type="text" name="tags_input" class="tags-input headspace-tags" id="tags-input" size="25" tabindex="3" value="<?php 
echo esc_attr(get_tags_to_edit($post_ID));
?>
" />
</p>
<div id="tagchecklist"></div>
开发者ID:blueblazeassociates,项目名称:headspace2,代码行数:7,代码来源:edit_page.php

示例6: if

				<textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"><?php if ($selection) { echo wp_richedit_pre($selection); } ?><a href="<?php echo $url ?>"><?php echo $title; ?></a>.</textarea>
			</div>
		</div>
	</div>

	<div id="categories">
		<div class="submitbox" id="submitpost">
			<div id="previewview"></div>
			<div class="inside">
				<h2><?php _e('Categories') ?></h2>
				<div id="categories-all">
					<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
						<?php wp_category_checklist() ?>
					</ul>
				</div>
				
				<h2><?php _e('Tags') ?></h2>
				<p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></p>
				<div id="tagchecklist"></div>
			</div>

			<p class="submit">         
				<input type="submit" name="draft" value="<?php _e('Save') ?>" onclick="document.getElementById('photo_saving').style.display = '';"/>
				<input type="submit" name="publish" value="<?php _e('Publish') ?>" onclick="document.getElementById('photo_saving').style.display = '';"/>
				<img src="images/loading-publish.gif" alt="" id="photo_saving" style="display:none;"/>
			</p>
		</div>
	</div>
</form>
</body>
</html>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:press-this.php

示例7: _e

			</div>

			<div class="stuffbox">
				<h2><?php 
_e('Tags');
?>
</h2>
				<div class="inside">

					<div id="jaxtag">
						<label class="hidden" for="newtag"><?php 
_e('Tags');
?>
</label>
						<input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php 
echo get_tags_to_edit($post->ID);
?>
" />
					</div>
					<div id="tagchecklist"></div>
				</div>
			</div>
			<div id="submitdiv" class="postbox">
				<h2><?php 
_e('Publish');
?>
</h2>
				<div class="inside">
					<p>
						<input class="button" type="submit" name="draft" value="<?php 
_e('Save Draft');
开发者ID:BGCX262,项目名称:zxhproject-svn-to-git,代码行数:31,代码来源:press-this.php

示例8: __

    if (0 == $post_ID) {
        $nonce_action = 'add-post';
        $fancy_type = __('Draft', 'wphone');
    } else {
        $nonce_action = 'update-post_' . $post_ID;
        $fancy_type = __('Post', 'wphone');
    }
    $redirect = 'edit.php';
}
if (!empty($post_ID)) {
    $this->check_user_permissions('edit_post', $post_ID);
    if ($post = get_post($post_ID)) {
        $subcontext = 'edit';
        $post_categories = wp_get_post_categories($post_ID);
        if ($tags_compat) {
            $post_tags = get_tags_to_edit($post_ID);
        }
    }
}
$form_id = $this->context . '-' . $nonce_action;
if (!$this->iscompat) {
    // note we need this one conditional because the same form is used in multiple contexts
    echo '<h2 class="accessible">' . $fancy_text . "</h2>\n";
}
?>
<form id="<?php 
echo $form_id;
?>
" name="post" title="<?php 
echo $fancy_text;
?>
开发者ID:SymbiSoft,项目名称:litprojects,代码行数:31,代码来源:write.php

示例9: get_inline_data

/**
 * {@internal Missing Short Description}}
 *
 * @since unknown
 *
 * @param unknown_type $post
 */
function get_inline_data($post)
{
    if (!current_user_can('edit_' . $post->post_type, $post->ID)) {
        return;
    }
    $title = esc_attr($post->post_title);
    echo '
<div class="hidden" id="inline_' . $post->ID . '">
	<div class="post_title">' . $title . '</div>
	<div class="post_name">' . apply_filters('editable_slug', $post->post_name) . '</div>
	<div class="post_author">' . $post->post_author . '</div>
	<div class="comment_status">' . $post->comment_status . '</div>
	<div class="ping_status">' . $post->ping_status . '</div>
	<div class="_status">' . $post->post_status . '</div>
	<div class="jj">' . mysql2date('d', $post->post_date, false) . '</div>
	<div class="mm">' . mysql2date('m', $post->post_date, false) . '</div>
	<div class="aa">' . mysql2date('Y', $post->post_date, false) . '</div>
	<div class="hh">' . mysql2date('H', $post->post_date, false) . '</div>
	<div class="mn">' . mysql2date('i', $post->post_date, false) . '</div>
	<div class="ss">' . mysql2date('s', $post->post_date, false) . '</div>
	<div class="post_password">' . esc_html($post->post_password) . '</div>';
    if ($post->post_type == 'page') {
        echo '
	<div class="post_parent">' . $post->post_parent . '</div>
	<div class="page_template">' . esc_html(get_post_meta($post->ID, '_wp_page_template', true)) . '</div>
	<div class="menu_order">' . $post->menu_order . '</div>';
    }
    if ($post->post_type == 'post') {
        echo '
	<div class="tags_input">' . esc_html(str_replace(',', ', ', get_tags_to_edit($post->ID))) . '</div>
	<div class="post_category">' . implode(',', wp_get_post_categories($post->ID)) . '</div>
	<div class="sticky">' . (is_sticky($post->ID) ? 'sticky' : '') . '</div>';
    }
    echo '</div>';
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:42,代码来源:template.php

示例10: _mw_adminimize_sidecat_list_tag_box

/**
 * list tag-box in sidebar
 * @uses $post_ID
 */
function _mw_adminimize_sidecat_list_tag_box()
{
    global $post_ID;
    if (!class_exists('SimpleTagsAdmin')) {
        ?>
	<div class="inside" id="tagsdivsb">
		<p><strong><?php 
        _e('Tags');
        ?>
</strong></p>
		<p id="jaxtag"><label class="hidden" for="newtag"><?php 
        _e('Tags');
        ?>
</label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php 
        echo get_tags_to_edit($post_ID);
        ?>
" /></p>
		<div id="tagchecklist"></div>
	</div>
	<?php 
    }
}
开发者ID:ahsaeldin,项目名称:projects,代码行数:26,代码来源:adminimize.php

示例11: remplaceTagsHelper

	function remplaceTagsHelper() {
		global $post_ID;
		?>
	   	<script type="text/javascript">
		    // <![CDATA[
			jQuery(document).ready(function() {
				jQuery("#tagsdiv").after('<div id="old-tagsdiv" class="postbox <?php echo postbox_classes('old-tagsdiv', 'post'); ?>"><h3><?php echo _e('Tags <small>(separate multiple tags with commas: cats, pet food, dogs)</small>', 'simpletags'); ?></h3><div class="inside"><input type="text" name="old_tags_input" id="old_tags_input" size="40" tabindex="3" value="<?php echo js_escape(get_tags_to_edit( $post_ID )); ?>" /><div id="st_click_tags" class="container_clicktags"></div></div></div>');
			});
			// ]]>
	    </script>
	    <style type="text/css">
	    	#tagsdiv { display:none; }
	    </style>	   
		<?php
	}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:15,代码来源:simple-tags.admin.php

示例12: helperTagsPage

    /**
     * Display tags input for page
     *
     */
    function helperTagsPage()
    {
        global $post_ID;
        ?>
		<fieldset class="tags_page" id="tagdiv">
			<legend><?php 
        _e('Tags (separate multiple tags with commas: cats, pet food, dogs)');
        ?>
</legend>
			<div><input type="text" name="tags_input" class="tags-input" id="tags-input" size="30" tabindex="3" value="<?php 
        echo get_tags_to_edit($post_ID);
        ?>
" /></div>
		</fieldset>
		<?php 
    }
开发者ID:nurpax,项目名称:saastafi,代码行数:20,代码来源:simple-tags.admin.php

示例13: output


//.........这里部分代码省略.........
        if ($can_publish) {
            _e('Slug');
            echo esc_html($slug_optional);
            ?>
<br />
<input type="text" name="post_name" size="24" maxlength="999" istyle="3" mode="alphabet" tabindex="2" value="<?php 
            echo $post->post_name;
            ?>
" /><br />
<?php 
        }
        _e('Categories');
        ?>
<br />
<input type="hidden" name="post_cats" value="<?php 
        echo implode(',', $checked_cats);
        ?>
" /><font color="green"><?php 
        echo implode(', ', $cat_names);
        ?>
</font><input type="submit" name="selcats" tabindex="3" value="<?php 
        _e('Change', 'ktai_style');
        ?>
" /><br />
<?php 
        _e('Content', 'ktai_style');
        ?>
<br />
<?php 
        $this->admin->the_editor($post->post_content);
        _e('Tags');
        ?>
<br /><input type="text" name="tags_input" size="48" tabindex="5" value="<?php 
        echo isset($post->tags_input) ? $post->tags_input : get_tags_to_edit($post->ID);
        ?>
" /><br />
<div><label><input type="checkbox" name="comment_status" tabindex="6" value="open" <?php 
        checked($post->comment_status, 'open');
        ?>
 /><?php 
        _e('Allow Comments');
        ?>
</label><br />
<label><input type="checkbox" name="ping_status" tabindex="7" value="open" <?php 
        checked($post->ping_status, 'open');
        ?>
 /> <?php 
        _e('Allow Pings');
        ?>
</label></div>
<?php 
        $referer = $this->orig_referer ? $this->orig_referer : $post_referredby;
        if ($referer && $referer != 'redo') {
            if (preg_match('!/post(-new)?\\.php(\\?|$)!', $referer)) {
                $referer = 'edit.php';
            }
            if ($this->message) {
                printf(__('<a href="%s">Back to lists</a>', 'ktai_style'), esc_attr($referer));
            } else {
                printf(__('<a href="%s">Cancel Edit</a>', 'ktai_style'), esc_attr($referer));
            }
        }
        ?>
 <input type="submit" name="save" tabindex="8" value="<?php 
        _e('Save');
        ?>
开发者ID:masayukiando,项目名称:wordpress-event-search,代码行数:67,代码来源:edit-form.php

示例14: wp_dashboard_quick_press


//.........这里部分代码省略.........
    echo esc_url(admin_url('post.php'));
    ?>
" method="post" id="quick-press">
		<div class="input-text-wrap" id="title-wrap">
			<label class="screen-reader-text prompt" for="title" id="title-prompt-text"><?php 
    _e('Enter title here');
    ?>
</label>
			<input type="text" name="post_title" id="title" autocomplete="off" value="<?php 
    echo esc_attr($post->post_title);
    ?>
" />
		</div>

		<?php 
    if (current_user_can('upload_files')) {
        ?>
		<div id="wp-content-wrap" class="wp-editor-wrap hide-if-no-js wp-media-buttons">
			<?php 
        do_action('media_buttons', 'content');
        ?>
		</div>
		<?php 
    }
    ?>

		<div class="textarea-wrap">
			<label class="screen-reader-text" for="content"><?php 
    _e('Content');
    ?>
</label>
			<textarea name="content" id="content" class="mceEditor" rows="3" cols="15"><?php 
    echo esc_textarea($post->post_content);
    ?>
</textarea>
		</div>

		<script type="text/javascript">
		edCanvas = document.getElementById('content');
		edInsertContent = null;
		<?php 
    if ($_POST) {
        ?>
		wp.media.editor.remove('content');
		wp.media.view.settings.post = <?php 
        echo json_encode($media_settings);
        // big juicy hack.
        ?>
;
		wp.media.editor.add('content');
		<?php 
    }
    ?>
		</script>

		<div class="input-text-wrap" id="tags-input-wrap">
			<label class="screen-reader-text prompt" for="tags-input" id="tags-input-prompt-text"><?php 
    _e('Tags (separate with commas)');
    ?>
</label>
			<input type="text" name="tags_input" id="tags-input" value="<?php 
    echo get_tags_to_edit($post->ID);
    ?>
" />
		</div>

		<p class="submit">
			<span id="publishing-action">
				<input type="submit" name="publish" id="publish" accesskey="p" class="button-primary" value="<?php 
    current_user_can('publish_posts') ? esc_attr_e('Publish') : esc_attr_e('Submit for Review');
    ?>
" />
				<span class="spinner"></span>
			</span>
			<input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" />
			<input type="hidden" name="post_ID" value="<?php 
    echo $post_ID;
    ?>
" />
			<input type="hidden" name="post_type" value="post" />
			<?php 
    wp_nonce_field('add-post');
    ?>
			<?php 
    submit_button(__('Save Draft'), 'button', 'save', false, array('id' => 'save-post'));
    ?>
			<input type="reset" value="<?php 
    esc_attr_e('Reset');
    ?>
" class="button" />
			<br class="clear" />
		</p>

	</form>

<?php 
    if ($drafts) {
        wp_dashboard_recent_drafts($drafts);
    }
}
开发者ID:jcsilkey,项目名称:CodeReviewSecurityRepo,代码行数:101,代码来源:dashboard.php

示例15: user_can_richedit

<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
<h3><?php _e('Post') ?></h3>
<?php the_editor($post->post_content); ?>
<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
<?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>
<?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
</div>

<?php echo $form_pingback ?>
<?php echo $form_prevstatus ?>

<div id="tagsdiv" class="postbox <?php echo postbox_classes('tagsdiv', 'post'); ?>">
<h3><?php _e('Tags'); ?></h3>
<div class="inside">
<p id="jaxtag"><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post_ID ); ?>" /></p>
<div id="tagchecklist"></div>
</div>
</div>

<div id="categorydiv" class="postbox <?php echo postbox_classes('categorydiv', 'post'); ?>">
<h3><?php _e('Categories') ?></h3>
<div class="inside">

<div id="category-adder" class="wp-hidden-children">
	<h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
	<p id="category-add" class="wp-hidden-child">
		<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" />
		<?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
		<input type="button" id="category-add-sumbit" class="add:categorychecklist:categorydiv button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
		<?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-form-advanced.php


注:本文中的get_tags_to_edit函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。