array(), 'installed' => array(), ); foreach ( $products as $product ) { if ( $product->is_installed ) { $all_products['installed'][] = $product; } else { $all_products['for-sale'][] = $product; } } $products = array(); foreach ( $all_products as $type => $products ) { if ( empty( $products ) ) { continue; } $button_label = esc_html__( 'Buy This Add-On', 'tribe-common' ); $button_class = 'button-primary'; if ( 'installed' == $type ) { ?>

' . esc_html__( 'Installed', 'tribe-common' ); } ?>

title ); ?>

description; ?>

requires ) ) { ?>

requires ); ?>