private function toIcon($clickable, $data) { $icon = OpenWeatherMap::iconPng($data->weather[0]->icon); $B = new Button("", "./ubiquitous/OWM/icons48/" . $icon . ".png", "icon"); if ($clickable) { $B->popup("", "Vorhersage", "mOpenWeatherMap", "-1", "all"); } #".($i == 0 ? "Heute" : "Morgen")." return "<div style=\"display:inline-block;vertical-align:top;width:49%;margin-top:20px;\"><small style=\"color:grey;\">" . Datum::getGerWeekArray(date("w", $data->dt)) . ", " . date("d", $data->dt) . ".</small><br>\n\t\t\t<b style=\"font-size:15px;font-weight:bold;color:#555;\">" . round($data->temp->min) . " - " . round($data->temp->max) . " °C<br>" . $B . "\n\t\t\t</b>\n\t\t\t</div>"; }