HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/thwoodlg/public_html/wp-content/plugins/w3-total-cache/Generic_WidgetBoldGrid.php
<?php
namespace W3TC;

class Generic_WidgetBoldGrid {
	static public function admin_init_w3tc_dashboard() {
		$show = apply_filters( 'w3tc_generic_boldgrid_show', self::should_show_widget() );
		if ( !$show ) {
			return;
		}

		$o = new Generic_WidgetBoldGrid();

		Util_Widget::add2( 'w3tc_boldgrid', 5000,
			'<div class="w3tc-widget-boldgrid-logo"></div>',
			array( $o, 'widget_form' ),
			self_admin_url(
				'plugin-install.php?tab=plugin-information&amp;plugin=boldgrid-backup' .
				'&amp;TB_iframe=true&amp;width=772&amp;height=550'
			), 'normal', __( 'View Details' ), 'thickbox open-plugin-details-modal' );

		add_thickbox();
		wp_enqueue_script( 'plugin-install' );

		wp_enqueue_script( 'w3tc-boldgrid-widget',
			plugins_url( 'Generic_WidgetBoldGrid_View.js', W3TC_FILE ),
			array( 'thickbox' ), W3TC_VERSION );
	}



	/**
	 * Determine whether or not we should show the backup widget.
	 *
	 * We will only recommend the backup plugin if we detect that the user is not already
	 * running a popular WordPress backup plugin.
	 *
	 * @since 0.11.0
	 *
	 * @return bool
	 */
	static private function should_show_widget() {
		$plugins = get_option( 'active_plugins' );

		$backup_plugins = array(
			'backup/backup.php',
			'backwpup/backwpup.php',
			'boldgrid-backup/boldgrid-backup.php',
			'duplicator/duplicator.php',
			'updraftplus/updraftplus.php',
			'wpvivid-backuprestore/wpvivid-backuprestore.php'
		);

		foreach ( $plugins as $plugin ) {
			if ( in_array( $plugin, $backup_plugins ) ) {
				return false;
			}
		}

		return true;
	}



	public function widget_form() {
		$install_url = wp_nonce_url(
			'admin.php?page=w3tc_dashboard&w3tc_boldgrid_install', 'w3tc' );

		include  W3TC_DIR . '/Generic_WidgetBoldGrid_View.php';
	}
}