From e79810c63fca3d572aeb800bdc4b3c5de964934f Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 2 Jun 2010 16:50:03 +0000 Subject: Removing unused views and files from embed. git-svn-id: http://code.elgg.org/elgg/trunk@6327 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/embed/views/default/embed/link.php | 2 +- mod/embed/views/default/embed/media.php | 66 -------------- mod/embed/views/default/embed/pagination.php | 132 --------------------------- mod/embed/views/default/embed/simpletype.php | 35 ------- mod/embed/views/default/embed/tabs.php | 22 ----- mod/embed/views/default/embed/upload.php | 86 ----------------- 6 files changed, 1 insertion(+), 342 deletions(-) delete mode 100644 mod/embed/views/default/embed/media.php delete mode 100644 mod/embed/views/default/embed/pagination.php delete mode 100644 mod/embed/views/default/embed/simpletype.php delete mode 100644 mod/embed/views/default/embed/tabs.php delete mode 100644 mod/embed/views/default/embed/upload.php (limited to 'mod/embed/views/default') diff --git a/mod/embed/views/default/embed/link.php b/mod/embed/views/default/embed/link.php index bd500dfaf..8776893ec 100644 --- a/mod/embed/views/default/embed/link.php +++ b/mod/embed/views/default/embed/link.php @@ -3,4 +3,4 @@ * Displays an "Embed media" link in longtext inputs. */ ?> - \ No newline at end of file + diff --git a/mod/embed/views/default/embed/media.php b/mod/embed/views/default/embed/media.php deleted file mode 100644 index 381774618..000000000 --- a/mod/embed/views/default/embed/media.php +++ /dev/null @@ -1,66 +0,0 @@ -

Embed / Upload Media

- 'media', 'internalname' => $vars['internalname'])); -?> -
- $vars['offset'], - 'baseurl' => $vars['url'] . 'pg/embed/media?internalname=' . $vars['internalname'] . "&simpletype=" . $vars['simpletype'], - 'limit' => $vars['limit'], - 'count' => $vars['count'] - )); - - echo elgg_view('embed/simpletype',array( - 'internalname' => $vars['internalname'], - 'simpletypes' => $vars['simpletypes'], - 'simpletype' => $vars['simpletype'], - )); - - $context = get_context(); - $entities = $vars['entities']; - if (is_array($entities) && !empty($entities)) { - - echo "

" . elgg_echo('embed:instructions') . "

"; - - foreach($entities as $entity) { - if ($entity instanceof ElggEntity) { - - $mime = $entity->mimetype; - - $enttype = $entity->getType(); - $entsubtype = $entity->getSubtype(); - - if (elgg_view_exists($enttype . '/' . $entsubtype . '/embed')) { - $content = elgg_view($enttype . '/' . $entsubtype . '/embed', array('entity' => $entity, 'full' => true)); - } else { - $content = elgg_view($enttype . '/default/embed', array('entity' => $entity, 'full' => true)); - } - - $content = str_replace("\n","", $content); - $content = str_replace("\r","", $content); - //$content = htmlentities($content,null,'utf-8'); - $content = htmlentities($content, ENT_COMPAT, "UTF-8"); - - $link = "javascript:elggUpdateContent('{$content}','{$vars['internalname']}');"; - if ($entity instanceof ElggObject) { $title = $entity->title; $mime = $entity->mimetype; } else { $title = $entity->name; $mime = ''; } - - set_context('search'); - - if (elgg_view_exists("{$enttype}/{$entsubtype}/embedlist")) { - $entview = elgg_view("{$enttype}/{$entsubtype}/embedlist",array('entity' => $entity)); - } else { - $entview = elgg_view_entity($entity); - } - $entview = str_replace($entity->getURL(),$link,$entview); - echo $entview; - - set_context($context); - - } - } - } - -?> -
\ No newline at end of file diff --git a/mod/embed/views/default/embed/pagination.php b/mod/embed/views/default/embed/pagination.php deleted file mode 100644 index ded9f21e1..000000000 --- a/mod/embed/views/default/embed/pagination.php +++ /dev/null @@ -1,132 +0,0 @@ - $limit || $offset > 0) && get_context() != 'widget') { - -?> - - - diff --git a/mod/embed/views/default/embed/simpletype.php b/mod/embed/views/default/embed/simpletype.php deleted file mode 100644 index 790284fd8..000000000 --- a/mod/embed/views/default/embed/simpletype.php +++ /dev/null @@ -1,35 +0,0 @@ - - diff --git a/mod/embed/views/default/embed/tabs.php b/mod/embed/views/default/embed/tabs.php deleted file mode 100644 index a83bc9b55..000000000 --- a/mod/embed/views/default/embed/tabs.php +++ /dev/null @@ -1,22 +0,0 @@ - - -
- -
\ No newline at end of file diff --git a/mod/embed/views/default/embed/upload.php b/mod/embed/views/default/embed/upload.php deleted file mode 100644 index 5f249c0c7..000000000 --- a/mod/embed/views/default/embed/upload.php +++ /dev/null @@ -1,86 +0,0 @@ -

Embed / Upload Media

- 'upload', 'internalname'=>get_input('internalname'))); - -if (!elgg_view_exists('file/upload')) { - echo "

" . elgg_echo('embed:file:required') . "

"; -} else { - $action = 'file/upload'; - -?> -
-

-

-

- -

-

-

- -

- -

-

- -

- -

- "; - if (isset($vars['entity'])) - echo "getGUID()}\" />"; - - ?> - " /> -

-
- - - -- cgit v1.2.3