/** * themeple_viewgen::upload() * * @param mixed $element * @return */ function upload($element) { $postId = themeple_media::get_custom_post($element['name']); $output = ''; $output .= '<input type="text" class="semi_input themeple_upload_input" name="' . $element['id'] . '" id="' . $element['id'] . '" value="' . (isset($element['std']) ? $element['std'] : '') . '" />'; $output .= '<a href="#' . $postId . '" title="' . $element['name'] . '" class="mrgleft themeple_btn themeple_btn_active themeple_upload">' . $element['btn_text'] . '</a>'; $output .= '<div class="image_prev">'; $output .= '<img src="' . (isset($element['std']) ? $element['std'] : '') . '" alt="' . $element['name'] . '" />'; $output .= '</div>'; return $output; }