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


PHP get_upload_iframe_src函数代码示例

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


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

示例1: ocwssl_wp_post_thumbnail_html

function ocwssl_wp_post_thumbnail_html($thumbnail_id = null, $post = null)
{
    global $content_width, $_wp_additional_image_sizes;
    $post = get_post($post);
    $post_type_object = get_post_type_object($post->post_type);
    $set_thumbnail_link = '<p class="hide-if-no-js"><a title="%s" href="%s" id="set-post-thumbnail" class="thickbox">%s</a></p>';
    $upload_iframe_src = get_upload_iframe_src('image', $post->ID);
    $content = sprintf($set_thumbnail_link, esc_attr($post_type_object->labels->set_featured_image), esc_url($upload_iframe_src), esc_html($post_type_object->labels->set_featured_image));
    if ($thumbnail_id && get_post($thumbnail_id)) {
        $old_content_width = $content_width;
        $content_width = 1000;
        if (!isset($_wp_additional_image_sizes['full'])) {
            // use 'full' for system defined fullsize image OR use our custom image size instead of 'post-thumbnail'
            $thumbnail_html = wp_get_attachment_image($thumbnail_id, array($content_width, $content_width));
        } else {
            $thumbnail_html = wp_get_attachment_image($thumbnail_id, 'full');
        }
        // use 'full' for system defined fullsize image OR use our custom image size instead of 'post-thumbnail'
        if (!empty($thumbnail_html)) {
            $ajax_nonce = wp_create_nonce('set_post_thumbnail-' . $post->ID);
            $content = sprintf($set_thumbnail_link, esc_attr($post_type_object->labels->set_featured_image), esc_url($upload_iframe_src), $thumbnail_html);
            $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail(\'' . $ajax_nonce . '\');return false;">' . esc_html($post_type_object->labels->remove_featured_image) . '</a></p>';
        }
        $content_width = $old_content_width;
    }
    /**
     * Filter the admin post thumbnail HTML markup to return.
     *
     * @since 2.9.0
     *
     * @param string $content Admin post thumbnail HTML markup.
     * @param int    $post_id Post ID.
     */
    return apply_filters('admin_post_thumbnail_html', $content, $post->ID);
}
开发者ID:pftaylor61,项目名称:ocws-slider,代码行数:35,代码来源:ocws-slider.php

示例2: S2FilePicker_btn

function S2FilePicker_btn($editor_id = 'content')
{
    printf('
		<a href="%s" id="add_s2fpicker" class="button thickbox add_s2fpicker" title="%s">
			Link s2member file
		</a>
		', esc_url(get_upload_iframe_src('s2fpicker')), __('Add s2member Secure-File', 's2sfu'));
}
开发者ID:hiryu85,项目名称:s2member-secure-file-picker,代码行数:8,代码来源:s2member-secure-file-picker.php

示例3: animals_kd_meta_box_output

 /**
  * Generate the metabox content
  * 
  * @global int $post_ID
  * @param int $image_id
  * @return string 
  */
 public function animals_kd_meta_box_output($image_id = NULL)
 {
     global $post_ID;
     $output = '';
     $setImageLink = sprintf('<p class="hide-if-no-js"><a title="%2$s" href="%1$s" id="kd_%3$s" class="thickbox">%%s</a></p>', get_upload_iframe_src('image'), $this->labels['set'], $this->id);
     if ($image_id && get_post($image_id)) {
         $nonce_field = wp_create_nonce($this->nonce . $post_ID);
         $thumbnail = wp_get_attachment_image($image_id, array(266, 266));
         $output .= sprintf($setImageLink, $thumbnail);
         $output .= '<p class="hide-if-no-js">';
         $output .= sprintf('<a href="#" id="remove-%1$s-image" onclick="kdMuFeaImgRemove( \'%1$s\', \'%2$s\', \'%3$s\' ); return false;">', $this->id, $this->post_type, $nonce_field);
         $output .= $this->labels['remove'];
         $output .= '</a>';
         $output .= '</p>';
         return $output;
     } else {
         return sprintf($setImageLink, $this->labels['set']);
     }
 }
开发者ID:chicosilva,项目名称:olharambiental,代码行数:26,代码来源:featured-images-animals.php

示例4: render_html

 public static function render_html($value, $setting_key, $setting_group, $setting_page, $return = false)
 {
     $image_library_url = get_upload_iframe_src('image', null, 'library');
     $image_library_url = remove_query_arg('TB_iframe', $image_library_url);
     $image_library_url = add_query_arg(array('context' => 'voce-image-setting', 'setting_key' => $setting_key, 'setting_group' => $setting_group, 'setting_page' => $setting_page, 'TB_iframe' => 1), $image_library_url);
     $link = '<a href="%s" class="%s button" %s>%s</a>';
     $image = $value && ($src = wp_get_attachment_image_src($value, true));
     // href, extra classes, extra attributes, text
     $link = $image ? sprintf($link, '', 'remove-voce-image-setting', sprintf(' data-nonce="%s"', wp_create_nonce('set_voce_image_setting')), 'Remove Image') : sprintf($link, $image_library_url, 'set-voce-image-setting thickbox', '', 'Set Image');
     $id = $setting_page . '-' . $setting_group . '-' . $setting_key;
     $html = sprintf('<div id="%s" data-setting-page="%s" data-setting-group="%s" data-setting-key="%s" class="voce-image-setting"><div class="ajax-response"></div>', esc_attr($id), esc_attr($setting_page), esc_attr($setting_group), esc_attr($setting_key));
     if ($image) {
         $html .= sprintf('<img src="%s" style="max-width:500px; height:auto;" /><br/>', esc_url($src[0]));
     }
     $html .= $link . '</div>';
     if ($return) {
         return $html;
     }
     echo $html;
 }
开发者ID:voceconnect,项目名称:voce-image-setting,代码行数:20,代码来源:voce-image-setting.php

示例5: openbadger_badgedesigner_admin_post_thumbnail_html

/**
 * For badge pages, change the feature image content to add the designer. This
 * gets called as a filter by WP whenever the content inside the postimagediv
 * needs to be updated (even via AJAX).
 */
function openbadger_badgedesigner_admin_post_thumbnail_html($content, $post_id)
{
    global $openbadger_badge_schema;
    if (get_post_type($post_id) != $openbadger_badge_schema->get_post_type_name()) {
        return $content;
    }
    /* if we already have a thumbnail, don't modify the content, just return */
    if (has_post_thumbnail($post_id)) {
        return $content;
    }
    /* Copied from wp-admin/includes/post.php */
    $upload_iframe_src = esc_url(get_upload_iframe_src('image', $post_id));
    $media_manager_link = sprintf('<a title="%2$s" href="%1$s" id="set-post-thumbnail" class="thickbox">%3$s</a>', $upload_iframe_src, esc_attr__('Media Library'), esc_html__('Media Library'));
    if (!is_multisite()) {
        $origin = network_site_url();
        $email = get_site_option('admin_email');
    } else {
        $origin = site_url();
        $email = get_bloginfo('admin_email');
    }
    $designer_link = sprintf('<a href="https://www.openbadges.me/designer.html?format=json&amp;origin=%3$s&amp;email=%4$s&amp;uniqueID=%7$s" title="%1$s" id="openbadger-badge-designer" data-post-id="%5$d" data-nonce="%6$s" data-badge-source="openbadges.me">%2$s</a>', esc_attr__('Badge Designer', 'rpibadger'), esc_html__('Badge Designer', 'rpibadger'), urlencode($origin), urlencode($email), $post_id, esc_attr(wp_create_nonce('openbadger-badgedesigner')), urlencode(get_current_user_id()));
    return '<p class="hide-if-no-js">' . sprintf(__('Use the %s to upload or select an existing image. Or use the %s to create a new one', 'rpibadger'), $media_manager_link, $designer_link) . '.</p>';
}
开发者ID:johappel,项目名称:open-badger,代码行数:28,代码来源:badges_designer.php

示例6: ksort

        ksort($sort);
    } else {
        krsort($sort);
    }
}
$sort_url = menu_page_url('premise-buttons', false);
$title_sort = $orderby == 'title' && $order == 'ASC' ? 'DESC' : 'ASC';
$date_sort = $orderby == 'lastsaved' && $order == 'ASC' ? 'DESC' : 'ASC';
$title_url = add_query_arg(array('orderby' => 'title', 'order' => $title_sort), $sort_url);
$date_url = add_query_arg(array('orderby' => 'lastsaved', 'order' => $date_sort), $sort_url);
?>
<h3 id="your-buttons"><?php 
_e('Your Buttons', 'premise');
?>
 <a href="<?php 
