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


PHP iframe_footer函数代码示例

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


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

示例1: ultimatum_export_thickbox

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

示例2: ultimatum_layout_options_thickbox

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

示例3: 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

示例4: ultimatum_css_regen_thickbox

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

示例5: ultimatum_mobile_assign_thickbox

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

示例6: 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

示例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: 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

示例9: __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

示例10: 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

示例11: install_plugin_information


//.........这里部分代码省略.........
        echo $api->slug;
        ?>
/"><?php 
        _e('WordPress.org Plugin Page &#187;');
        ?>
</a></li>
<?php 
    }
    if (!empty($api->homepage)) {
        ?>
			<li><a target="_blank" href="<?php 
        echo $api->homepage;
        ?>
"><?php 
        _e('Plugin Homepage  &#187;');
        ?>
</a></li>
<?php 
    }
    ?>
		</ul>
		<h2><?php 
    _e('Average Rating');
    ?>
</h2>
		<div class="star-holder" title="<?php 
    printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings));
    ?>
">
			<div class="star star-rating" style="width: <?php 
    echo attribute_escape($api->rating);
    ?>
px"></div>
			<div class="star star5"><img src="<?php 
    echo admin_url('images/star.gif');
    ?>
" alt="<?php 
    _e('5 stars');
    ?>
" /></div>
			<div class="star star4"><img src="<?php 
    echo admin_url('images/star.gif');
    ?>
" alt="<?php 
    _e('4 stars');
    ?>
" /></div>
			<div class="star star3"><img src="<?php 
    echo admin_url('images/star.gif');
    ?>
" alt="<?php 
    _e('3 stars');
    ?>
" /></div>
			<div class="star star2"><img src="<?php 
    echo admin_url('images/star.gif');
    ?>
" alt="<?php 
    _e('2 stars');
    ?>
" /></div>
			<div class="star star1"><img src="<?php 
    echo admin_url('images/star.gif');
    ?>
" alt="<?php 
    _e('1 star');
    ?>
" /></div>
		</div>
		<small><?php 
    printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings));
    ?>
</small>
	</div>
	<div id="section-holder" class="wrap">
	<?php 
    if (!empty($api->tested) && version_compare(substr($GLOBALS['wp_version'], 0, strlen($api->tested)), $api->tested, '>')) {
        echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This plugin has <strong>not been tested</strong> with your current version of WordPress.') . '</p></div>';
    } else {
        if (!empty($api->requires) && version_compare(substr($GLOBALS['wp_version'], 0, strlen($api->requires)), $api->requires, '<')) {
            echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This plugin has <strong>not been marked as compatible</strong> with your version of WordPress.') . '</p></div>';
        }
    }
    foreach ((array) $api->sections as $section_name => $content) {
        $title = $section_name;
        $title[0] = strtoupper($title[0]);
        $title = str_replace('_', ' ', $title);
        $content = links_add_base_url($content, 'http://wordpress.org/extend/plugins/' . $api->slug . '/');
        $content = links_add_target($content, '_blank');
        $san_title = attribute_escape(sanitize_title_with_dashes($title));
        $display = $section_name == $section ? 'block' : 'none';
        echo "\t<div id='section-{$san_title}' class='section' style='display: {$display};'>\n";
        echo "\t\t<h2 class='long-header'>{$title}</h2>";
        echo $content;
        echo "\t</div>\n";
    }
    echo "</div>\n";
    iframe_footer();
    exit;
}
开发者ID:schr,项目名称:wordpress,代码行数:101,代码来源:plugin-install.php

示例12: sp_do_themes_update

