aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/api/engine-cyclic/components/init.php
blob: d17792ef7c268d722ba4e89a867470053cb9d372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
rlgps("Loading widgets");
$json = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/widgets.json"));
$widgets = $json->list;
foreach ($widgets as $widget): ?>
<?php $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/widgets/" . $widget . "/feature.json")); ?>
<?php

if (isset($data->class) && is_string($data->class)) {
    require $_SERVER['DOCUMENT_ROOT'] . "/widgets/" . $widget . "/source.php";
}

?>
<?php endforeach ?>