/** * * The video method renders a video upload button that allows the user to select an video from the media uploader and insert it * @param array $element the array holds data like type, value, id, class, description which are necessary to render the whole option-section * @return string $output the string returned contains the html code generated within the method */ static function video($element) { if (empty($element['data'])) { $element['data'] = array('target' => $element['id'], 'title' => $element['title'], 'type' => $element['type'], 'button' => $element['button'], 'class' => 'media-frame avia-blank-insert ' . $element['container_class'], 'state' => 'avia_insert_video', 'frame' => 'select', 'fetch' => 'url', 'save_to' => 'input'); } return AviaHtmlHelper::image($element); }