/** * Returns the HTML for the input * @return string HTML-Code for the input */ protected function getInput() { $mediaTypes = ModInstaGalleryMediaType::getMediaTypes(); $htmlCode = '<select id="' . $this->id . '" name="' . $this->name . '" class="inputbox">'; foreach ($mediaTypes as $key => $value) { $selected = $this->value == $key ? ' selected="selected"' : ''; $htmlCode .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>'; } $htmlCode .= '</select>'; return $htmlCode; }