echo add_query_arg(array('height' => 700), get_upload_iframe_src('premise-button-create'));
?>
" class="thickbox button button-secondary"><?php 
_e('Add New Button', 'premise');
?>
</a></h3>
<table class="widefat">
	<thead>
		<tr>
			<th scope="col"><?php 
printf('<a href="%s">%s</a>', $title_url, __('Title', 'premise'));
?>
</th>
			<th scope="col"><?php 
_e('Example Button', 'premise');
?>
开发者ID:juslee,项目名称:e27,代码行数:31,代码来源:buttons.php

示例7: _get_image_upload_option

    /**
     *
     * Creates An AJAX Image Uploader
     *
     * @since 1.0.0
     * @author Andrew Powers
     *
     */
    function _get_image_upload_option($oid, $o)
    {
        $up_url = $this->input_text($o['input_id'], $o['input_name'], esc_url($o['val']), 'regular-text uploaded_url', 'text', '', $o['placeholder']);
        $button_id = isset($o['special']) ? $oid . 'OID' . $o['special'] : $oid;
        $up_button = $this->input_button($button_id, __('Upload Image', 'pagelines'), 'image_upload_button admin-blue', 'title="' . $this->settings_field . '"');
        $reset_button = sprintf('<span title="%1$s" id="%2$s" class="image_reset_button button reset_%1$s">Remove</span>', $button_id, $this->settings_field);
        $ajax_url = $this->input_hidden('', 'wp_ajax_action_url', admin_url("admin-ajax.php"), 'ajax_action_url');
        $preview_size = $this->input_hidden('', 'img_size_' . $oid, $o['imagepreview'], 'image_preview_size');
        ob_start();
        $image_library_url = get_upload_iframe_src('image', null, 'library');
        $image_library_url = remove_query_arg('TB_iframe', $image_library_url);
        $image_library_url = add_query_arg(array('oid' => $o['input_id'], 'context' => 'pl-custom-attach', 'TB_iframe' => 1), $image_library_url);
        ?>

			<a id="choose-from-library-link" class="button thickbox" href="<?php 
        echo esc_url($image_library_url);
        ?>
">
				<?php 
        _e('Select From Library', 'pagelines');
        ?>
			</a>

		<?php 
        $media_lib = ob_get_clean();
        // Output
        $label = $this->input_label($oid, $o['inputlabel']);
        printf('<p>%s %s<br/> %s %s %s %s %s</p>', $label, $up_url, $up_button, $media_lib, $reset_button, $ajax_url, $preview_size);
        $special_image_class = '';
        $select_class = sprintf('pre_%s', $o['input_id']);
        if ($o['val']) {
            $active_image_url = $o['val'];
        } elseif ($o['placeholder']) {
            $active_image_url = $o['placeholder'];
            $special_image_class = 'default-image-preview';
        } else {
            $active_image_url = false;
        }
        printf('<img class="pagelines_image_preview %s %s" id="image_%s" src="%s" style="max-width:%spx; %s"/>', $special_image_class, $select_class, $button_id, $active_image_url, $o['imagepreview'], !$active_image_url ? 'display: none;' : '');
    }
