aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-05-17 04:55:17 +0000
committerGreg Froese <greg.froese@gmail.com>2009-05-17 04:55:17 +0000
commit600effcfc450689f3a01788da0fc8ded87bb45ae (patch)
tree799b937012a0cd92bad2fcd8dccb4595f669cae3 /views/default/object
parentfcd9762b51d26998445d7061261d18df70c8941c (diff)
downloadelgg-600effcfc450689f3a01788da0fc8ded87bb45ae.tar.gz
elgg-600effcfc450689f3a01788da0fc8ded87bb45ae.tar.bz2
fixed views topping out at 10 and made the download link an option
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/image.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 13a94fc7d..aceac958b 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -100,7 +100,7 @@ if ($photo_tags) {
}
create_annotation($file_guid, "tp_view", "1", "integer", $the_viewer, 2);
- $views_a = get_annotations($file_guid, "object", "image", "tp_view");
+ $views_a = get_annotations($file_guid, "object", "image", "tp_view", "", 0, 9999);
$views = count($views_a);
$my_views = 0;
@@ -160,7 +160,11 @@ if ($photo_tags) {
<div id="tidypics_controls">
<ul>
<li><a id="tag_control" href="javascript:void(0)" onclick="startTagging()"><?= elgg_echo('tidypics:tagthisphoto') ?></a></li>
- <?php echo elgg_view('tidypics/download', array('file_guid' => $file_guid,) ); ?>
+ <?php
+ if(get_plugin_setting('download_link', 'tidypics') == "yes") {
+ echo elgg_view('tidypics/download', array('file_guid' => $file_guid,) );
+ }
+ ?>
</ul>
</div>
<?php if ($photo_tags) { ?>