:

collection; $config = onecom_themes_listing_config(); $response = array(); //merge one.com themes and wp.org themes $themes = merge_classic_wp_themes($oci_theme_fetch); $html = array(); if( !empty( $themes ) ) { $themes = onecom_filter_hidden_themes($themes); foreach ($themes as $key => $theme) : $is_installed = onecom_is_theme_installed( $theme->slug ); $tags = $theme->tags; $tags = implode( ' ', $tags ); // $hidden_class = $key > ( $config['item_count'] - 1 ) ? 'hidden_theme' : ''; $is_premium = ( ( is_array( $theme->tags ) && in_array( 'premium', $theme->tags ) ) ? 1 : 0 ); // $page_class = ceil( ( $key + 1 ) / $config['item_count'] ); //prepare theme block $html[] = prepare_theme_block($theme, $key); endforeach; }else{ $isWPApiDown = true; } // load error section if WPAPI is having error if ( $isWPApiDown ) { load_template( __DIR__ . '/wpapi-themes-error.php' ); } else { ?>

:

' . $tab2 . '
'; echo '
' . $tab1 . '
'; ?>