function sp_do_themes_update()
{
    if (!sp_current_user_can('SPF Manage Themes')) {
        spa_etext('Access denied - you do not have permission');
        die;
    }
    check_admin_referer('bulk-update-sp-themes');
    if (isset($_GET['themes'])) {
        $themes = explode(',', stripslashes($_GET['themes']));
    } else {
        if (isset($_POST['checked'])) {
            $themes = (array) $_POST['checked'];
        } else {
            $themes = array();
        }
    }
    $themes = array_map('urldecode', $themes);
    $url = 'update.php?action=update-sp-themes&amp;plugins=' . urlencode(implode(',', $themes));
    $url = wp_nonce_url($url, 'bulk-update-sp-themes');
    wp_enqueue_script('jquery');
    iframe_header();
    $upgrader = new SP_Theme_Upgrader(new Bulk_SP_Theme_Upgrader_Skin(compact('nonce', 'url')));
    $upgrader->bulk_upgrade($themes);
    iframe_footer();
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:25,代码来源:spa-admin-updater.php

示例13: tab_handler

 function tab_handler()
 {
     if (!$this->user_allowed()) {
         return;
     }
     //Set the body ID
     $GLOBALS['body_id'] = 'media-upload';
     //Do an IFrame header
     iframe_header(__('Add From Server', 'add-from-server'));
     //Add the Media buttons
     media_upload_header();
     //Handle any imports:
     $this->handle_imports();
     //Do the content
     $this->main_content();
     //Do a footer
     iframe_footer();
 }
开发者ID:tmhaoge,项目名称:moped,代码行数:18,代码来源:class.add-from-server.php

示例14: attendees_page_screen_setup

 /**
  *    Setups the Attendees screen data.
  */
 public function attendees_page_screen_setup()
 {
     if (!empty($_GET['action']) && in_array($_GET['action'], array('email'))) {
         define('IFRAME_REQUEST', true);
         // Use iFrame Header -- WP Method
         iframe_header();
         // Check if we need to send an Email!
         if (isset($_POST['tribe-send-email']) && $_POST['tribe-send-email']) {
             $status = $this->send_attendee_mail_list();
         } else {
             $status = false;
         }
         $which_tmpl = sanitize_file_name($_GET['action']);
         include $this->path . 'src/admin-views/attendees-' . $which_tmpl . '.php';
         // Use iFrame Footer -- WP Method
         iframe_footer();
         // We need nothing else here
         exit;
     } else {
         $this->attendees_table = new Tribe__Tickets__Attendees_Table();
         $this->maybe_generate_attendees_csv();
         add_filter('admin_title', array($this, 'attendees_admin_title'), 10, 2);
         add_filter('admin_body_class', array($this, 'attendees_admin_body_class'));
     }
 }
开发者ID:acutedeveloper,项目名称:havering-intranet-development,代码行数:28,代码来源:Tickets_Handler.php

示例15: fs_install_plugin_information


//.........这里部分代码省略.........
        }
    }
    if (!empty($api->contributors)) {
        ?>
					<h3><?php 
        _e('Contributors');
        ?>
</h3>
					<ul class="contributors">
						<?php 
        foreach ((array) $api->contributors as $contrib_username => $contrib_profile) {
            if (empty($contrib_username) && empty($contrib_profile)) {
                continue;
            }
            if (empty($contrib_username)) {
                $contrib_username = preg_replace('/^.+\\/(.+)\\/?$/', '\\1', $contrib_profile);
            }
            $contrib_username = sanitize_user($contrib_username);
            if (empty($contrib_profile)) {
                echo "<li><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&amp;s=36' width='18' height='18' />{$contrib_username}</li>";
            } else {
                echo "<li><a href='{$contrib_profile}' target='_blank'><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&amp;s=36' width='18' height='18' />{$contrib_username}</a></li>";
            }
        }
        ?>
					</ul>
					<?php 
        if (!empty($api->donate_link)) {
            ?>
						<a target="_blank"
						   href="<?php 
            echo esc_url($api->donate_link);
            ?>
"><?php 
            _e('Donate to this plugin &#187;');
            ?>
</a>
					<?php 
        }
        ?>
				<?php 
    }
    ?>
		</div>
		<div id="section-holder" class="wrap">
	<?php 
    if (!empty($api->tested) && version_compare(substr($GLOBALS['wp_version'], 0, strlen($api->tested)), $api->tested, '>')) {
        echo '<div class="notice notice-warning"><p>' . '<strong>' . __('Warning:') . '</strong> ' . __('This plugin has not been tested with your current version of WordPress.') . '</p></div>';
    } else {
        if (!empty($api->requires) && version_compare(substr($GLOBALS['wp_version'], 0, strlen($api->requires)), $api->requires, '<')) {
            echo '<div class="notice notice-warning"><p>' . '<strong>' . __('Warning:') . '</strong> ' . __('This plugin has not been marked as compatible with your version of WordPress.') . '</p></div>';
        }
    }
    foreach ((array) $api->sections as $section_name => $content) {
        $content = links_add_base_url($content, 'https://wordpress.org/plugins/' . $api->slug . '/');
        $content = links_add_target($content, '_blank');
        $san_section = esc_attr($section_name);
        $display = $section_name === $section ? 'block' : 'none';
        echo "\t<div id='section-{$san_section}' class='section' style='display: {$display};'>\n";
        echo $content;
        echo "\t</div>\n";
    }
    echo "</div>\n";
    echo "</div>\n";
    echo "</div>\n";
    // #plugin-information-scrollable
    echo "<div id='{$tab}-footer'>\n";
    if (current_user_can('install_plugins') || current_user_can('update_plugins')) {
        if (!empty($api->checkout_link) && isset($api->plans) && 0 < is_array($api->plans)) {
            echo ' <a class="button button-primary right" href="' . esc_url(add_query_arg(array('plugin_id' => $plan->plugin_id, 'plan_id' => $plan->id, 'pricing_id' => $plan->pricing[0]->id, 'billing_cycle' => $billing_cycle), $api->checkout_link)) . '" target="_parent">' . __fs('purchase', $api->slug) . '</a>';
            // @todo Add Cart concept.
            //			echo ' <a class="button right" href="' . $status['url'] . '" target="_parent">' . __( 'Add to Cart' ) . '</a>';
        } else {
            if (!empty($api->download_link)) {
                $status = install_plugin_install_status($api);
                switch ($status['status']) {
                    case 'install':
                        if ($status['url']) {
                            echo '<a class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __('Install Now') . '</a>';
                        }
                        break;
                    case 'update_available':
                        if ($status['url']) {
                            echo '<a class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __('Install Update Now') . '</a>';
                        }
                        break;
                    case 'newer_installed':
                        echo '<a class="button button-primary right disabled">' . sprintf(__('Newer Version (%s) Installed'), $status['version']) . '</a>';
                        break;
                    case 'latest_installed':
                        echo '<a class="button button-primary right disabled">' . __('Latest Version Installed') . '</a>';
                        break;
                }
            }
        }
    }
    echo "</div>\n";
    iframe_footer();
    exit;
}
开发者ID:majick777,项目名称:wordpress-sdk,代码行数:101,代码来源:fs-plugin-functions.php


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