public function editor_for($value, $id) { foreach (array('hu' => 'magyarul', 'en' => 'angolul') as $langkey => $lang) { $idT = $id . '[' . $langkey . ']'; echo '<p><label>' . $lang . ':</label><input type="text" id="' . $idT . '" name="' . $idT . '" value="' . Pod::escapeHtml($value[$langkey]) . '" class="required"/></p>'; } }
function editor_for($value, $id) { echo '<input type="text" id="' . $id . '" name="' . $id . '" value="' . Pod::escapeHtml($value) . '" class="required"/>'; }