本文整理汇总了PHP中iframe_header函数的典型用法代码示例。如果您正苦于以下问题:PHP iframe_header函数的具体用法?PHP iframe_header怎么用?PHP iframe_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了iframe_header函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: do_extension_custom_upgrade
function do_extension_custom_upgrade()
{
if (!current_user_can('update_themes')) {
wp_die(__('You do not have sufficient permissions to update extensions for this site.', 'framework'));
}
check_admin_referer('bulk-update-themes');
if (isset($_GET['extensions'])) {
$extensions = explode(',', stripslashes($_GET['extensions']));
} elseif (isset($_POST['checked'])) {
$extensions = (array) $_POST['checked'];
} else {
$extensions = array();
}
$extensions = array_map('urldecode', $extensions);
require_once 'extension_upgrader.php';
$url = 'update.php?action=update-selected-extensions&extensions=' . urlencode(implode(',', $extensions));
$nonce = 'bulk-update-themes';
wp_enqueue_script('jquery');
iframe_header();
$upgrader = new Extension_Upgrader(new Bulk_Extension_Upgrader_Skin(compact('nonce', 'url')));
$upgrader->bulk_upgrade($extensions);
iframe_footer();
}
开发者ID:ArnaudGuillou,项目名称:SiteESBVolley,代码行数:23,代码来源:settings-object.php
示例17: install_plugin_information
/**
* Display plugin information in dialog box form.
*
* @since 2.7.0
*/
function install_plugin_information()
{
global $tab;
$api = plugins_api('plugin_information', array('slug' => stripslashes($_REQUEST['plugin'])));
if (is_wp_error($api)) {
wp_die($api);
}
$plugins_allowedtags = array('a' => array('href' => array(), 'title' => array(), 'target' => array()), 'abbr' => array('title' => array()), 'acronym' => array('title' => array()), 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(), 'div' => array(), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'img' => array('src' => array(), 'class' => array(), 'alt' => array()));
//Sanitize HTML
foreach ((array) $api->sections as $section_name => $content) {
$api->sections[$section_name] = wp_kses($content, $plugins_allowedtags);
}
foreach (array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key) {
$api->{$key} = wp_kses($api->{$key}, $plugins_allowedtags);
}
$section = isset($_REQUEST['section']) ? stripslashes($_REQUEST['section']) : 'description';
//Default to the Description tab, Do not translate, API returns English.
if (empty($section) || !isset($api->sections[$section])) {
$section = array_shift($section_titles = array_keys((array) $api->sections));
}
iframe_header(__('Plugin Install'));
echo "<div id='{$tab}-header'>\n";
echo "<ul id='sidemenu'>\n";
foreach ((array) $api->sections as $section_name => $content) {
$title = $section_name;
$title = ucwords(str_replace('_', ' ', $title));
$class = $section_name == $section ? ' class="current"' : '';
$href = add_query_arg(array('tab' => $tab, 'section' => $section_name));
$href = clean_url($href);
$san_title = attribute_escape(sanitize_title_with_dashes($title));
echo "\t<li><a name='{$san_title}' target='' href='{$href}'{$class}>{$title}</a></li>\n";
}
echo "</ul>\n";
echo "</div>\n";
?>
<div class="alignright fyi">
<?php
if (!empty($api->download_link)) {
?>
<p class="action-button">
<?php
//Default to a "new" plugin
$type = 'install';
//Check to see if this plugin is known to be installed, and has an update awaiting it.
$update_plugins = get_option('update_plugins');
foreach ((array) $update_plugins->response as $file => $plugin) {
if ($plugin->slug === $api->slug) {
$type = 'update_available';
$update_file = $file;
break;
}
}
if ('install' == $type && is_dir(WP_PLUGIN_DIR . '/' . $api->slug)) {
$installed_plugin = get_plugins('/' . $api->slug);
if (!empty($installed_plugin)) {
$key = array_shift($key = array_keys($installed_plugin));
//Use the first plugin regardless of the name, Could have issues for multiple-plugins in one directory if they share different version numbers
if (version_compare($api->version, $installed_plugin[$key]['Version'], '>')) {
$type = 'latest_installed';
} elseif (version_compare($api->version, $installed_plugin[$key]['Version'], '<')) {
$type = 'newer_installed';
$newer_version = $installed_plugin[$key]['Version'];
} else {
//If the above update check failed, Then that probably means that the update checker has out-of-date information, force a refresh
delete_option('update_plugins');
$update_file = $api->slug . '/' . $key;
//This code branch only deals with a plugin which is in a folder the same name as its slug, Doesnt support plugins which have 'non-standard' names
$type = 'update_available';
}
}
}
switch ($type) {
default:
case 'install':
if (current_user_can('install_plugins')) {
?>
<a href="<?php
echo wp_nonce_url(admin_url('plugin-install.php?tab=install&plugin=' . $api->slug), 'install-plugin_' . $api->slug);
?>
" target="_parent"><?php
_e('Install Now');
?>
</a><?php
}
break;
case 'update_available':
if (current_user_can('update_plugins')) {
?>
<a href="<?php
echo wp_nonce_url(admin_url('update.php?action=upgrade-plugin&plugin=' . $update_file), 'upgrade-plugin_' . $update_file);
?>
" target="_parent"><?php
_e('Install Update Now');
?>
</a><?php
//.........这里部分代码省略.........
开发者ID:schr,项目名称:wordpress,代码行数:101,代码来源:plugin-install.php
示例18: 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
示例19: install_theme_information
/**
* Display theme information in dialog box form.
*
* @since 2.8.0
*/
function install_theme_information()
{
global $tab, $themes_allowedtags, $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'));
$wp_list_table->theme_installer_single($theme);
iframe_footer();
exit;
}
开发者ID:dev-lav,项目名称:htdocs,代码行数:17,代码来源:theme-install.php
示例20: fs_install_plugin_information
/**
* Display plugin information in dialog box form.
*
* @since 2.7.0
*/
function fs_install_plugin_information()
{
global $tab;
if (empty($_REQUEST['plugin'])) {
return;
}
$args = array('slug' => wp_unslash($_REQUEST['plugin']), 'is_ssl' => is_ssl(), 'fields' => array('banners' => true, 'reviews' => true));
if (is_array($args)) {
$args = (object) $args;
}
if (!isset($args->per_page)) {
$args->per_page = 24;
}
if (!isset($args->locale)) {
$args->locale = get_locale();
}
$api = apply_filters('fs_plugins_api', false, 'plugin_information', $args);
if (is_wp_error($api)) {
wp_die($api);
}
$plugins_allowedtags = array('a' => array('href' => array(), 'title' => array(), 'target' => array(), 'class' => array()), 'style' => array(), 'abbr' => array('title' => array()), 'acronym' => array('title' => array()), 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(), 'div' => array('class' => array()), 'span' => array('class' => array()), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array('class' => array()), 'i' => array('class' => array()), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'img' => array('src' => array(), 'class' => array(), 'alt' => array()));
$plugins_section_titles = array('description' => _x('Description', 'Plugin installer section title'), 'installation' => _x('Installation', 'Plugin installer section title'), 'faq' => _x('FAQ', 'Plugin installer section title'), 'screenshots' => _x('Screenshots', 'Plugin installer section title'), 'changelog' => _x('Changelog', 'Plugin installer section title'), 'reviews' => _x('Reviews', 'Plugin installer section title'), 'other_notes' => _x('Other Notes', 'Plugin installer section title'));
// Sanitize HTML
// foreach ( (array) $api->sections as $section_name => $content ) {
// $api->sections[$section_name] = wp_kses( $content, $plugins_allowedtags );
// }
foreach (array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key) {
if (isset($api->{$key})) {
$api->{$key} = wp_kses($api->{$key}, $plugins_allowedtags);
}
}
// Add after $api->slug is ready.
$plugins_section_titles['features'] = __fs('features-and-pricing', $api->slug);
$_tab = esc_attr($tab);
$section = isset($_REQUEST['section']) ? wp_unslash($_REQUEST['section']) : 'description';
// Default to the Description tab, Do not translate, API returns English.
if (empty($section) || !isset($api->sections[$section])) {
$section_titles = array_keys((array) $api->sections);
$section = array_shift($section_titles);
}
iframe_header(__('Plugin Install'));
$_with_banner = '';
// var_dump($api->banners);
if (!empty($api->banners) && (!empty($api->banners['low']) || !empty($api->banners['high']))) {
$_with_banner = 'with-banner';
$low = empty($api->banners['low']) ? $api->banners['high'] : $api->banners['low'];
$high = empty($api->banners['high']) ? $api->banners['low'] : $api->banners['high'];
?>
<style type="text/css">
#plugin-information-title.with-banner
{
background-image: url( <?php
echo esc_url($low);
?>
);
}
@media only screen and ( -webkit-min-device-pixel-ratio: 1.5 )
{
#plugin-information-title.with-banner
{
background-image: url( <?php
echo esc_url($high);
?>
);
}
}
</style>
<?php
}
echo '<div id="plugin-information-scrollable">';
echo "<div id='{$_tab}-title' class='{$_with_banner}'><div class='vignette'></div><h2>{$api->name}</h2></div>";
echo "<div id='{$_tab}-tabs' class='{$_with_banner}'>\n";
foreach ((array) $api->sections as $section_name => $content) {
if ('reviews' === $section_name && (empty($api->ratings) || 0 === array_sum((array) $api->ratings))) {
continue;
}
if (isset($plugins_section_titles[$section_name])) {
$title = $plugins_section_titles[$section_name];
} else {
$title = ucwords(str_replace('_', ' ', $section_name));
}
$class = $section_name === $section ? ' class="current"' : '';
$href = add_query_arg(array('tab' => $tab, 'section' => $section_name));
$href = esc_url($href);
$san_section = esc_attr($section_name);
echo "\t<a name='{$san_section}' href='{$href}' {$class}>{$title}</a>\n";
}
echo "</div>\n";
?>
<div id="<?php
echo $_tab;
?>
-content" class='<?php
echo $_with_banner;
//.........这里部分代码省略.........
开发者ID:majick777,项目名称:wordpress-sdk,代码行数:101,代码来源:fs-plugin-functions.php
注:本文中的iframe_header函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论