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


PHP iframe_header函数代码示例

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


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

示例1: ultimatum_css_regen_thickbox

function ultimatum_css_regen_thickbox()
{
	iframe_header();
	ultimatum_css_regenerator();
	iframe_footer();
	exit;
}
开发者ID:polaris610,项目名称:medicalhound,代码行数:7,代码来源:css-regenerator.php

示例2: gmedia_blank_page

 /**
  * Load gmedia pages in wpless interface
  */
 function gmedia_blank_page()
 {
     set_current_screen('GrandMedia_Settings');
     global $gmCore;
     $gmediablank = $gmCore->_get('gmediablank', '');
     /*
     add_filter('admin_body_class', function(){
     	$gmediablank = isset($_GET['gmediablank'])? $_GET['gmediablank'] : '';
     	return "gmedia-blank $gmediablank"; });
     */
     add_filter('admin_body_class', create_function('', '$gmediablank = isset($_GET["gmediablank"])? $_GET["gmediablank"] : ""; return "gmedia-blank $gmediablank";'));
     define('IFRAME_REQUEST', true);
     iframe_header('GmediaGallery');
     switch ($gmediablank) {
         case 'update_plugin':
             require_once dirname(dirname(__FILE__)) . '/update.php';
             gmedia_do_update();
             break;
         case 'image_editor':
             require_once dirname(dirname(__FILE__)) . '/inc/image-editor.php';
             gmedia_image_editor();
             break;
     }
     iframe_footer();
     exit;
 }
开发者ID:HugoLS,项目名称:Variation,代码行数:29,代码来源:admin.php

示例3: ultimatum_mobile_assign_thickbox

function ultimatum_mobile_assign_thickbox()
{
	iframe_header();
	ultimatum_mobile_assigner();
	iframe_footer();
	exit;
}
开发者ID:polaris610,项目名称:medicalhound,代码行数:7,代码来源:mobile-assigner.php

示例4: dialog

 /**
  * Sets up the move tickets dialog.
  */
 public function dialog()
 {
     if (!$this->is_move_tickets_dialog()) {
         return;
     }
     if (!wp_verify_nonce($_GET['check'], 'move_tickets')) {
         return;
     }
     $event_id = isset($_GET['event_id']) ? absint($_GET['event_id']) : absint($_GET['post']);
     $attendee_ids = array_map('intval', explode('|', @$_GET['ticket_ids']));
     $this->build_attendee_list($attendee_ids, $event_id);
     /**
      * Provides an opportunity to modify the template variables used in the
      * move tickets dialog.
      *
      * @param array $template_vars
      */
     $template_vars = (array) apply_filters('tribe_tickets_move_tickets_template_vars', array('title' => __('Move Attendees', 'event-tickets'), 'mode' => 'move_tickets', 'check' => wp_create_nonce('move_tickets'), 'event_name' => get_the_title($event_id), 'attendees' => $this->attendees, 'multiple_providers' => $this->has_multiple_providers));
     set_current_screen();
     define('IFRAME_REQUEST', true);
     $this->dialog_assets();
     iframe_header($template_vars['title']);
     extract($template_vars);
     include EVENT_TICKETS_DIR . '/src/admin-views/move-tickets.php';
     iframe_footer();
     exit;
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:30,代码来源:Move_Tickets.php

示例5: ultimatum_export_thickbox

function ultimatum_export_thickbox()
{
	iframe_header();
	Ultimatum_Exporter();
	iframe_footer();
	exit;
}
开发者ID:polaris610,项目名称:medicalhound,代码行数:7,代码来源:ultimatum-export.php

示例6: ultimatum_layout_options_thickbox

function ultimatum_layout_options_thickbox()
{
	iframe_header();
	ultimatum_layout_opts();
	iframe_footer();
	exit;
}
开发者ID:polaris610,项目名称:medicalhound,代码行数:7,代码来源:layout-options.php

示例7: ultimatum_row_layouts_thickbox

function ultimatum_row_layouts_thickbox()
{
	iframe_header();
	ultimatum_row_selector();
	iframe_footer();
	exit;
}
开发者ID:polaris610,项目名称:medicalhound,代码行数:7,代码来源:row-layouts.php

示例8: header

 protected function header()
 {
     define('IFRAME_REQUEST', true);
     global $body_id;
     $body_id = $this->body_id;
     iframe_header($this->title);
 }
开发者ID:ashik968,项目名称:digiplot,代码行数:7,代码来源:Mini.php

示例9: tab_handler

 function tab_handler()
 {
     global $body_id;
     if (!$this->user_allowed()) {
         return;
     }
     $body_id = 'media-upload';
     iframe_header(__('Add From Server', 'add-from-server'));
     $this->handle_imports();
     $this->main_content();
     iframe_footer();
 }
开发者ID:Ezyva2015,项目名称:money101.com.au,代码行数:12,代码来源:class.add-from-server.php

示例10: iframe_intercept

 public function iframe_intercept($current_screen)
 {
     if ($current_screen->base !== 'mailpoet_page_wysija_config') {
         return;
     }
     if (!isset($_GET['action']) || $_GET['action'] !== 'packager-switch') {
         return;
     }
     // Verify if it's has been created within the last 12 hours (nonce)
     if (wp_verify_nonce($_GET['_wpnonce'], $_GET['action']) !== 1) {
         return;
     }
     // Require the Updater classes
     include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
     $to = isset($_GET['stable']) && $_GET['stable'] ? 'stable' : 'beta';
     add_filter('pre_site_transient_update_plugins', array($this, 'pre_site_transient_update_plugins'));
     $plugins = array();
     // Check for the action, it might be upgrading or installing
     $action = 'upgrade';
     if (isset($_GET['_mp_action']) && in_array($_GET['_mp_action'], array('upgrade', 'install'))) {
         $action = strtolower($_GET['_mp_action']);
     }
     foreach (self::$plugins as $k => $plugin) {
         if (is_plugin_active($plugin)) {
             $plugins[] = $plugin;
         }
     }
     // Ajust the Padding/margin of the iFrame
     define('IFRAME_REQUEST', true);
     echo "<div style='margin: 0 20px;'>";
     // Thats how WordPress calls for an iFrame page
     wp_enqueue_script('jquery');
     iframe_header();
     if ($action === 'upgrade') {
         $upgrader = new Plugin_Upgrader(new Bulk_Plugin_Upgrader_Skin(compact('nonce', 'url')));
         $upgrader->bulk_upgrade($plugins);
     } elseif ($action === 'install') {
         // If the action is install, it will only happen if it's the Premium
         $upgrader = new Plugin_Upgrader(new Plugin_Installer_Skin());
         $result = $upgrader->install(self::get_url(self::$plugins[1], WYSIJA::is_beta(), 'zip'));
     }
     iframe_footer();
     echo "</div>";
     remove_filter('pre_site_transient_update_plugins', array($this, 'pre_site_transient_update_plugins'));
     $model_config = WYSIJA::get('config', 'model');
     $model_config->save(array('beta_mode' => $to === 'stable' ? false : true));
     set_site_transient('update_plugins', '');
     exit;
 }
开发者ID:christocmp,项目名称:bingopaws,代码行数:49,代码来源:WJ_Upgrade.php

示例11: __construct

 public function __construct()
 {
     parent::__construct(__('Plugin Information', 'sputnik'));
     $this->plugin = $_GET['info'];
     try {
         $account = Sputnik::get_account();
         $this->api = Sputnik::get_plugin($this->plugin, $account->ID);
     } catch (Exception $e) {
         status_header(500);
         iframe_header(__('', 'sputnik'));
         echo $e->getMessage();
         iframe_footer();
         die;
     }
 }
开发者ID:dreamteam111,项目名称:dreamteam,代码行数:15,代码来源:Info.php

示例12: prepare

 protected function prepare()
 {
     try {
         $this->file = $_GET['upgrade'];
         $data = Sputnik::get_from_file($file);
         if ($data === null) {
             throw new Exception(__('Plugin not found', 'sputnik'));
         }
         $this->id = $data['Sputnik ID'];
     } catch (Exception $e) {
         status_header(500);
         iframe_header(__('Update Plugin', 'sputnik'));
         echo $e->getMessage();
         iframe_footer();
         die;
     }
     parent::prepare();
 }
开发者ID:dreamteam111,项目名称:dreamteam,代码行数:18,代码来源:Upgrade.php

示例13: gmedia_blank_page

 /**
  * Load gmedia pages in wpless interface
  */
 function gmedia_blank_page()
 {
     set_current_screen('GrandMedia_Settings');
     global $gmCore, $gmProcessor;
     $gmediablank = $gmCore->_get('gmediablank', '');
     define('IFRAME_REQUEST', true);
     iframe_header('GmediaGallery');
     echo '<div id="gmedia-container">';
     switch ($gmediablank) {
         case 'update_plugin':
             require_once dirname(dirname(__FILE__)) . '/config/update.php';
             gmedia_do_update();
             break;
         case 'image_editor':
             require_once dirname(dirname(__FILE__)) . '/inc/image-editor.php';
             gmedia_image_editor();
             break;
         case 'map_editor':
             require_once dirname(dirname(__FILE__)) . '/inc/map-editor.php';
             gmedia_map_editor();
             break;
         case 'library':
             echo '<div id="gmedia_iframe_content">';
             echo '<div id="gm-message">' . $gmCore->alert('success', $gmProcessor->msg) . $gmCore->alert('danger', $gmProcessor->error) . '</div>';
             include GMEDIA_ABSPATH . 'admin/pages/library/library.php';
             echo '</div>';
             break;
         case 'comments':
             require_once dirname(__FILE__) . '/tpl/comments.php';
             break;
         case 'module_preview':
             require_once dirname(__FILE__) . '/tpl/module-preview.php';
             break;
     }
     echo '</div>';
     iframe_footer();
     exit;
 }
开发者ID:pasyuk,项目名称:grand-media,代码行数:41,代码来源:admin.php

示例14: install_theme_information

/**
 * Display theme information in dialog box form.
 *
 * @since 2.8.0
 */
function install_theme_information()
{
    //TODO: This function needs a LOT of UI work :)
    global $tab, $themes_allowedtags;
    $api = themes_api('theme_information', array('slug' => stripslashes($_REQUEST['theme'])));
    if (is_wp_error($api)) {
        wp_die($api);
    }
    // Sanitize HTML
    foreach ((array) $api->sections as $section_name => $content) {
        $api->sections[$section_name] = wp_kses($content, $themes_allowedtags);
    }
    foreach (array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key) {
        if (isset($api->{$key})) {
            $api->{$key} = wp_kses($api->{$key}, $themes_allowedtags);
        }
    }
    iframe_header(__('Theme Install'));
    if (empty($api->download_link)) {
        echo '<div id="message" class="error"><p>' . __('<strong>ERROR:</strong> This theme is currently not available. Please try again later.') . '</p></div>';
        iframe_footer();
        exit;
    }
    if (!empty($api->tested) && version_compare($GLOBALS['wp_version'], $api->tested, '>')) {
        echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This theme has <strong>not been tested</strong> with your current version of WordPress.') . '</p></div>';
    } else {
        if (!empty($api->requires) && version_compare($GLOBALS['wp_version'], $api->requires, '<')) {
            echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This theme has not been marked as <strong>compatible</strong> with your version of WordPress.') . '</p></div>';
        }
    }
    // Default to a "new" theme
    $type = 'install';
    // Check to see if this theme is known to be installed, and has an update awaiting it.
    $update_themes = get_site_transient('update_themes');
    if (is_object($update_themes) && isset($update_themes->response)) {
        foreach ((array) $update_themes->response as $theme_slug => $theme_info) {
            if ($theme_slug === $api->slug) {
                $type = 'update_available';
                $update_file = $theme_slug;
                break;
            }
        }
    }
    $themes = get_themes();
    foreach ((array) $themes as $this_theme) {
        if (is_array($this_theme) && $this_theme['Stylesheet'] == $api->slug) {
            if ($this_theme['Version'] == $api->version) {
                $type = 'latest_installed';
            } elseif ($this_theme['Version'] > $api->version) {
                $type = 'newer_installed';
                $newer_version = $this_theme['Version'];
            }
            break;
        }
    }
    ?>

<div class='available-theme'>
<img src='<?php 
    echo esc_url($api->screenshot_url);
    ?>
' width='300' class="theme-preview-img" />
<h3><?php 
    echo $api->name;
    ?>
</h3>
<p><?php 
    printf(__('by %s'), $api->author);
    ?>
</p>
<p><?php 
    printf(__('Version: %s'), $api->version);
    ?>
</p>

<?php 
    $buttons = '<a class="button" id="cancel" href="#" onclick="tb_close();return false;">' . __('Cancel') . '</a> ';
    switch ($type) {
        default:
        case 'install':
            if (current_user_can('install_themes')) {
                $buttons .= '<a class="button-primary" id="install" href="' . wp_nonce_url(self_admin_url('update.php?action=install-theme&theme=' . $api->slug), 'install-theme_' . $api->slug) . '" target="_parent">' . __('Install Now') . '</a>';
            }
            break;
        case 'update_available':
            if (current_user_can('update_themes')) {
                $buttons .= '<a class="button-primary" id="install"	href="' . wp_nonce_url(self_admin_url('update.php?action=upgrade-theme&theme=' . $update_file), 'upgrade-theme_' . $update_file) . '" target="_parent">' . __('Install Update Now') . '</a>';
            }
            break;
        case 'newer_installed':
            if (current_user_can('install_themes') || current_user_can('update_themes')) {
                ?>
<p><?php 
                printf(__('Newer version (%s) is installed.'), $newer_version);
                ?>
//.........这里部分代码省略.........
开发者ID:vivekkodira1,项目名称:wordpress,代码行数:101,代码来源:theme-install.php

示例15: install_theme_information

/**
 * Display theme information in dialog box form.
 *
 * @since 2.8.0
 *
 * @global WP_Theme_Install_List_Table $wp_list_table
 */
function install_theme_information()
{
    global $wp_list_table;
    $theme = themes_api('theme_information', array('slug' => wp_unslash($_REQUEST['theme'])));
    if (is_wp_error($theme)) {
        wp_die($theme);
    }
    iframe_header(__('Theme Install'));
    if (!isset($wp_list_table)) {
        $wp_list_table = _get_list_table('WP_Theme_Install_List_Table');
    }
    $wp_list_table->theme_installer_single($theme);
    iframe_footer();
    exit;
}
开发者ID:harrisonsmith,项目名称:active-progression,代码行数:22,代码来源:theme-install.php


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