????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/tempvsty/pontiacques.org/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
/**
* File: Generic_WidgetBoldGrid.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class Generic_WidgetBoldGrid
*/
class Generic_WidgetBoldGrid {
/**
* Admin init for dashboard
*
* @return void
*/
public static 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',
800,
'<div class="w3tc-widget-boldgrid-logo"></div>',
array( $o, 'widget_form' ),
self_admin_url(
'plugin-install.php?tab=plugin-information&plugin=boldgrid-backup&TB_iframe=true&width=772&height=550'
),
'normal',
__( 'View Details', 'w3-total-cache' ),
'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,
false
);
}
/**
* 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
*/
private static 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;
}
/**
* Widget form
*
* @return void
*/
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';
}
}