getNewestAddonsByGuid($_app,'T',10); $popularThemes = $amo->getPopularAddonsByGuid($_app,'T',10); /* This is a bit of a cheesy hack because of the way the templates are written. * It's looking for the name of the app in $_GET, so here we are...(clouserw)*/ $_GET['app'] = strtolower($amo->getAppNameFromGuid($_app)); } else { $newestThemes = $amo->getNewestAddons($clean['app'],'T',10); $popularThemes = $amo->getPopularAddons($clean['app'],'T',10); } // Assign template variables. $tpl->assign( array( 'newestThemes' => $newestThemes, 'popularThemes' => $popularThemes, 'title' => 'Add-ons', 'currentTab' => $currentTab, 'content' => 'themes.tpl', 'sidebar' => 'inc/category-sidebar.tpl', 'cats' => $amo->getCats('T'), 'type' => 'T') ); ?>