开发者ID:aaemnnosttv,项目名称:pagelines,代码行数:48,代码来源:class.options.engine.php

示例8: _media_button

function _media_button($title, $icon, $type) {
	return "<a href='" . esc_url( get_upload_iframe_src($type) ) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' /></a>";
}
开发者ID:realfluid,项目名称:umbaugh,代码行数:3,代码来源:media.php

示例9: showMenuOptions

    function showMenuOptions($item_id)
    {
        global $uberMenu;
        $settings = $uberMenu->getSettings();
        parent::showMenuOptions($item_id);
        $this->showCustomMenuOption('notext', $item_id, array('level' => '0-plus', 'title' => __('Remove the Navigation Label text from the link.  Can be used, for example, with image-only links.', 'ubermenu'), 'label' => __('Disable Text', 'ubermenu'), 'type' => 'checkbox'));
        $this->showCustomMenuOption('floatRight', $item_id, array('level' => '0', 'title' => __('Float the menu item to the right edge of the menu bar.', 'ubermenu'), 'label' => __('Align Menu Item to Right Edge', 'ubermenu'), 'type' => 'checkbox'));
        //CONTENT OVERRIDES AND WIDGET AREAS
        if ($settings->op('wpmega-shortcodes')) {
            $this->showCustomMenuOption('shortcode', $item_id, array('level' => '0-plus', 'title' => __('Display custom content in this menu item.  This input accepts shortcodes so you can display things like contact forms, search boxes, or galleries.  Check "Disable Link" above to display only this content, instead of a link.', 'ubermenu'), 'label' => __('Custom Content (Content Override)', 'ubermenu'), 'type' => 'textarea'));
        }
        $minSidebarLevel = 1;
        if ($settings->op('wpmega-top-level-widgets')) {
            $minSidebarLevel = 0;
        }
        $this->showCustomMenuOption('sidebars', $item_id, array('level' => $minSidebarLevel . '-plus', 'title' => __('Select the widget area to display', 'ubermenu'), 'label' => __('Display a Widget Area', 'ubermenu'), 'type' => 'sidebarselect'));
        do_action('ubermenu_extended_menu_item_options', $item_id, $this);
        global $post_ID;
        $post_ID = $item_id;
        $iframeSrc = get_upload_iframe_src('image') . '&amp;tab=type&amp;width=640&amp;height=589';
        //media-upload.php?post_id=<?php echo $item_id; &amp;type=image&amp;TB_iframe=1&amp;width=640&amp;height=589
        $wp_mega_link = "Set Thumbnail";
        $wp_mega_img = $uberMenu->getImage($item_id);
        if (!empty($wp_mega_img)) {
            $wp_mega_link = $wp_mega_img;
            $ajax_nonce = wp_create_nonce("set_post_thumbnail-{$item_id}");
            $wp_mega_link .= '<div class="remove-item-thumb" id="remove-item-thumb-' . $item_id . '"><a href="#" id="remove-post-thumbnail-' . $item_id . '" onclick="wpmega_remove_thumb(\'' . $ajax_nonce . '\', ' . $item_id . ');return false;">' . esc_html__('Remove image', 'ubermenu') . '</a></div>';
        }
        ?>

		<p class="wpmega-custom-all"><a class="thickbox set-menu-item-thumb button uber_clear" id="set-post-thumbnail-<?php 
        echo $item_id;
        ?>
" href="<?php 
        echo $iframeSrc;
        ?>
" title="Set Thumbnail"><?php 
        echo $wp_mega_link;
        ?>
</a></p>

		<?php 
    }
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:43,代码来源:UberMenuStandard.class.php

