__( 'Popular', 'easy-digital-downloads' ), 'new' => __( 'New', 'easy-digital-downloads' ), 'all' => __( 'All', 'easy-digital-downloads' ) ) ); // Active tab. $active_tab = isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $add_ons_tabs ) ? sanitize_key( $_GET['tab'] ) : 'popular'; // Empty tabs array. $tabs = array(); // Loop through add-ons and make array of tabs. foreach ( $add_ons_tabs as $tab_id => $tab_name ) { // "All" if ( 'all' === $tab_id ) { $tab_url = edd_link_helper( 'https://easydigitaldownloads.com/downloads/', array( 'utm_medium' => 'addons-page', 'utm_content' => 'all-extensions', ) ); // All other tabs besides "All". } else { $tab_url = add_query_arg( array( 'settings-updated' => false, 'tab' => sanitize_key( $tab_id ), ) ); } // Active? $active = ( $active_tab === $tab_id ) ? 'current' : ''; // Count. $count = ( 'all' === $tab_id ) ? '150+' : '29'; // The link. $tab = '
add functionality to your Easy Digital Downloads powered store.', 'easy-digital-downloads' ); ?>
' . __( 'These extensions could not be retrieved from the server. Please try again later.', 'easy-digital-downloads' ) . '