diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-21 21:47:47 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-21 21:47:47 +0000 |
commit | 8a76d53f35eabe1b33f012e91fd745c1e0653203 (patch) | |
tree | e7bf1fc433e499e2fa45f79a623a6a120f6b62f1 /views | |
parent | 779ff6e97e53a016b9384427d65d98daf6480e24 (diff) | |
download | elgg-8a76d53f35eabe1b33f012e91fd745c1e0653203.tar.gz elgg-8a76d53f35eabe1b33f012e91fd745c1e0653203.tar.bz2 |
added convenience function for front page
Diffstat (limited to 'views')
-rw-r--r-- | views/default/object/image.php | 43 | ||||
-rw-r--r-- | views/default/river/object/album/create.php | 4 | ||||
-rw-r--r-- | views/default/river/object/image/create.php | 4 | ||||
-rw-r--r-- | views/default/tidypics/forms/edit_multi.php | 2 |
4 files changed, 31 insertions, 22 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php index 9e78ece75..c99bb1ed9 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -56,17 +56,17 @@ if ($photo_tags) { } -///////////////////////////////////////////////////// -// -// search view of an image -// -///////////////////////////////////////////////////// +/******************************************************************** + * + * search view of an image + * + ********************************************************************/ if (get_context() == "search") { if (get_input('search_viewtype') == "gallery") { ?> <div class="tidypics_album_images"> - <a href="<?php echo $file->getURL();?>"><img src="<?php echo $vars['url'];?>mod/tidypics/thumbnail.php?file_guid=<?php echo $file_guid;?>&size=small" border="0" alt="thumbnail"/></a> + <a href="<?php echo $file->getURL();?>"><img src="<?php echo $vars['url'];?>mod/tidypics/thumbnail.php?file_guid=<?php echo $file_guid;?>&size=small" alt="thumbnail"/></a> </div> <?php } @@ -82,26 +82,35 @@ if ($photo_tags) { echo elgg_view_listing($icon, $info); } +/*************************************************************** + * + * front page view + * + ****************************************************************/ + } else if (get_context() == "front") { +?> + <a href="<?php echo $file->getURL();?>"><img src="<?php echo $vars['url'];?>mod/tidypics/thumbnail.php?file_guid=<?php echo $file_guid;?>&size=thumb" class="tidypics_album_cover" alt="<?php echo $title; ?>" title="<?php echo $title; ?>" /></a> +<?php } else { -//////////////////////////////////////////////// -// -// simple gallery view - when is this called? -// -//////////////////////////////////////////////// +/******************************************************************** + * + * simple gallery view - when is this called? + * + *********************************************************************/ if (!$vars['full']) { ?> <div class="tidypics_album_images"> - <a href="<?php echo $file->getURL();?>"><img src="<?php echo $vars['url'];?>mod/tidypics/thumbnail.php?file_guid=<?php echo $file_guid;?>&size=small" border="0" alt="thumbnail"/></a> + <a href="<?php echo $file->getURL();?>"><img src="<?php echo $vars['url'];?>mod/tidypics/thumbnail.php?file_guid=<?php echo $file_guid;?>&size=small" alt="thumbnail"/></a> </div> <?php } else { -//////////////////////////////////////////////////////// -// -// tidypics individual image display -// -//////////////////////////////////////////////////////// +/******************************************************************** + * + * tidypics individual image display + * + *********************************************************************/ $view_count = get_plugin_setting('view_count', 'tidypics'); diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php index 9c2486fa2..a9b261566 100644 --- a/views/default/river/object/album/create.php +++ b/views/default/river/object/album/create.php @@ -20,7 +20,7 @@ if ($album_river_view == "cover") {
if ($album->cover) {
- $string .= "<div class=\"river_content\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/>' . "</div>";
+ $string .= "<div class=\"river_content\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/>' . "</div>";
}
} else {
@@ -30,7 +30,7 @@ if (count($images)) {
foreach($images as $image){
- $string .= "<a href=\"" . $image->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/> </a>';
+ $string .= "<a href=\"" . $image->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/> </a>';
}
}
diff --git a/views/default/river/object/image/create.php b/views/default/river/object/image/create.php index 8f7a856ea..5229e109a 100644 --- a/views/default/river/object/image/create.php +++ b/views/default/river/object/image/create.php @@ -19,9 +19,9 @@ $string .= "<div class=\"river_content\">";
/* // this adds the album cover to the river display
- $string .= "<a href=\"" . $album->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/> </a>';
+ $string .= "<a href=\"" . $album->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/> </a>';
*/
- $string .= "<a href=\"" . $image->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/> </a>';
+ $string .= "<a href=\"" . $image->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/> </a>';
$string .= "</div>";
echo $string;
diff --git a/views/default/tidypics/forms/edit_multi.php b/views/default/tidypics/forms/edit_multi.php index 01ffb3128..f6c29e4a5 100644 --- a/views/default/tidypics/forms/edit_multi.php +++ b/views/default/tidypics/forms/edit_multi.php @@ -27,7 +27,7 @@ }
echo '<div class="tidypics_edit_image_container">';
- echo '<img src="' . $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $guid . '&size=small" border="0" class="tidypics_edit_images" alt="' . $title . '"/>';
+ echo '<img src="' . $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $guid . '&size=small" class="tidypics_edit_images" alt="' . $title . '"/>';
echo '<div class="tidypics_image_info">';
echo '<p><label>' . elgg_echo('album:title') . '</label>';
echo elgg_view("input/text", array("internalname" => "title[$key]", "value" => $title,)) . "\n";
|