diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/forms/videolist/browsetube.php | 251 | ||||
-rw-r--r-- | views/default/forms/videolist/labels/googlevideos.php | 27 | ||||
-rw-r--r-- | views/default/forms/videolist/labels/metacafe.php | 27 | ||||
-rw-r--r-- | views/default/forms/videolist/labels/vimeo.php | 27 | ||||
-rw-r--r-- | views/default/forms/videolist/labels/youtube.php | 27 | ||||
-rw-r--r-- | views/default/river/object/videolist/annotate.php | 11 | ||||
-rw-r--r-- | views/default/river/object/videolist/create.php | 32 | ||||
-rw-r--r-- | views/default/staticvideo/index.php | 53 | ||||
-rw-r--r-- | views/default/videolist/group_video_header.php | 22 | ||||
-rw-r--r-- | views/default/videolist/icon.php | 36 |
10 files changed, 0 insertions, 513 deletions
diff --git a/views/default/forms/videolist/browsetube.php b/views/default/forms/videolist/browsetube.php deleted file mode 100644 index bbe2b8935..000000000 --- a/views/default/forms/videolist/browsetube.php +++ /dev/null @@ -1,251 +0,0 @@ -<?php - -/** - * Elgg Video Plugin - * This plugin allows users to create a library of youtube/vimeo/metacafe videos - * @file - load the browse view - * @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 - */ - -$getcontainer_guid = get_input("container"); -$container_guid = explode(":", $getcontainer_guid); -if($container_guid[0] == "group"){ - $container = $container_guid[1]; -} else{ - $container = $getcontainer_guid; -} -$error = array( - 'no-search' => 1 - ); -$error_msg = array( - 'no-search' => "Please enter a valid search term" - ); -$browseCat = get_input('q'); -if(empty($browseCat) || !isset($browseCat)) { - $browseCat = "youtube"; -} - -$confirm_action = get_input('video_action'); - -if(isset($confirm_action) && ($confirm_action == 'search_video')) { - if(isset($title_search) && ($title_search != '')) { - $error['no-search'] = 0; - } else { - $error['no-search'] = 1; - } -} - -//Load youtube menu -$body .= "<div class='elgg_horizontal_tabbed_nav margin_top'>"; -$body .= "<ul id='videonav'>"; -$body .= "<li class='selected' id='YT'>"; -$body .= "<a href=\"".$vars['url']."videolist/browse/".$getcontainer_guid."?q=youtube\">YouTube</a>"; -$body .= "</li>"; -$body .= "<li id='MC'>"; -$body .= "<a href=\"".$vars['url']."videolist/browse/".$getcontainer_guid."?q=metacafe\">Metacafe</a>"; -$body .= "</li>"; -$body .= "<li id='VM'>"; -$body .= "<a href=\"".$vars['url']."videolist/browse/".$getcontainer_guid."?q=vimeo\">Vimeo</a>"; -$body .= "</li>"; -$body .= "</ul>"; -$body .= "</div>"; - -$body .= '<form action="javascript:sendSearchRequest(1);" method="get" id="browse_video_form">'; -$body .= elgg_view('input/hidden',array('internalname'=>'video_action', 'value'=>'search_video')); -$body .= elgg_view('input/hidden',array('internalname'=>'guid', 'value'=>$vars['guid'])); - -switch($browseCat) { - case "youtube" : - $body .= elgg_view('forms/labels/youtube'); - break; - case "metacafe" : - $body .= elgg_view('forms/labels/metacafe'); - break; - case "vimeo" : - $body .= elgg_view('forms/labels/vimeo'); - break; - case "googlevideos" : - $body .= elgg_view('forms/labels/googlevideos'); - break; - default : - $body .= elgg_view('forms/labels/youtube'); - break; -} -$body .= elgg_view('input/hidden',array('internalname'=>'page', 'value'=>$browseCat)); -$body .= '</form>'; - -$body .= '<div id="loading_search_results"></div>'; -$body .= '<div id="responseSearch" align="center"></div>'; - -print $body; - - -?> - -<script type="text/javascript"> -var page = "<?php echo $browseCat;?>"; -var container = "<?php echo $container;?>"; -$('#videonav li').removeClass(); -switch(page) { -case "youtube" : $('#YT').removeClass().addClass('selected'); - break; -case "metacafe" : $('#MC').removeClass().addClass('selected'); - break; -case "vimeo" : $('#VM').removeClass().addClass('selected'); - break; -/* -case "googlevideos" : $('#GV').removeClass().addClass('active'); - break; -*/ -default : $('#YT').removeClass().addClass('selected'); - break; -} - -function sendSearchRequest(p){ -var queryFeed = $("#title_search").val(); -if(trim(queryFeed) != '') { - $("#loading_search_results").html("<div class='ajax_loader'></div>"); - var elggTS = "<?php echo time(); ?>"; - var elggToken = "<?php echo generate_action_token(time()); ?>"; - $.ajax({ - type: "GET", - url: "<?php echo $vars['url']; ?>"+"action/videolist/tubesearch", - data: "bustcache="+new Date().getTime()+"&__elgg_ts="+elggTS+"&__elgg_token="+elggToken+"&page="+page+"&q="+queryFeed+"&start_index="+p+"&container="+container, - success: function(html){ - $("#loading_search_results").html(""); - $("#responseSearch").html(''); - $("#responseSearch").html(html); - } - }); -} -else{} -} - -function showV_idFeed(param, param2){ -var arg = param; -var embed_video = "<div class='close_video'><a href='javascript:void(0);' onclick='javascript:closeit("+param2+");'>close</a></div><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' width='475' height='350'>"+ - "<param name='movie' value='"+arg+"&autoplay=1'>"+ - "<param name='quality' value='high'>"+ - "<param name='bgcolor' value='#000000'>"+ - "<!--[if !IE]> <-->"+ - "<object data='"+arg+"&autoplay=1' width='475' height='350' autoplay=1 type='application/x-shockwave-flash'>"+ - "<param name='quality' value='high'>"+ - "<param name='bgcolor' value='#000000'>"+ - "<param name='pluginurl' value='http://www.adobe.com/go/getflashplayer'>"+ - "FAIL (the browser should render some flash content, not this)."+ - "</object>"+ - "<!--> <![endif]-->"+ - "</object>"; -disableScreen(embed_video, param2); -} - -function showV_idFeedMetacafe(param, param2){ - var argArray = param.split("/"); - var arg = argArray[0]+"/"+argArray[1]+".swf"; - var embed_video = "<div class='close_video'><a href='javascript:void(0);' onclick='javascript:closeit("+param2+");'>close</a></div><object width=\"475\" height=\"350\"><param name=\"allowfullscreen\" value=\"true\" /><param name=\"allowscriptaccess\" value=\"always\" /><param name=\"Metacafe_"+argArray[0]+"\" value=\"http://www.metacafe.com/fplayer/"+arg+"&autoplay=1\" /><embed src=\"http://www.metacafe.com/fplayer/"+arg+"&autoplay=1\" type=\"application/x-shockwave-flash\" name=\"Metacafe_"+argArray[0]+"\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"475\" height=\"350\"></embed></object>"; - - disableScreen(embed_video, param2); -} - -function showV_idFeedVimeo(param, param2){ - var arg = param; - var embed_video = "<div class='close_video'><a href='javascript:void(0);' onclick='javascript:closeit("+param2+");'>close</a></div><object width=\"475\" height=\"350\"><param name=\"allowfullscreen\" value=\"true\" /><param name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://vimeo.com/moogaloop.swf?clip_id="+arg+"&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1\" /><embed src=\"http://vimeo.com/moogaloop.swf?clip_id="+arg+"&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"475\" height=\"350\"></embed></object>"; - disableScreen(embed_video, param2); -} - - -function getPageScroll() { - var xScroll, yScroll; - if (self.pageYOffset) { - yScroll = self.pageYOffset; - xScroll = self.pageXOffset; - } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict - yScroll = document.documentElement.scrollTop; - xScroll = document.documentElement.scrollLeft; - } else if (document.body) {// all other Explorers - yScroll = document.body.scrollTop; - xScroll = document.body.scrollLeft; - } - return new Array(xScroll,yScroll) -} - -function getPageHeight() { - var windowHeight - if (self.innerHeight) { // all except Explorer - windowHeight = self.innerHeight; - } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode - windowHeight = document.documentElement.clientHeight; - } else if (document.body) { // other Explorers - windowHeight = document.body.clientHeight; - } - return windowHeight -} - -function getPageWidth() { - var windowWidth; - if( typeof( window.innerWidth ) == 'number' ) { - windowWidth = window.innerWidth; //Non-IE - } else if( document.documentElement && ( document.documentElement.clientWidth ) ) { - windowWidth = document.documentElement.clientWidth; //IE 6+ in 'standards compliant mode' - } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { - windowWidth = document.body.clientWidth; //IE 4 compatible - } - return windowWidth -} - -function disableScreen(embed_video, param2) { - var getContainer = "#vidContainer"+param2; - $('body').append("<div id='page_overlay'/>"); - $('#page_overlay').css({ - backgroundColor: "#000000", - opacity: "0.7" - }).fadeIn(); - - $(getContainer).css({ - top: getPageScroll()[1] + (getPageHeight() / 10), - left: ((getPageWidth() / 2) - (400)), - height: "0px" - }).animate( {height:"390px"}, 600 ); - - document.getElementById("vidContainer"+param2).innerHTML = embed_video; -} - -function trim(stringToTrim){ - return ltrim(rtrim(stringToTrim)); -} - -function ltrim(stringToTrim) { - return stringToTrim.replace(/^\s+/,""); -} - -function rtrim(stringToTrim) { - return stringToTrim.replace(/\s+$/,""); -} - -function closeit(param){ - document.getElementById("vidContainer"+param).innerHTML = ""; - document.getElementById("vidContainer"+param).style.display = "none"; - $('#page_overlay').remove(); -} - -function InsertVideoUrl(param, param2){ - var actionAction = "add_video"; - var access_id = 2; - var elggTS = "<?php echo time(); ?>"; - var elggToken = "<?php echo generate_action_token(time()); ?>"; - $.ajax({ - type: "GET", - url: "<?php echo $vars['url']; ?>"+"action/videolist/add", - data: "bustcache="+new Date().getTime()+"&__elgg_ts="+elggTS+"&__elgg_token="+elggToken+"&video_action="+actionAction+"&title_videourl="+param+"&videolisttags="+param2+"&access_id="+access_id, - success: function(html){ - $("#loading_search_results").html(""); - $("#responseSearch").html(''); - $("#responseSearch").html(html); - } - }); - -} -</script> diff --git a/views/default/forms/videolist/labels/googlevideos.php b/views/default/forms/videolist/labels/googlevideos.php deleted file mode 100644 index 9ce2d607c..000000000 --- a/views/default/forms/videolist/labels/googlevideos.php +++ /dev/null @@ -1,27 +0,0 @@ -<?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 class="margin_none"><label>'.elgg_echo("videolist:title_search_tube").'</label></p>'; -$body .= "<div class='search_videos clearfloat'>"; -$body .= "<div style='float:left;'>"; -$body .= "<a href=\"http://video.google.com\"><img src='".$vars['url']."mod/videolist/graphics/logo_videos.png' height='30'/></a>"; -$body .= "</div>"; -$body .= "<div style='float:left;'>"; -$body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/>"; -if($error['no-search'] == 0) { - $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>'; -} -$body .= "</div>"; -$body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos:vimeo'))); -$body .= "</div>"; -$body .= '<div id="searchcontrol">Loading...</div>'; -print $body;
\ No newline at end of file diff --git a/views/default/forms/videolist/labels/metacafe.php b/views/default/forms/videolist/labels/metacafe.php deleted file mode 100644 index 0642153f4..000000000 --- a/views/default/forms/videolist/labels/metacafe.php +++ /dev/null @@ -1,27 +0,0 @@ -<?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 class="margin_none"><label>'.elgg_echo("videolist:title_search_tube").'</label></p>'; -$body .= "<div class='search_videos clearfloat'>"; -$body .= "<div style='float:left;'>"; -$body .= "<a href=\"http://www.metacafe.com\"><img src='".$vars['url']."mod/videolist/graphics/metacafe.jpg' height='30'/></a>"; -$body .= "</div>"; -$body .= "<div style='float:left;'>"; -$body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/>"; -if($error['no-search'] == 0) { - $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>'; -} -$body .= "</div>"; -$body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos:metacafe'))); -$body .= "</div>"; - -print $body;
\ No newline at end of file diff --git a/views/default/forms/videolist/labels/vimeo.php b/views/default/forms/videolist/labels/vimeo.php deleted file mode 100644 index 24a49a1ee..000000000 --- a/views/default/forms/videolist/labels/vimeo.php +++ /dev/null @@ -1,27 +0,0 @@ -<?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 class="margin_none"><label>'.elgg_echo("videolist:title_search_tube").'</label></p>'; -$body .= "<div class='search_videos clearfloat'>"; -$body .= "<div style='float:left;'>"; -$body .= "<a href=\"http://www.vimeo.com\"><img src='".$vars['url']."mod/videolist/graphics/vimeo_logo.gif' height='30'/></a>"; -$body .= "</div>"; -$body .= "<div style='float:left;'>"; -$body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/>"; -if ($error['no-search'] == 0) { - $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>'; -} -$body .= "</div>"; -$body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos:vimeo'))); -$body .= "</div>"; - -print $body;
\ No newline at end of file diff --git a/views/default/forms/videolist/labels/youtube.php b/views/default/forms/videolist/labels/youtube.php deleted file mode 100644 index 4c824f6f3..000000000 --- a/views/default/forms/videolist/labels/youtube.php +++ /dev/null @@ -1,27 +0,0 @@ -<?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 class="margin_none"><label>'.elgg_echo("videolist:title_search_tube").'</label></p>'; -$body .= "<div class='search_videos clearfloat'>"; -$body .= "<div style='float:left;'>"; -$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;'>"; -$body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/>"; -if($error['no-search'] == 0) { - $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>'; -} -$body .= "</div>"; -$body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos'))); -$body .= "</div>"; - -print $body;
\ No newline at end of file diff --git a/views/default/river/object/videolist/annotate.php b/views/default/river/object/videolist/annotate.php deleted file mode 100644 index 50a4a8397..000000000 --- a/views/default/river/object/videolist/annotate.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php - -$statement = $vars['statement']; -$performed_by = $statement->getSubject(); -$object = $statement->getObject(); - -$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; -$string = sprintf(elgg_echo("videolist:river:annotate"),$url) . " "; -$string .= "<a href=\"" . $object->getURL() . "\">" . elgg_echo("videolist:river:item") . "</a>"; - -echo $string; diff --git a/views/default/river/object/videolist/create.php b/views/default/river/object/videolist/create.php deleted file mode 100644 index 4206d0083..000000000 --- a/views/default/river/object/videolist/create.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - -$performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject(); -$object = get_entity($vars['item']->object_guid); -$thumbnail = $object->thumbnail; -$is_group = get_entity($object->container_guid); - -$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; -$title = $object->title; - -if(!$title) { - $title = "untitled"; -} - -$string = sprintf(elgg_echo("videolist:river:created"),$url) . " "; -$string .= elgg_echo("videolist:river:item") . " titled <a href=\"" . $object->getURL() . "\">" . $title . "</a>"; -//if the video was added to a group, show that unless displayed on the group profile -if(($is_group instanceof ElggGroup) && (get_context() != 'groups')){ - $string .= " " . elgg_echo('videolist:ingroup') . " " . $is_group->name; -} -$string .= "<span class='entity_subtext'>" . friendly_time($object->time_created); -if (isloggedin()){ - $string .= "<a class='river_comment_form_button link'>Comment</a>"; - $string .= elgg_view('likes/forms/link', array('entity' => $object)); -} -$string .= "</span>"; - -$string .= "<div class=\"river_content_display\">"; -$string .= "<a href=\"" . $object->getURL() . "\"><img src='".$thumbnail."' width='120' class='tubesearch'/></a>"; -$string .= "</div>"; - -echo $string;
\ No newline at end of file diff --git a/views/default/staticvideo/index.php b/views/default/staticvideo/index.php deleted file mode 100644 index 8d265fd50..000000000 --- a/views/default/staticvideo/index.php +++ /dev/null @@ -1,53 +0,0 @@ -<?php -/** - * Elgg Candidate Profile Plugin - file search.php - * This plugin allows users to create custom candidate profile - * - * @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 - */ - - -$owner = $_SESSION['guid']; -$number = 10; -$owner_videos = elgg_get_entities(array('types' => 'object', 'subtypes' => 'videolist', 'owner_guids' => $_SESSION['guid'])); -//get_entities("object", "videolist", $_SESSION['guid'], $number); -$videodiv = ''; -$width = "390"; -$height = "275"; -?> -<div id="video-list-main"> -<?php -if(!empty($owner_videos)) { - foreach($owner_videos as $node) { - $url = $node->url; - $title = $node->title; - $video_guid = $node->guid; - $video_id = $node->video_id; - $videodiv .= "<div id='videobox'>"; - $videodiv .= "<a href='".$vars['url']."videolist/watch/".$video_guid."'>"; - $videodiv .= "<img src='http://img.youtube.com/vi/".$video_id."/default.jpg' width='150' alt='no video'/>"; - $videodiv .= "</a>"; - - $videodiv .= "</div>"; - $videodiv .= "<div id='videoDescbox'>"; - $videodiv .= "<span class='title'>Title : </span>".$title."<br />"; - $videodiv .= "</div>"; - - $videodiv .= "<div id='videoActionbox'>"; - $videodiv .= elgg_view("output/confirmlink", array( - 'href' => $vars['url'] . "action/videolist/remove?video_id=" . $video_guid, - 'text' => elgg_echo('delete'), - 'confirm' => elgg_echo('deleteconfirm'), - )); - $videodiv .= "</div>"; - } - - print $videodiv; -} else { - echo "<p class='margin_top'>".elgg_echo('videolist:none:found')."</p>"; -} -?> -</div> diff --git a/views/default/videolist/group_video_header.php b/views/default/videolist/group_video_header.php deleted file mode 100644 index e6d13bca3..000000000 --- a/views/default/videolist/group_video_header.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php
-/**
-* Page header view, when visiting a group's videos
-**/
-
-$user = page_owner_entity();
-$user_name = elgg_view_title($user->name . "'s " . elgg_echo('videos'));
-$url = elgg_get_site_url() . "videolist/browse/". $user->username . "/";
-//if the user is a memebr of the group, show find button
-if($user->isMember(get_loggedin_user()))
- $upload_link = "<a href=\"{$url}\" class='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>';
-else
- $upload_link = '';
-?>
-<div id="content_header" class="clearfloat">
- <div class="content_header_title">
- <?php echo $user_name; ?>
- </div>
- <div class="content_header_options">
- <?php echo $upload_link; ?>
- </div>
-</div>
diff --git a/views/default/videolist/icon.php b/views/default/videolist/icon.php deleted file mode 100644 index 36b30e5ca..000000000 --- a/views/default/videolist/icon.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -/** - * Elgg tidypic icon - * Optionally you can specify a size. - * - * @package ElggFile - * @author Curverider Ltd - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - -if($vars['videolist']){ - echo "<img src=\"".elgg_get_site_url()."mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />"; -} else { - $mime = $vars['mimetype']; - if (isset($vars['thumbnail'])) { - $thumbnail = $vars['thumbnail']; - } else { - $thumbnail = false; - } - - $size = $vars['size']; - if ($size != 'large') { - $size = 'small'; - } - - if ($thumbnail && strpos($mime, "image/")!==false) { - echo "<img src=\"{$thumbnail}\" border=\"0\" />"; - } else { - if ($size == 'large') { - echo "<img src=\"{$thumbnail}\" border=\"0\" />"; - } else { - echo "<img src=\"".elgg_get_site_url()."mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />"; - } - } -} |