get_error_message(); else : //foreach ( $themes_data as $page_number_key => $theme_data ) : $themes = ( isset( $theme_data->collection ) && ! empty( $theme_data->collection ) ) ? $theme_data->collection : array(); $config = onecom_themes_listing_config(); if ( empty( $themes ) ) { return; } ?>
$theme ) : $is_installed = onecom_is_theme_installed( $theme->slug ); $network_enabled = false; if ( $is_installed ) { $theme_object = wp_get_theme( $theme->slug ); if ( $theme_object->is_allowed( 'network' ) ) { $network_enabled = true; } } $tags = $theme->tags; $tags = implode( ' ', $tags ); $hidden_class = $key > ( $config['item_count'] - 1 ) ? 'hidden_theme' : ''; $page_class = ceil( ( $key + 1 ) / $config['item_count'] ); $is_premium = ( ( is_array( $theme->tags ) && in_array( 'premium', $theme->tags ) ) ? 1 : 0 ); ?>
thumbnail; $thumbnail_url = preg_replace( '#^https?:#', '', $thumbnail_url ); ?> <?php echo $theme->name; ?>
tags ); ?>

name; ?>

redirect = '/network/themes.php?enabled=1'; $theme->redirect = add_query_arg( array( 'enabled' => '1', ), network_admin_url( 'themes.php' ) ); // convert & to & to validate dom via PHPUnit $theme->redirect = esc_url( $theme->redirect ); $classNew = ''; if ( $network_enabled ) { $classNew = 'current_active_theme'; } ?>
'enable', '_wpnonce' => wp_create_nonce( 'enable-theme_' . $theme->slug ), 'theme' => $theme->slug, ), network_admin_url( 'themes.php' ) ); ?> redirect ) ) || $theme->redirect != '' ) : ?>