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


PHP pb_backupbuddy::load_style方法代码示例

本文整理汇总了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();
开发者ID:jimlongo56,项目名称:bhouse,代码行数:31,代码来源:site_size.php

示例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;
 }
开发者ID:serker72,项目名称:T3S,代码行数:8,代码来源:ajax.php

示例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.
开发者ID:verbazend,项目名称:AWFA,代码行数:31,代码来源:scheduling.php

示例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;">';
 }
开发者ID:jimlongo56,项目名称:bhouse,代码行数:20,代码来源:ui.php

示例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;
开发者ID:Ezyva2015,项目名称:SMSF-Academy-Wordpress,代码行数:10,代码来源:quickstart.php

示例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 . '`.}';
     }
 }
开发者ID:netfor,项目名称:nextrading,代码行数:26,代码来源:core_controllers.php

示例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';
?>
开发者ID:jimlongo56,项目名称:bhouse,代码行数:30,代码来源:_destination_picker.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>
开发者ID:verbazend,项目名称:AWFA,代码行数:31,代码来源:_destination_picker.php

示例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 . '`.}';
     }
 }
开发者ID:serker72,项目名称:T3S,代码行数:21,代码来源:core_controllers.php

示例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>
?>
开发者ID:sonnetmedia,项目名称:otherpress.com,代码行数:31,代码来源:_header.php

示例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>';
        }
    }
开发者ID:netfor,项目名称:nextrading,代码行数:37,代码来源:ui.php

示例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');
开发者ID:Coop920,项目名称:Sterling-Wellness,代码行数:15,代码来源:_assets.php

示例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.' );
开发者ID:verbazend,项目名称:AWFA,代码行数:31,代码来源:_destination_picker.php

示例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>';
    }
    ?>
开发者ID:brettex,项目名称:pspark,代码行数:31,代码来源:_getting_started.php

示例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();
				}
开发者ID:Coop920,项目名称:Sterling-Wellness,代码行数:31,代码来源:_quicksetup.php


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