示例10: post_thumbnail_html

        /**
         * Output the post thumbnail HTML for the metabox and AJAX callbacks
         *
         * @param string $thumbnail_id The thumbnail's post ID.
         * @return string HTML
         */
        private function post_thumbnail_html($thumbnail_id = null)
        {
            global $content_width, $_wp_additional_image_sizes, $post_ID, $wp_version;
            $url_class = "";
            $ajax_nonce = wp_create_nonce("set_post_thumbnail-{$this->post_type}-{$this->id}-{$post_ID}");
            if (version_compare($wp_version, '3.5', '<')) {
                // Use the old thickbox for versions prior to 3.5
                $image_library_url = get_upload_iframe_src('image');
                // if TB_iframe is not moved to end of query string, thickbox will remove all query args after it.
                $image_library_url = add_query_arg(array('context' => $this->id, 'TB_iframe' => 1), remove_query_arg('TB_iframe', $image_library_url));
                $url_class = "thickbox";
            } else {
                // Use the media modal for 3.5 and up
                $image_library_url = "#";
                $modal_js = sprintf('var mm_%3$s = new MediaModal({
						calling_selector : "#set-%1$s-%2$s-thumbnail",
						cb : function(attachment){
							MultiPostThumbnails.setAsThumbnail(attachment.id, "%2$s", "%1$s", "%4$s");
						}
					});', $this->post_type, $this->id, md5($this->id), $ajax_nonce);
            }
            $format_string = '<p class="hide-if-no-js"><a title="%1$s" href="%2$s" id="set-%3$s-%4$s-thumbnail" class="%5$s" data-thumbnail_id="%7$s" data-uploader_title="%1$s" data-uploader_button_text="%1$s">%%s</a></p>';
            $set_thumbnail_link = sprintf($format_string, sprintf(esc_attr__("Set %s", 'multiple-post-thumbnails'), $this->label), $image_library_url, $this->post_type, $this->id, $url_class, $this->label, $thumbnail_id);
            $content = sprintf($set_thumbnail_link, sprintf(esc_html__("Set %s", 'multiple-post-thumbnails'), $this->label));
            if ($thumbnail_id && get_post($thumbnail_id)) {
                $old_content_width = $content_width;
                $content_width = 266;
                if (!isset($_wp_additional_image_sizes["{$this->post_type}-{$this->id}-thumbnail"])) {
                    $thumbnail_html = wp_get_attachment_image($thumbnail_id, array($content_width, $content_width));
                } else {
                    $thumbnail_html = wp_get_attachment_image($thumbnail_id, "{$this->post_type}-{$this->id}-thumbnail");
                }
                if (!empty($thumbnail_html)) {
                    $content = sprintf($set_thumbnail_link, $thumbnail_html);
                    $format_string = '<p class="hide-if-no-js"><a href="#" id="remove-%1$s-%2$s-thumbnail" onclick="MultiPostThumbnails.removeThumbnail(\'%2$s\', \'%1$s\', \'%4$s\');return false;">%3$s</a></p>';
                    $content .= sprintf($format_string, $this->post_type, $this->id, sprintf(esc_html__("Remove %s", 'multiple-post-thumbnails'), $this->label), $ajax_nonce);
                }
                $content_width = $old_content_width;
            }
            if (version_compare($wp_version, '3.5', '>=')) {
                $content .= sprintf('<script>%s</script>', $modal_js);
            }
            return $content;
        }
