From 4766f36a4d74924f21ff329c4318ce4e069ffa04 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 17:53:05 +0000 Subject: Pulled in the interface changes. git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/embed/views/default/object/default/embed.php | 9 +++++++++ mod/embed/views/default/object/file/embed.php | 17 +++++++++++++++++ mod/embed/views/default/object/file/embedlist.php | 20 ++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 mod/embed/views/default/object/default/embed.php create mode 100644 mod/embed/views/default/object/file/embed.php create mode 100644 mod/embed/views/default/object/file/embedlist.php (limited to 'mod/embed/views/default/object') diff --git a/mod/embed/views/default/object/default/embed.php b/mod/embed/views/default/object/default/embed.php new file mode 100644 index 000000000..c97dbd48a --- /dev/null +++ b/mod/embed/views/default/object/default/embed.php @@ -0,0 +1,9 @@ +getURL() .'">' . $vars['entity']->title . ''; + + } + +?> \ No newline at end of file diff --git a/mod/embed/views/default/object/file/embed.php b/mod/embed/views/default/object/file/embed.php new file mode 100644 index 000000000..01f3904ac --- /dev/null +++ b/mod/embed/views/default/object/file/embed.php @@ -0,0 +1,17 @@ +mimetype; + + if (elgg_view_exists('file/specialcontent/' . $mime)) { + $content = elgg_view('file/specialcontent/' . $mime, $vars); + } else if (elgg_view_exists("file/specialcontent/" . substr($mime,0,strpos($mime,'/')) . "/default")) { + $content = elgg_view("file/specialcontent/" . substr($mime,0,strpos($mime,'/')) . "/default", $vars); + } + + if (empty($content) || substr_count(strtolower($content),' \ No newline at end of file diff --git a/mod/embed/views/default/object/file/embedlist.php b/mod/embed/views/default/object/file/embedlist.php new file mode 100644 index 000000000..71e84f265 --- /dev/null +++ b/mod/embed/views/default/object/file/embedlist.php @@ -0,0 +1,20 @@ +time_created); + + $info = "

getURL()}\">{$file->title}

"; + $info .= "

{$friendlytime}"; + $icon = "getURL()}\">" . elgg_view("file/icon", array("mimetype" => $file->mimetype, 'thumbnail' => $file->thumbnail, 'file_guid' => $file->guid, 'size' => 'small')) . ""; + +?> +

+
+
+ +
+
+ +
+
+
-- cgit v1.2.3