// Set link and header variables switch ($type) { case 'stylekits': $excerpt = __('Style Kits', 'layerswp'); $site_key = 'cc'; break; case 'extensions': $excerpt = __('Extensions', 'layerswp'); $site_key = 'cc'; break; default: $excerpt = __('Themes', 'layerswp'); $site_key = 'tf'; } // Get product lists $products = $api->get_product_list($marketplace, $type); $fallback_url = 'http://bit.ly/layers-' . $type; wp_enqueue_script('accordion'); $all_authors = array(); $all_tags = array(); $all_categories = array(); ?> <section id="layers-marketplace" class="l_admin-area-wrapper"> <?php $this->marketplace_header('Layers Add Ons', '', $marketplace); ?> <div class="l_admin-well l_admin-content"> <div class="l_admin-browser l_admin-row ">