开发者ID:aiandrade,项目名称:locallandr,代码行数:50,代码来源:multi-post-thumbnails.php

示例11: _wp_post_thumbnail_html

/**
 * Output HTML for the post thumbnail meta-box.
 *
 * @since 2.9.0
 *
 * @param int $thumbnail_id ID of the attachment used for thumbnail
 * @param mixed $post The post ID or object associated with the thumbnail, defaults to global $post.
 * @return string html
 */
function _wp_post_thumbnail_html($thumbnail_id = null, $post = null)
{
    $_wp_additional_image_sizes = wp_get_additional_image_sizes();
    $post = get_post($post);
    $post_type_object = get_post_type_object($post->post_type);
    $set_thumbnail_link = '<p class="hide-if-no-js"><a href="%s" id="set-post-thumbnail"%s class="thickbox">%s</a></p>';
    $upload_iframe_src = get_upload_iframe_src('image', $post->ID);
    $content = sprintf($set_thumbnail_link, esc_url($upload_iframe_src), '', esc_html($post_type_object->labels->set_featured_image));
    if ($thumbnail_id && get_post($thumbnail_id)) {
        $size = isset($_wp_additional_image_sizes['post-thumbnail']) ? 'post-thumbnail' : array(266, 266);
        /**
         * Filters the size used to display the post thumbnail image in the 'Featured Image' meta box.
         *
         * Note: When a theme adds 'post-thumbnail' support, a special 'post-thumbnail'
         * image size is registered, which differs from the 'thumbnail' image size
         * managed via the Settings > Media screen. See the `$size` parameter description
         * for more information on default values.
         *
         * @since 4.4.0
         *
         * @param string|array $size         Post thumbnail image size to display in the meta box. Accepts any valid
         *                                   image size, or an array of width and height values in pixels (in that order).
         *                                   If the 'post-thumbnail' size is set, default is 'post-thumbnail'. Otherwise,
         *                                   default is an array with 266 as both the height and width values.
         * @param int          $thumbnail_id Post thumbnail attachment ID.
         * @param WP_Post      $post         The post object associated with the thumbnail.
         */
        $size = apply_filters('admin_post_thumbnail_size', $size, $thumbnail_id, $post);
        $thumbnail_html = wp_get_attachment_image($thumbnail_id, $size);
        if (!empty($thumbnail_html)) {
            $content = sprintf($set_thumbnail_link, esc_url($upload_iframe_src), ' aria-describedby="set-post-thumbnail-desc"', $thumbnail_html);
            $content .= '<p class="hide-if-no-js howto" id="set-post-thumbnail-desc">' . __('Click the image to edit or update') . '</p>';
            $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail">' . esc_html($post_type_object->labels->remove_featured_image) . '</a></p>';
        }
    }
    $content .= '<input type="hidden" id="_thumbnail_id" name="_thumbnail_id" value="' . esc_attr($thumbnail_id ? $thumbnail_id : '-1') . '" />';
    /**
     * Filters the admin post thumbnail HTML markup to return.
     *
     * @since 2.9.0
     * @since 3.5.0 Added the `$post_id` parameter.
     * @since 4.6.0 Added the `$thumbnail_id` parameter.
     *
     * @param string $content      Admin post thumbnail HTML markup.
     * @param int    $post_id      Post ID.
     * @param int    $thumbnail_id Thumbnail ID.
     */
    return apply_filters('admin_post_thumbnail_html', $content, $post->ID, $thumbnail_id);
}
开发者ID:nicholasgriffintn,项目名称:WordPress,代码行数:58,代码来源:post.php

