From a8e625f47a8b197f6cb89b67f37ef5d0a756619d Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 3 Nov 2011 20:37:47 +0100 Subject: Removed all $CONFIG and pg/ appearitions. --- views/default/forms/browsetube.php | 6 +++--- views/default/object/videolist.php | 10 ++++------ views/default/staticvideo/index.php | 2 +- views/default/videolist/group_video_header.php | 4 ++-- views/default/videolist/groupprofile_videolist.php | 10 +++++----- views/default/videolist/icon.php | 8 +++----- 6 files changed, 18 insertions(+), 22 deletions(-) (limited to 'views/default') diff --git a/views/default/forms/browsetube.php b/views/default/forms/browsetube.php index 82201a81c..bbe2b8935 100644 --- a/views/default/forms/browsetube.php +++ b/views/default/forms/browsetube.php @@ -42,13 +42,13 @@ if(isset($confirm_action) && ($confirm_action == 'search_video')) { $body .= "
"; $body .= ""; $body .= "
"; diff --git a/views/default/object/videolist.php b/views/default/object/videolist.php index 82336ec97..d67d35b23 100644 --- a/views/default/object/videolist.php +++ b/views/default/object/videolist.php @@ -6,8 +6,6 @@ /* @copyright Prateek.Choudhary /*****************************************************************************************/ -global $CONFIG; - $video_file = $vars['entity']; if(!empty($video_file)) { @@ -22,7 +20,7 @@ if(!empty($video_file)) { $mime = "image/html"; $thumbnail = $videothumbnail; - $watch_URL = $vars['url']."pg/videolist/watch/".$video_guid; + $watch_URL = $vars['url']."videolist/watch/".$video_guid; $object_acl = get_readable_access_level($video_file->access_id); // metadata block, - access level, edit, delete, + options view extender @@ -40,17 +38,17 @@ if(!empty($video_file)) { if(get_input('show_viewtype') == "all") { $info .= '

'.$title.'

'; - $info .= "

username}\">{$owner->name} {$friendlytime}"; + $info .= "

username}\">{$owner->name} {$friendlytime}"; $info .= "

"; $icon = "" . elgg_view("videolist/icon", array("mimetype" => $mime, 'thumbnail' => $thumbnail, 'video_guid' => $video_guid, 'size' => 'small')) . ""; echo "
".elgg_view_listing($icon, $info)."
"; } else { $info .= '

'.$title.'

'; - $info .= "

username}\">{$owner->name} {$friendlytime}"; + $info .= "

username}\">{$owner->name} {$friendlytime}"; $info .= "

"; $icon = "" . elgg_view("videolist/icon", array("mimetype" => $mime, 'thumbnail' => $thumbnail, 'video_guid' => $video_guid, 'size' => 'small')) . ""; echo "
".elgg_view_listing($icon, $info)."
"; } } else { echo "

".elgg_echo('videolist:none:found')."

"; -} \ No newline at end of file +} diff --git a/views/default/staticvideo/index.php b/views/default/staticvideo/index.php index e5f6d8fad..8d265fd50 100644 --- a/views/default/staticvideo/index.php +++ b/views/default/staticvideo/index.php @@ -27,7 +27,7 @@ if(!empty($owner_videos)) { $video_guid = $node->guid; $video_id = $node->video_id; $videodiv .= "
"; - $videodiv .= ""; + $videodiv .= ""; $videodiv .= "no video"; $videodiv .= ""; diff --git a/views/default/videolist/group_video_header.php b/views/default/videolist/group_video_header.php index dd12d1d96..e6d13bca3 100644 --- a/views/default/videolist/group_video_header.php +++ b/views/default/videolist/group_video_header.php @@ -5,7 +5,7 @@ $user = page_owner_entity(); $user_name = elgg_view_title($user->name . "'s " . elgg_echo('videos')); -$url = $CONFIG->wwwroot . "pg/videolist/browse/". $user->username . "/"; +$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 = "" . elgg_echo('videolist:browsemenu') . ''; @@ -19,4 +19,4 @@ else
-
\ No newline at end of file + diff --git a/views/default/videolist/groupprofile_videolist.php b/views/default/videolist/groupprofile_videolist.php index badfa13a6..33a22ab68 100644 --- a/views/default/videolist/groupprofile_videolist.php +++ b/views/default/videolist/groupprofile_videolist.php @@ -11,7 +11,7 @@ ?>
-username; ?>"> +username; ?>">

getOwner()); $numcomments = elgg_count_comments($f); echo ""; } } else { - $upload_video = $vars['url'] . "pg/videolist/browse/" . page_owner_entity()->username; + $upload_video = $vars['url'] . "videolist/browse/" . page_owner_entity()->username; echo "

" . elgg_echo("videolist:add") . "

"; } echo "
"; -?> \ No newline at end of file +?> diff --git a/views/default/videolist/icon.php b/views/default/videolist/icon.php index 46c186db1..36b30e5ca 100644 --- a/views/default/videolist/icon.php +++ b/views/default/videolist/icon.php @@ -9,10 +9,8 @@ * @link http://elgg.com/ */ -global $CONFIG; - if($vars['videolist']){ - echo "wwwroot}mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />"; + echo ""; } else { $mime = $vars['mimetype']; if (isset($vars['thumbnail'])) { @@ -32,7 +30,7 @@ if($vars['videolist']){ if ($size == 'large') { echo ""; } else { - echo "wwwroot}mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />"; + echo ""; } } -} \ No newline at end of file +} -- cgit v1.2.3