diff options
author | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-23 17:30:14 +0000 |
---|---|---|
committer | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-23 17:30:14 +0000 |
commit | a161b38e65fa698133402f4fb23548242f494018 (patch) | |
tree | e75300111195f40f14c2389abddac65db9068da8 /views/default/forms/labels | |
download | elgg-a161b38e65fa698133402f4fb23548242f494018.tar.gz elgg-a161b38e65fa698133402f4fb23548242f494018.tar.bz2 |
This videolist plugin shows real promise so we shall work on it for v1.8 then release it back to the community.
Diffstat (limited to 'views/default/forms/labels')
-rw-r--r-- | views/default/forms/labels/googlevideos.php | 34 | ||||
-rw-r--r-- | views/default/forms/labels/metacafe.php | 34 | ||||
-rw-r--r-- | views/default/forms/labels/vimeo.php | 34 | ||||
-rw-r--r-- | views/default/forms/labels/youtube.php | 34 |
4 files changed, 136 insertions, 0 deletions
diff --git a/views/default/forms/labels/googlevideos.php b/views/default/forms/labels/googlevideos.php new file mode 100644 index 000000000..de263c1c9 --- /dev/null +++ b/views/default/forms/labels/googlevideos.php @@ -0,0 +1,34 @@ +<?php + + /**
+ * Elgg User Profile Video Plugin
+ * This plugin allows users to browse youtube videos
+ *
+ * @package ElggProfile
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Prateek Choudhary <synapticfield@gmail.com>
+ * @copyright Prateek Choudhary
+ */ + + $body = '<p><label>'.elgg_echo("videolist:title_search_tube").'<br />'; + //$body .= elgg_view("input/text",array('internalname' => 'title_search','value' => '', 'id' => 'title_search')); + $body .= "<div style='width:100%;'>"; + $body .= "<div style='float:left;width:19%;'>"; + $body .= "<a href=\"http://video.google.com\"><img src='".$vars['url']."mod/videolist/graphics/logo_videos.png' width='120'/></a>"; + $body .= "</div>"; + $body .= "<div style='float:left;width:45%;'>"; + $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> "; + if($error['no-search'] == 0) + { + $body .= '<div class="error">'.$error_msg['no-search'].'</div>'; + } + $body .= "</div>"; + //$body .= "<div>"; + //$body .= '<input type="submit" value="Submit" class="submit_button" name="submit" onclick="sendSearchRequest(1);"/>'; + $body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos:vimeo'))); + //$body .= "</div>"; + $body .= "</div>";
+ $body .= '</label></p>'; + $body .= '<div id="searchcontrol">Loading...</div>'; + print $body; +?> diff --git a/views/default/forms/labels/metacafe.php b/views/default/forms/labels/metacafe.php new file mode 100644 index 000000000..79e87d1be --- /dev/null +++ b/views/default/forms/labels/metacafe.php @@ -0,0 +1,34 @@ +<?php + + /**
+ * Elgg Video Plugin
+ * This plugin allows users to create a library of youtube/vimeo/metacafe videos
+ * @file - load metacafe label
+ * @package Elgg
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Prateek Choudhary <synapticfield@gmail.com>
+ * @copyright Prateek Choudhary
+ */ + + $body = '<p><label>'.elgg_echo("videolist:title_search_tube").'<br />'; + //$body .= elgg_view("input/text",array('internalname' => 'title_search','value' => '', 'id' => 'title_search')); + $body .= "<div style='width:100%;'>"; + $body .= "<div style='float:left;width:19%;'>"; + $body .= "<a href=\"http://www.metacafe.com\"><img src='".$vars['url']."mod/videolist/graphics/metacafe.jpg' width='120'/></a>"; + $body .= "</div>"; + $body .= "<div style='float:left;width:45%;'>"; + $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> "; + if($error['no-search'] == 0) + { + $body .= '<div class="error">'.$error_msg['no-search'].'</div>'; + } + $body .= "</div>"; + //$body .= "<div>"; + //$body .= '<input type="submit" value="Submit" class="submit_button" name="submit" onclick="sendSearchRequest(1);"/>'; + $body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos:metacafe'))); + //$body .= "</div>"; + $body .= "</div>";
+ $body .= '</label></p>'; + + print $body; +?> diff --git a/views/default/forms/labels/vimeo.php b/views/default/forms/labels/vimeo.php new file mode 100644 index 000000000..e5cf21235 --- /dev/null +++ b/views/default/forms/labels/vimeo.php @@ -0,0 +1,34 @@ +<?php + + /**
+ * Elgg Video Plugin
+ * This plugin allows users to create a library of youtube/vimeo/metacafe videos + * @file - load vimeo label
+ * @package Elgg
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Prateek Choudhary <synapticfield@gmail.com>
+ * @copyright Prateek Choudhary
+ */ + + $body = '<p><label>'.elgg_echo("videolist:title_search_tube").'<br />'; + //$body .= elgg_view("input/text",array('internalname' => 'title_search','value' => '', 'id' => 'title_search')); + $body .= "<div style='width:100%;'>"; + $body .= "<div style='float:left;width:19%;'>"; + $body .= "<a href=\"http://www.vimeo.com\"><img src='".$vars['url']."mod/videolist/graphics/vimeo_logo.gif' width='120'/></a>"; + $body .= "</div>"; + $body .= "<div style='float:left;width:45%;'>"; + $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> "; + if($error['no-search'] == 0) + { + $body .= '<div class="error">'.$error_msg['no-search'].'</div>'; + } + $body .= "</div>"; + //$body .= "<div>"; + //$body .= '<input type="submit" value="Submit" class="submit_button" name="submit" onclick="sendSearchRequest(1);"/>'; + $body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos:vimeo'))); + //$body .= "</div>"; + $body .= "</div>";
+ $body .= '</label></p>'; + + print $body; +?> diff --git a/views/default/forms/labels/youtube.php b/views/default/forms/labels/youtube.php new file mode 100644 index 000000000..40be100ee --- /dev/null +++ b/views/default/forms/labels/youtube.php @@ -0,0 +1,34 @@ +<?php + + /**
+ * Elgg Video Plugin
+ * This plugin allows users to create a library of youtube/vimeo/metacafe videos
+ * @file - load youtube label
+ * @package Elgg
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Prateek Choudhary <synapticfield@gmail.com>
+ * @copyright Prateek Choudhary
+ */ + + $body = '<p><label>'.elgg_echo("videolist:title_search_tube").'<br />'; + //$body .= elgg_view("input/text",array('internalname' => 'title_search','value' => '', 'id' => 'title_search')); + $body .= "<div style='width:100%;'>"; + $body .= "<div style='float:left;width:10%;'>"; + $body .= "<a href=\"http://www.youtube.com\"><img src='".$vars['url']."mod/videolist/graphics/badge3.gif' height='30'/></a>"; + $body .= "</div>"; + $body .= "<div style='float:left;width:45%;'>"; + $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> "; + if($error['no-search'] == 0) + { + $body .= '<div class="error">'.$error_msg['no-search'].'</div>'; + } + $body .= "</div>"; + //$body .= "<div>"; + //$body .= '<input type="submit" value="Submit" class="submit_button" name="submit" onclick="sendSearchRequest(1);"/>'; + $body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos'))); + //$body .= "</div>"; + $body .= "</div>";
+ $body .= '</label></p>'; + + print $body; +?> |