示例12: get_upload_iframe_src

 /**
  * Builds URI for media upload iframe
  * @param string $type Type of media to upload
  * @return string Upload URI
  */
 function get_upload_iframe_src($type = 'media', $args = null)
 {
     //Build Upload URI
     $ret = $this->upload_url(get_upload_iframe_src($type), $args);
     //Return URI
     return $ret;
 }
开发者ID:jarqo,项目名称:explore,代码行数:12,代码来源:class.media.php

示例13: pac_pickapic_media_buttons

/**
 * Adds the pick a pic icon to the media bar.
 *
 * @param it editor_id.
 * @return noting.
 **/
function pac_pickapic_media_buttons($editor_id = '')
{
    $img = '<img src="' . esc_url(plugin_dir_url(dirname(__FILE__) . '/pick-a-pic.php') . 'icoWPcam.png') . '" width="15" height="15" />';
    // TODO: postear esto!!
    echo '<a href="' . add_query_arg('tab', 'pickapictab', esc_url(get_upload_iframe_src())) . '" class="thickbox add_media" id="' . esc_attr($editor_id) . '-add_media" title="' . esc_attr__('Flickr - pick a pic', 'pickapic') . '" onclick="return false;">' . sprintf($img) . ' Freies Foto suchen</a>';
}
开发者ID:AK-Digitale-Gesellschaft,项目名称:flickr-pick-a-picture,代码行数:12,代码来源:pick-a-pic.php

示例14: _media_button

function _media_button($title, $icon, $type, $id)
{
    return "<a href='" . esc_url(get_upload_iframe_src($type)) . "' id='{$id}-add_{$type}' class='thickbox add_{$type}' title='" . esc_attr($title) . "'><img src='" . esc_url(admin_url($icon)) . "' alt='{$title}' onclick='return false;' /></a>";
}
开发者ID:nxtclass,项目名称:NXTClass,代码行数:4,代码来源:media.php

示例15: _e

?>
-icon"><?php 
_e('Icon URL', 'premise');
?>
</label>
                	</th>
                	<td>
                		<input class="regular-text premise-content-scrollers-icon" type="text" name="premise[content-scrollers][<?php 
echo $key;
?>
][icon]" id="premise-content-scrollers-<?php 
echo $key;
?>
-icon" value="<?php 
echo esc_attr($icon);
?>
" />
                		<?php 
printf(__('You can upload one via the <a class="thickbox" href="%s">WordPress uploader</a>.', 'premise'), esc_attr(add_query_arg(array('post_id' => 0, 'send_to_premise_field_id' => "premise-content-scrollers-{$key}-icon", 'TB_iframe' => 1, 'width' => 640, 'height' => 459), add_query_arg('TB_iframe', null, get_upload_iframe_src('image')))));
?>
                	</td>
                </tr>
            </tbody>
        </table>

        <?php 
premise_the_editor($text, 'premise[content-scrollers][' . $key . '][text]', '', true, $key + 2);
?>
    </div>
</div>
开发者ID:hscale,项目名称:webento,代码行数:30,代码来源:premise-content-tab.php


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