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 /views/default/layout/objects/media.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 'views/default/layout/objects/media.php')
-rw-r--r-- | views/default/layout/objects/media.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/views/default/layout/objects/media.php b/views/default/layout/objects/media.php deleted file mode 100644 index 2b015bd05..000000000 --- a/views/default/layout/objects/media.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php -/** - * Elgg media element - * - * Common pattern where there is an image, icon, media object to the left - * and a descriptive block of text to the right. - * - * --------------------------------------------------------------- - * | | | alt | - * | picture | body | picture | - * | block | block | block | - * | | | (optional)| - * --------------------------------------------------------------- - * - * @uses $vars['body'] HTML content of the body block - * @uses $vars['pict'] HTML content of the picture block - * @uses $vars['pict_alt'] HTML content of the alternate picture block - * @uses $vars['class'] Optional additional class for media element - * @uses $vars['id'] Optional id for the media element - */ - -$body = elgg_get_array_value('body', $vars, ''); -$pict_block = elgg_get_array_value('pict', $vars, ''); -$alt_pict_block = elgg_get_array_value('pict_alt', $vars, ''); - -$class = 'elgg-media'; -$additional_class = elgg_get_array_value('class', $vars, ''); -if ($additional_class) { - $class = "$class $additional_class"; -} - -$id = ''; -if (isset($vars['id'])) { - $id = "id=\"{$vars['id']}\""; -} - - -$body = "<div class=\"elgg-body\">$body</div>"; - -if ($pict_block) { - $pict_block = "<div class=\"elgg-pict\">$pict_block</div>"; -} - -if ($alt_pict_block) { - $alt_pict_block = "<div class=\"elgg-pict-alt\">$alt_pict_block</div>"; -} - -echo <<<HTML -<div class="$class clearfix" $id> - $pict_block$alt_pict_block$body -</div> -HTML; |