aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/image.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-21 21:47:47 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-21 21:47:47 +0000
commit8a76d53f35eabe1b33f012e91fd745c1e0653203 (patch)
treee7bf1fc433e499e2fa45f79a623a6a120f6b62f1 /views/default/object/image.php
parent779ff6e97e53a016b9384427d65d98daf6480e24 (diff)
downloadelgg-8a76d53f35eabe1b33f012e91fd745c1e0653203.tar.gz
elgg-8a76d53f35eabe1b33f012e91fd745c1e0653203.tar.bz2
added convenience function for front page
Diffstat (limited to 'views/default/object/image.php')
-rw-r--r--views/default/object/image.php43
1 files changed, 26 insertions, 17 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;?>&amp;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');