private function _content_public318search_search($qs) { $qs = trim($qs); $url = _expo_public318_api_url($qs); $json = WG::fetch_url($url, false); $ret = Json::decode($json); $datas = $ret['results']; if (count($datas) == 0) { $r = false; } else { $options = ''; foreach ($datas as $data) { $target = $data['identifier']; $options .= WG::xmlTag('option', '<a href="aa">' . $target . '</a>', ['data-img-src' => $data['thumb'], 'value' => $target]); } $r = WG::xmlTag('select', $options, ['multiple' => 'multiple', 'class' => 'image-picker show-labels', 'id' => 'theitems']); } return $r; }