~george-edison55/jsstudio/addons_site

« back to all changes in this revision

Viewing changes to views/addons/index.inc

  • Committer: Nathan Osman
  • Date: 2011-08-22 04:33:05 UTC
  • Revision ID: admin@quickmediasolutions.com-20110822043305-kk083pea9bjjq5ad
Added ability to download addons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
//=======================================================================
20
20
 
21
 
echo $message;
 
21
$addon_html = array();
 
22
foreach($addons as $addon)
 
23
{
 
24
    $links        = "<div class='link_list'><a href='remote:/addons/download/{$addon['id']}'>Install</a></div>";
 
25
    $addon_html[] = "<div class='name'>{$addon['title']}</div><div class='desc'>{$addon['description']}</div>$links";
 
26
}
 
27
 
 
28
echo implode('<hr />', $addon_html);
22
29
 
23
30
?>