public/wordpress/wp-content/plugins/backupbuddy/pluginbuddy/classes/ui.php
/*	ajax_header()
	 *	
	 *	Output HTML headers when using AJAX.
	 *	
	 *	@param		boolean		$js			Whether or not to load javascript. Default false.
	 *	@param		bool		$padding	Whether or not to padd wrapper div. Default has padding.
	 *	@return		
	 */


Output HTML headers when using AJAX.

@param          boolean         $js                     Whether or not to load javascript. Default false.
@param          bool            $padding        Whether or not to padd wrapper div. Default has padding.
@return
Output HTML headers when using AJAX . @param boolean $js Whether or not to load javascript . Default false . @param bool $padding Whether or not to padd wrapper div . Default has padding . @return
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' );
		pb_backupbuddy::load_style( 'thickboxed.css' );
		pb_backupbuddy::load_script( 'admin.js', true );
		pb_backupbuddy::load_style( 'admin.css' );
		pb_backupbuddy::load_script( 'jquery-ui-tooltip', false );
		pb_backupbuddy::load_style( 'jQuery-ui-1.11.2.css', true );
		echo '<body class="wp-core-ui" style="background: inherit;">';
		if ( $padding === true ) {
			echo '<div class="bb-iframe-divpadding-noscroll" style="padding: 12px; padding-left: 20px; padding-right: 20px; overflow: scroll;">';
		} else {
			echo '<div>';
		}
	}
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' ) ; pb_backupbuddy :: load_style ( 'thickboxed.css' ) ; pb_backupbuddy :: load_script ( 'admin.js' , true ) ; pb_backupbuddy :: load_style ( 'admin.css' ) ; pb_backupbuddy :: load_script ( 'jquery-ui-tooltip' , false ) ; pb_backupbuddy :: load_style ( 'jQuery-ui-1.11.2.css' , true ) ; echo '<body class="wp-core-ui" style="background: inherit;">' ; if ( $ padding === true ) { echo '<div class="bb-iframe-divpadding-noscroll" style="padding: 12px; padding-left: 20px; padding-right: 20px; overflow: scroll;">' ; } else { echo '<div>' ; } }
ajax_header()
ajax_header ()
//echo '<link rel="stylesheet" href="' . pb_backupbuddy::plugin_url(); . '/css/admin.css" type="text/css" media="all" />';