|
|
|
|
|
is_ignoreThemeUpdates ) {
continue;
}
$theme_upgrades = json_decode( $website->theme_upgrades, true );
$site_opts = MainWP_DB::instance()->get_website_options_array( $website, array( 'premium_upgrades', 'rollback_updates_data' ) );
if ( ! is_array( $site_opts ) ) {
$site_opts = array();
}
$decodedPremiumUpgrades = ! empty( $site_opts['premium_upgrades'] ) ? json_decode( $site_opts['premium_upgrades'], true ) : array();
$rollItems = ! empty( $site_opts['rollback_updates_data'] ) ? json_decode( $site_opts['rollback_updates_data'], true ) : array();
$rollThemes = array();
if ( is_array( $rollItems ) && ! empty( $rollItems['theme'] ) && is_array( $rollItems['theme'] ) ) {
$rollThemes = $rollItems['theme'];
}
if ( is_array( $decodedPremiumUpgrades ) ) {
foreach ( $decodedPremiumUpgrades as $crrSlug => $premiumUpgrade ) {
$premiumUpgrade['premium'] = true;
if ( 'theme' === $premiumUpgrade['type'] ) {
if ( ! is_array( $theme_upgrades ) ) {
$theme_upgrades = array();
}
$premiumUpgrade = array_filter( $premiumUpgrade );
if ( isset( $theme_upgrades[ $crrSlug ] ) && is_array( $theme_upgrades[ $crrSlug ] ) ) {
$theme_upgrades[ $crrSlug ] = array_merge( $theme_upgrades[ $crrSlug ], $premiumUpgrade );
} else {
$theme_upgrades[ $crrSlug ] = $premiumUpgrade;
}
}
}
}
$ignored_themes = json_decode( $website->ignored_themes, true );
if ( is_array( $ignored_themes ) ) {
$theme_upgrades = MainWP_Common_Functions::instance()->get_not_ignored_updates_themesplugins( $theme_upgrades, $ignored_themes );
}
$ignored_themes = json_decode( $userExtension->ignored_themes, true );
if ( is_array( $ignored_themes ) ) {
$theme_upgrades = MainWP_Common_Functions::instance()->get_not_ignored_updates_themesplugins( $theme_upgrades, $ignored_themes );
}
$total_group_theme_updates += count( $theme_upgrades );
if ( ( empty( $theme_upgrades ) ) && ( empty( $website->sync_errors ) ) ) {
continue;
}
?>
|
|
|
client_name ); ?> |
|
print_column_headers(); ?>
$theme_upgrade ) : ?>
id ) . '_group_' . esc_attr( $group_id ) . '_' . $theme_name . '" value="0"/>'; ?>
MainWP_System_Utility::get_theme_icon( $slug ) . ' ' . esc_html( $theme_upgrade['Name'] ) . $indent_hidden,
'version' => '' . esc_html__( 'Version: ', 'mainwp' ) . '' . esc_html( $theme_upgrade['Version'] ),
'latest' => '' . esc_html__( 'Latest: ', 'mainwp' ) . '' . esc_html( $last_version ),
'trusted' => ( in_array( $slug, $trustedThemes, true ) ? true : false ),
'status' => ( isset( $theme_upgrade['active'] ) && $theme_upgrade['active'] ) ? true : false,
);
$others = array();
if ( ! empty( $rollThemes[ $slug ][ $last_version ] ) ) {
$msg = MainWP_Updates_Helper::get_roll_msg( $rollThemes[ $slug ][ $last_version ], true, 'notice' );
$others['roll_info'] = $msg;
}
?>
render_columns( $row_columns, $website, $others );
$action_rendered = isset( $row_columns['action'] ) ? true : false;
if ( ! $action_rendered ) :
?>
|
|
|
|