aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/objects/image_block.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 17:47:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 17:47:36 +0000
commitf205bad992727f287c75f0f4759b5bc4f71c909c (patch)
treedd292387f318b06e4df5f97601a070e6933e7850 /views/default/layout/objects/image_block.php
parent4457f3339d16619b14dc308757a1a826df491e95 (diff)
downloadelgg-f205bad992727f287c75f0f4759b5bc4f71c909c.tar.gz
elgg-f205bad992727f287c75f0f4759b5bc4f71c909c.tar.bz2
completed the media to image block switch
git-svn-id: http://code.elgg.org/elgg/trunk@7683 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/objects/image_block.php')
-rw-r--r--views/default/layout/objects/image_block.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/views/default/layout/objects/image_block.php b/views/default/layout/objects/image_block.php
index 79f8db138..46c58f864 100644
--- a/views/default/layout/objects/image_block.php
+++ b/views/default/layout/objects/image_block.php
@@ -20,10 +20,10 @@
*/
$body = elgg_get_array_value('body', $vars, '');
-$image_block = elgg_get_array_value('image', $vars, '');
-$alt_image_block = elgg_get_array_value('image_alt', $vars, '');
+$image = elgg_get_array_value('image', $vars, '');
+$alt_image = elgg_get_array_value('image_alt', $vars, '');
-$class = 'elgg-media';
+$class = 'elgg-image-block';
$additional_class = elgg_get_array_value('class', $vars, '');
if ($additional_class) {
$class = "$class $additional_class";
@@ -37,16 +37,16 @@ if (isset($vars['id'])) {
$body = "<div class=\"elgg-body\">$body</div>";
-if ($image_block) {
- $image_block = "<div class=\"elgg-image\">$image_block</div>";
+if ($image) {
+ $image = "<div class=\"elgg-image\">$image</div>";
}
-if ($alt_image_block) {
- $alt_image_block = "<div class=\"elgg-image elgg-alt\">$alt_image_block</div>";
+if ($alt_image) {
+ $alt_image = "<div class=\"elgg-image elgg-alt\">$alt_image</div>";
}
echo <<<HTML
<div class="$class clearfix" $id>
- $image_block$alt_image_block$body
+ $image$alt_image$body
</div>
HTML;