本文整理汇总了PHP中pb_backupbuddy::load_style方法的典型用法代码示例。如果您正苦于以下问题:PHP pb_backupbuddy::load_style方法的具体用法?PHP pb_backupbuddy::load_style怎么用?PHP pb_backupbuddy::load_style使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pb_backupbuddy
的用法示例。
在下文中一共展示了pb_backupbuddy::load_style方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
<?php
pb_backupbuddy::load_script('icicle.js');
pb_backupbuddy::load_script('icicle_setup.js');
pb_backupbuddy::load_style('jit_base.css');
pb_backupbuddy::load_style('jit_icicle.css');
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#pb_iciclelaunch').click(function(e) {
jQuery('#pb_infovis_container').slideToggle();
jQuery.post( '<?php
echo pb_backupbuddy::ajax_url('icicle');
?>
',
function( data ) {
jQuery('#infovis').html('');
icicle_init( data );
}
);
});
jQuery( '.pb_backupbuddy_site_size_listing_button' ).click( function() {
jQuery( '#pb_backupbuddy_site_size_listing_intro > .pb_backupbuddy_loading' ).show();
jQuery.post( '<?php
echo pb_backupbuddy::ajax_url('site_size_listing');
?>
',
function( data ) {
jQuery( '#pb_backupbuddy_site_size_listing_content' ).html( data );
jQuery( '#pb_backupbuddy_site_size_listing_intro > .pb_backupbuddy_loading' ).hide();
示例2: quickstart
function quickstart()
{
pb_backupbuddy::$ui->ajax_header();
pb_backupbuddy::load_style('thickboxed.css');
require_once pb_backupbuddy::plugin_path() . '/views/_quicksetup.php';
pb_backupbuddy::$ui->ajax_footer();
die;
}
示例3:
<?php
//pb_backupbuddy::load_script( 'jquery-ui-core', true ); // WP core script.
pb_backupbuddy::load_script('jquery-ui-datepicker', true);
// WP core script.
pb_backupbuddy::load_script('jquery-ui-slider', true);
// WP core script.
pb_backupbuddy::load_script('timepicker.js');
pb_backupbuddy::load_style('admin.css', false);
// Plugin-specific file.
pb_backupbuddy::load_style('jquery_smoothness.css', false);
// Plugin-specific file.
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery( '#pb_backupbuddy_first_run' ).datetimepicker({
ampm: true
});
});
</script>
<?php
pb_backupbuddy::$classes['core']->versions_confirm();
$date_format_example = 'mm/dd/yyyy hh:mm [am/pm]';
// Example date format for displaying to user.
// HANDLE SCHEDULE DELETION.
if (pb_backupbuddy::_POST('bulk_action') == 'delete_schedule') {
pb_backupbuddy::verify_nonce(pb_backupbuddy::_POST('_wpnonce'));
// Security check to prevent unauthorized deletions by posting from a remote place.
示例4: ajax_header
function ajax_header($js = true)
{
echo '<head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
echo '<title>PluginBuddy</title>';
wp_print_styles('global');
wp_print_styles('wp-admin');
wp_print_styles('colors-fresh');
wp_print_styles('colors-fresh');
if ($js === true) {
wp_enqueue_script('jquery');
wp_print_scripts('jquery');
}
//echo '<link rel="stylesheet" href="' . pb_backupbuddy::plugin_url(); . '/css/admin.css" type="text/css" media="all" />';
pb_backupbuddy::load_script('admin.js', true);
pb_backupbuddy::load_style('admin.css', true);
pb_backupbuddy::load_script('tooltip.js', true);
echo '<body class="wp-core-ui">';
echo '<div style="padding: 8px; padding-left: 12px; padding-right: 12px;">';
}
示例5: die
<?php
if (!is_admin()) {
die('Access denied.');
}
pb_backupbuddy::$ui->ajax_header();
pb_backupbuddy::load_style('thickboxed.css');
require_once pb_backupbuddy::plugin_path() . '/views/_quicksetup.php';
pb_backupbuddy::$ui->ajax_footer();
die;
示例6: __call
function __call($name, $arguments)
{
$page_file = pb_backupbuddy::plugin_path() . '/controllers/pages/' . $name . '.php';
if ($name == 'getting_started') {
$page_file = pb_backupbuddy::plugin_path() . '/pluginbuddy/_' . $name . '.php';
}
if (file_exists($page_file)) {
// Load from /controllers/pages/PAGE.php if it exists.
//pb_backupbuddy::load();
//pb_backupbuddy::init_class_controller(); // Adds ui controller if it doesnt exist yet. EDIT: now handled in pb_backupbuddy::__construct().
// Display page.
pb_backupbuddy::load_script('admin.js', true);
pb_backupbuddy::load_style('admin.css', true);
pb_backupbuddy::load_script('tooltip.js', true);
echo '<div class="wrap">';
require_once $page_file;
echo '</div>';
// After page.
if (pb_backupbuddy::$options['log_level'] == '3' || defined('PB_DEBUG') && PB_DEBUG === true) {
pb_backupbuddy::debug();
}
} else {
// Not found
echo '{Missing pages method `' . $name . '`.}';
}
}
示例7: htmlentities
<?php
// $mode is defined prior to this file load as either destination or migration.
if ($mode == 'migration') {
$picker_url = pb_backupbuddy::ajax_url('migration_picker');
} else {
$picker_url = pb_backupbuddy::ajax_url('destination_picker');
}
if (pb_backupbuddy::_GET('action_verb') != '') {
$action_verb = ' ' . htmlentities(pb_backupbuddy::_GET('action_verb'));
} else {
// default
$action_verb = '';
}
pb_backupbuddy::load_style('admin');
pb_backupbuddy::load_style('destination_picker.css');
pb_backupbuddy::load_script('jquery');
pb_backupbuddy::load_script('jquery-ui-core');
pb_backupbuddy::load_script('jquery-ui-widget');
// Load accordion JS. Pre WP v3.3 we need to load our own JS file. Was: pb_backupbuddy::load_script( 'jquery-ui-accordion' );
global $wp_version;
pb_backupbuddy::load_script(version_compare($wp_version, '3.3', '<') ? 'jquery.ui.accordion.min.js' : 'jquery-ui-accordion');
// Destinations may hide the add and test buttons by altering these variables.
global $pb_hide_save;
global $pb_hide_test;
$pb_hide_save = false;
$pb_hide_test = false;
// Load destinations class.
require_once pb_backupbuddy::plugin_path() . '/destinations/bootstrap.php';
?>
示例8: jQuery
<?php
// TODO: The entire remote destination picking / editing system is still loving in the pre-framework architecture. Migrate it.
pb_backupbuddy::load_style('admin');
pb_backupbuddy::load_script('jquery');
pb_backupbuddy::load_script('admin.js', true);
// pbframework version due to second param.
pb_backupbuddy::load_script('admin.js');
pb_backupbuddy::load_style('admin.css', true);
// pbframework version due to second param.
pb_backupbuddy::load_script('tooltip.js', true);
// pbframework version due to second param.
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#pluginbuddy-tabs").tabs();
jQuery('.pb_backupbuddy_selectdestination').click(function(e) {
var win = window.dialogArguments || opener || parent || top;
win.pb_backupbuddy_selectdestination( jQuery(this).attr( 'href' ), jQuery(this).attr( 'alt' ), '<?php
if (!empty($_GET['callback_data'])) {
echo $_GET['callback_data'];
}
?>
' );
win.tb_remove();
return false;
});
});
</script>
示例9: __call
function __call($name, $arguments)
{
$page_file = pb_backupbuddy::plugin_path() . '/controllers/pages/' . $name . '.php';
if ($name == 'getting_started') {
$page_file = pb_backupbuddy::plugin_path() . '/pluginbuddy/_' . $name . '.php';
}
if (file_exists($page_file)) {
// Load from /controllers/pages/PAGE.php if it exists.
// Display page.
pb_backupbuddy::load_script('admin.js', true);
pb_backupbuddy::load_style('admin.css', true);
pb_backupbuddy::load_script('tooltip.js', true);
echo '<div class="wrap">';
require_once $page_file;
echo '</div>';
echo '<div id="footer-thankyou" style="float: right; color: #777; margin-right: 21px; margin-top: 20px; margin-bottom: -34px;">Running BackupBuddy v' . pb_backupbuddy::settings('version') . '.</div>';
} else {
// Not found
echo '{Missing pages method `' . $name . '`.}';
}
}
示例10:
<!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8" dir="ltr" lang="en-US">
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<!--<![endif]-->
<head>
<title>BackupBuddy importbuddy.php by PluginBuddy.com</title>
<meta name="robots" content="noindex">
<?php
pb_backupbuddy::load_style('style.css');
pb_backupbuddy::load_script('jquery.js');
pb_backupbuddy::load_script('ui.core.js');
pb_backupbuddy::load_script('ui.widget.js');
pb_backupbuddy::load_script('ui.tabs.js');
pb_backupbuddy::load_script('tooltip.js');
pb_backupbuddy::load_script('importbuddy.js');
?>
</head>
<?php
if (pb_backupbuddy::$options['display_mode'] == 'normal') {
echo '<body>';
echo '<center><img src="importbuddy/images/bb-logo.png" title="BackupBuddy Restoration & Migration Tool" style="margin-top: 10px;"></center><br>';
} else {
// Magic migration mode inside WordPress (in an iframe).
echo '<body onLoad="window.parent.scroll(0,0);">';
// Auto scroll to top of parent while in iframe.
}
//<a href="http://ithemes.com/codex/page/BackupBuddy" style="text-decoration: none;">Need help? See the <b>Knowledge Base</b> for tutorials & more.</a><br>
?>
示例11: ajax_header
function ajax_header($js = true, $padding = true)
{
echo '<head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
echo '<title>PluginBuddy</title>';
wp_print_styles('wp-admin');
wp_print_styles('dashicons');
wp_print_styles('buttons');
wp_print_styles('colors');
if ($js === true) {
wp_enqueue_script('jquery');
wp_print_scripts('jquery');
}
pb_backupbuddy::load_style('wp-admin.css');
echo '<style>
.form-table input[type=radio],.form-table input[type=checkbox] {
width: 16px;
height: 16px;
}
.form-table input[type=checkbox]:checked:before {
margin: -7px;
}
.form-table input[type=radio]:checked:before {
margin: 3px;
}
</style>';
//echo '<link rel="stylesheet" href="' . pb_backupbuddy::plugin_url(); . '/css/admin.css" type="text/css" media="all" />';
pb_backupbuddy::load_script('admin.js', true);
pb_backupbuddy::load_style('admin.css', true);
pb_backupbuddy::load_script('tooltip.js', true);
echo '<body class="wp-core-ui">';
if ($padding === true) {
echo '<div style="padding: 8px; padding-left: 12px; padding-right: 12px;">';
} else {
echo '<div>';
}
}
示例12:
<?php
pb_backupbuddy::load_style('style.css');
pb_backupbuddy::load_script('jquery.js');
pb_backupbuddy::load_script('ui.core.js');
pb_backupbuddy::load_script('ui.widget.js');
pb_backupbuddy::load_script('ui.tabs.js');
pb_backupbuddy::load_script('tooltip.js');
pb_backupbuddy::load_script('nprogress.js');
pb_backupbuddy::load_script('importbuddy.js');
// Tutorial
pb_backupbuddy::load_script('jquery.joyride-2.0.3.js');
pb_backupbuddy::load_script('modernizr.mq.js');
pb_backupbuddy::load_style('joyride.css');
pb_backupbuddy::load_style('nprogress.css');
示例13: jQuery
<?php
// TODO: The entire remote destination picking / editing system is still loving in the pre-framework architecture. Migrate it.
pb_backupbuddy::load_style( 'admin' );
pb_backupbuddy::load_script( 'jquery' );
pb_backupbuddy::load_script( 'admin.js', true ); // pbframework version due to second param.
pb_backupbuddy::load_script( 'admin.js' );
pb_backupbuddy::load_style( 'admin.css', true ); // pbframework version due to second param.
pb_backupbuddy::load_script( 'tooltip.js', true ); // pbframework version due to second param.
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#pluginbuddy-tabs").tabs();
jQuery('.pb_backupbuddy_selectdestination').click(function(e) {
var win = window.dialogArguments || opener || parent || top;
win.pb_backupbuddy_selectdestination( jQuery(this).attr( 'href' ), jQuery(this).attr( 'alt' ), '<?php if ( !empty( $_GET['callback_data'] ) ) { echo $_GET['callback_data']; } ?>' );
win.tb_remove();
return false;
});
});
</script>
<?php
// Handle duplication.
if ( pb_backupbuddy::_GET( 'duplicate' ) != '' ) {
if ( !isset( pb_backupbuddy::$options['remote_destinations'][pb_backupbuddy::_GET( 'duplicate' )] ) ) {
pb_backupbuddy::alert( 'Invalid destination ID to duplicate.' );
示例14: foreach
<?php
// This file is automatically loaded for the getting started page as a `template` of sorts.
// The individual plugin getting started page is included from this.
// Set up supporting scripts and styles.
pb_backupbuddy::load_script('dashboard');
pb_backupbuddy::load_style('dashboard');
pb_backupbuddy::load_script('jquery-ui-tabs');
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#pluginbuddy-tabs').tabs();
});
</script>
<?php
//echo '<div style="float: right; width: 20%; margin-right: 30px; margin-left: 10px; margin-top: 60px;"><br><br>';
echo '<table width="100%"><tr><td valign="top" style="width: 80%;">';
if (pb_backupbuddy::settings('series') != '') {
// SERIES
pb_backupbuddy::$ui->title('Getting Started with ' . pb_backupbuddy::settings('series'));
?>
<div id="pluginbuddy-tabs" style="width: 70%;">
<ul>
<?php
global $pluginbuddy_series;
$i = 0;
foreach ($pluginbuddy_series[pb_backupbuddy::settings('series')] as $slug => $data) {
$i++;
echo '<li type="disc"><a href="#pluginbuddy-tabs-' . $i . '"><span>' . $data['name'] . '</span></a></li>';
}
?>
示例15: die
<?php
if (!current_user_can(pb_backupbuddy::$options['role_access'])) {
die('Access Denied. Error 445543454754.');
}
wp_enqueue_script('thickbox');
wp_print_scripts('thickbox');
wp_print_styles('thickbox');
// Handles thickbox auto-resizing. Keep at bottom of page to avoid issues.
if (!wp_script_is('media-upload')) {
wp_enqueue_script('media-upload');
wp_print_scripts('media-upload');
}
pb_backupbuddy::load_style('quicksetup.css');
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery( '#pb_backupbuddy_quickstart_password, #pb_backupbuddy_quickstart_passwordconfirm' ).keyup( function() {
if ( ( jQuery( '#pb_backupbuddy_quickstart_password' ).val() != '' ) && ( jQuery( '#pb_backupbuddy_quickstart_password' ).val() == jQuery( '#pb_backupbuddy_quickstart_passwordconfirm' ).val() ) ) {
jQuery( '#pb_backupbuddy_quickstart_password_check_fail,#pb_backupbuddy_quickstart_password_check_fail > img' ).hide();
jQuery( '#pb_backupbuddy_quickstart_password_check' ).show();
} else {
jQuery( '#pb_backupbuddy_quickstart_password_check' ).hide();
if ( ( jQuery( '#pb_backupbuddy_quickstart_password' ).val() != '' ) || ( jQuery( '#pb_backupbuddy_quickstart_passwordconfirm' ).val() != '' ) ) { // Mismatch non-blank.
jQuery( '#pb_backupbuddy_quickstart_password_check_fail,#pb_backupbuddy_quickstart_password_check_fail > img' ).show();
} else if ( ( jQuery( '#pb_backupbuddy_quickstart_password' ).val() == '' ) && ( jQuery( '#pb_backupbuddy_quickstart_passwordconfirm' ).val() == '' ) ) { // both blank
jQuery( '#pb_backupbuddy_quickstart_password_check_fail,#pb_backupbuddy_quickstart_password_check_fail > img' ).hide();
}