aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/objects/image_block.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-18 18:37:32 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-18 18:37:32 +0000
commitdd09373e0cefa8d33d0e9faa741593802d53c2a7 (patch)
treeebf986bfabd17bfd5adb3b560e762b83f0a8b825 /views/default/layout/objects/image_block.php
parent067c53f2575b96573b3c6966747bb0426669ae02 (diff)
downloadelgg-dd09373e0cefa8d33d0e9faa741593802d53c2a7.tar.gz
elgg-dd09373e0cefa8d33d0e9faa741593802d53c2a7.tar.bz2
Refs #2950: layout/objects => page/components
git-svn-id: http://code.elgg.org/elgg/trunk@8288 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/objects/image_block.php')
-rw-r--r--views/default/layout/objects/image_block.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/views/default/layout/objects/image_block.php b/views/default/layout/objects/image_block.php
deleted file mode 100644
index a7f480aef..000000000
--- a/views/default/layout/objects/image_block.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Elgg image block pattern
- *
- * Common pattern where there is an image, icon, media object to the left
- * and a descriptive block of text to the right.
- *
- * ---------------------------------------------------------------
- * | | | alt |
- * | image | body | image |
- * | block | block | block |
- * | | | (optional)|
- * ---------------------------------------------------------------
- *
- * @uses $vars['body'] HTML content of the body block
- * @uses $vars['image'] HTML content of the image block
- * @uses $vars['image_alt'] HTML content of the alternate image block
- * @uses $vars['class'] Optional additional class for media element
- * @uses $vars['id'] Optional id for the media element
- */
-
-$body = elgg_extract('body', $vars, '');
-$image = elgg_extract('image', $vars, '');
-$alt_image = elgg_extract('image_alt', $vars, '');
-
-$class = 'elgg-image-block';
-$additional_class = elgg_extract('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 ($image) {
- $image = "<div class=\"elgg-image\">$image</div>";
-}
-
-if ($alt_image) {
- $alt_image = "<div class=\"elgg-image-alt\">$alt_image</div>";
-}
-
-echo <<<HTML
-<div class="$class clearfix" $id>
- $image$alt_image$body
-</div>
-HTML;