diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-19 17:38:51 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-19 17:38:51 +0000 |
commit | 4457f3339d16619b14dc308757a1a826df491e95 (patch) | |
tree | 084ef6ac9390574608f96675d6ea8605691f5e5d /engine/lib/views.php | |
parent | 1f1cb260b0cde61056d7da32bc058969aeca5916 (diff) | |
download | elgg-4457f3339d16619b14dc308757a1a826df491e95.tar.gz elgg-4457f3339d16619b14dc308757a1a826df491e95.tar.bz2 |
changed name from media block to image block
git-svn-id: http://code.elgg.org/elgg/trunk@7682 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r-- | engine/lib/views.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php index f314a93af..1f02d29d2 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -1012,24 +1012,24 @@ function elgg_view_latest_comments($owner_guid, $type = 'object', $subtype = '', echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $body)); } /** - * Wrapper function for the media display pattern. + * Wrapper function for the image block display pattern. * * Fixed width media on the side (image, icon, flash, etc.). * Descriptive content filling the rest of the column. * - * This is a shortcut for {@elgg_view layout/objects/media}. + * This is a shortcut for {@elgg_view layout/objects/image_block}. * - * @param string $picture The icon and other information + * @param string $image The icon and other information * @param string $body Description content * @param string $vars Additional parameters for the view * * @return string * @since 1.8.0 */ -function elgg_view_media($picture, $body, $vars = array()) { - $vars['pict'] = $picture; +function elgg_view_image_block($image, $body, $vars = array()) { + $vars['image'] = $image; $vars['body'] = $body; - return elgg_view('layout/objects/media', $vars); + return elgg_view('layout/objects/image_block', $vars); } /** @@ -1039,10 +1039,10 @@ function elgg_view_media($picture, $body, $vars = array()) { * @param string $info Any information that needs to be displayed. * * @return string The HTML (etc) representing the listing - * @deprecated 1.8 use elgg_view_media() + * @deprecated 1.8 use elgg_view_image_block() */ function elgg_view_listing($icon, $info) { - elgg_deprecated_notice('elgg_view_listing deprecated by elgg_view_media', 1.8); + elgg_deprecated_notice('elgg_view_listing deprecated by elgg_view_image_block', 1.8); return elgg_view('layout/objects/media', array('icon' => $icon, 'body' => $info)); } |