• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP iframe_footer函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: 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') {
         add_filter('update_bulk_plugins_complete_actions', array($this, 'update_plugin_complete_actions'), 10, 2);
         $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
         add_filter('install_plugin_complete_actions', array($this, 'update_plugin_complete_actions'), 10, 3);
         $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:duboisGeof,项目名称:deliciousMeals,代码行数:51,代码来源:WJ_Upgrade.php


示例17: footer

 protected function footer()
 {
     iframe_footer();
     die;
 }
开发者ID:ashik968,项目名称:digiplot,代码行数:5,代码来源:Mini.php


示例18: install_plugin_information


//.........这里部分代码省略.........
<?php 
    }
    if (!empty($api->tested)) {
        ?>
			<li><strong><?php 
        _e('Compatible up to:');
        ?>
</strong> <?php 
        echo $api->tested;
        ?>
</li>
<?php 
    }
    if (!empty($api->downloaded)) {
        ?>
			<li><strong><?php 
        _e('Downloaded:');
        ?>
</strong> <?php 
        printf(_n('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded));
        ?>
</li>
<?php 
    }
    if (!empty($api->slug) && empty($api->external)) {
        ?>
			<li><a target="_blank" href="http://wordpress.org/extend/plugins/<?php 
        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>
		<?php 
    if (!empty($api->rating)) {
        ?>
		<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 esc_attr(str_replace(',', '.', $api->rating));
        ?>
px"></div>
		</div>
		<small><?php 
        printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings));
        ?>
</small>
		<?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="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) {
        if (isset($plugins_section_titles[$section_name])) {
            $title = $plugins_section_titles[$section_name];
        } else {
            $title = ucwords(str_replace('_', ' ', $section_name));
        }
        $content = links_add_base_url($content, 'http://wordpress.org/extend/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 "\t\t<h2 class='long-header'>{$title}</h2>";
        echo $content;
        echo "\t</div>\n";
    }
    echo "</div>\n";
    iframe_footer();
    exit;
}
开发者ID:jcsilkey,项目名称:CodeReviewSecurityRepo,代码行数:101,代码来源:plugin-install.php


示例19: install_plugin_information


//.........这里部分代码省略.........
px;"></span>
						</span>
					</a>
					<span class="counter-count"><?php 
            echo number_format_i18n($ratecount);
            ?>
</span>
				</div>
				<?php 
        }
    }
    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="error"><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="error"><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) {
        $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 (!empty($api->download_link) && (current_user_can('install_plugins') || current_user_can('update_plugins'))) {
        $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:justatechnology,项目名称:Security,代码行数:101,代码来源:plugin-install.php


示例20: ultimatum_layout_creator_thickbox

function ultimatum_layout_creator_thickbox()
{
	iframe_header();
	global $wpdb;
		if($_POST){
			$query = "INSERT INTO `".ULTIMATUM_TABLE_LAYOUT."` (`title`, `type`,`theme`) VALUES ('$_POST[title]', '$_POST[type]','$_REQUEST[theme]')";
			$wpdb->query($query);
			$layoutid = $wpdb->insert_id;
			?>
			<script type="text/javascript">
				self.parent.CreateLayout(<?php echo $layoutid;?>,<?php echo $_REQUEST["theme"]; ?>,'<?php echo admin_url();?>');
			</script>
			<?php 
		}
		?>
		<div class="fixed-top">
<div class="tb-closer"><i class="fa fa-off"></i> Close</div>
<div class="save-form" data-form="create-layout"><i class="fa fa-save"></i> <?php _e('Save', 'ultimatum');?></div>
</div>
<form method="post" action="" id="create-layout">
				<table class="widefat" style="width:100%;height:100%">
					<thead>
						<tr>
							<th colspan="2"><?php _e('Create a new Layout', 'ultimatum'); ?></th>
						</tr>
					</thead>
					<tfoot>
					</tfoot>
					<tbody>
						<tr>
							<td nowrap="nowrap"><label><?php _e('Layout Name', 'ultimatum');?> :</label></td>
							<td><input type="text" name="title" value="<?php _e('Layout Name', 'ultimatum');?>" /></td>
						</tr>
						<tr>
							<td nowrap="nowrap">
								<label><?php _e('Layout Type', 'ultimatum');?> :</label>
							</td>
							<td>
							<p><i><strong><?php _e('Full Layouts', 'ultimatum');?></strong> <?php _e('are the main layouts that you can assign to post types and posts or pages.', 'ultimatum');?></i></p>
							<p><i><strong><?php _e('Partial Layouts', 'ultimatum');?></strong> <?php _e('are the layouts that you might want to use more then once. You can include them before or after the main section of a full layout.', 'ultimatum');?></i></p>
								<select name="type">
									<option value="full"><?php _e('Full', 'ultimatum');?></option>
									<option value="part"><?php _e('Part', 'ultimatum');?></option>
								</select>
							</td>
						</tr>
						
					</tbody>
				</table>
				</form>
				<script type="text/javascript">
    			    jQuery('.tb-closer') .click(
    	    			    function() {
        	    			    self.parent.tb_remove();
        	    			    });
    			    jQuery('.save-form').each(function(){
        			    var form = jQuery(this).attr('data-form');
        			    jQuery(this).click(function(){
            			    jQuery('#'+form).submit();
            			    });
        			    });
    			</script>
<?php
	iframe_footer();
	exit; //Die to prevent the page continueing loading and adding the admin menu's etc.
}
开发者ID:polaris610,项目名称:medicalhound,代码行数:66,代码来源:create.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP iframe_header函数代码示例发布时间:2022-05-15
下一篇:
PHP iframe函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap