當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。