diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:56:18 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:56:18 -0300 |
commit | 059badecbc0be895c6165430e5096a9ab653027e (patch) | |
tree | 6fd90dce93b43371366c4792622af5f73cb55075 /views/default/new.php | |
download | elgg-059badecbc0be895c6165430e5096a9ab653027e.tar.gz elgg-059badecbc0be895c6165430e5096a9ab653027e.tar.bz2 |
Squashed 'mod/livestream/' content from commit 89d1f38
git-subtree-dir: mod/livestream
git-subtree-split: 89d1f3877f241f34e3ed3baad3c9ee9a4fee79e7
Diffstat (limited to 'views/default/new.php')
-rwxr-xr-x | views/default/new.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/views/default/new.php b/views/default/new.php new file mode 100755 index 000000000..e318f70fd --- /dev/null +++ b/views/default/new.php @@ -0,0 +1,27 @@ +<?php + /** + * Elgg livestream plugin + * + * @package LiveStream + * @todo JS validation + */ + + $form_body = ""; + $form_body.= elgg_echo("livestream:title")."<br />".elgg_view('input/text', array('internalname' => 'title', 'value' => ''))."<br />"; + $form_body.= elgg_echo("livestream:type")."<br />".elgg_view('input/radio', array('internalname' => 'mediatype', 'value' => '', 'options' => livestream_gettypes()))."<br />"; + $form_body.= elgg_echo("livestream:src").elgg_view('input/text', array('internalname' => 'src', 'value' => ''))."<br />"; + $form_body.= elgg_echo("livestream:width").elgg_view('input/text', array('internalname' => 'width', 'value' => '80'))."<br />"; + $form_body.= elgg_echo("livestream:height").elgg_view('input/text', array('internalname' => 'height', 'value' => '50'))."<br />"; + $form_body.= elgg_view( + 'input/hidden', + array( + 'internalname' => 'container_guid', + 'options_values' => $options, + 'value' => $vars['entity']->container_id?(int)$vars['entity']->container_id : page_owner() + ) + ); + $form_body.= "<input type='submit' value='".elgg_echo("livestream:save")."'>"; + echo elgg_view('input/form', array('body' => $form_body, 'action' => $vars['url']."action/livestream/new")); + + //$object = new ElggObject(); +?> |