diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-05-17 04:55:17 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-05-17 04:55:17 +0000 |
commit | 600effcfc450689f3a01788da0fc8ded87bb45ae (patch) | |
tree | 799b937012a0cd92bad2fcd8dccb4595f669cae3 /views/default | |
parent | fcd9762b51d26998445d7061261d18df70c8941c (diff) | |
download | elgg-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')
-rw-r--r-- | views/default/object/image.php | 8 | ||||
-rw-r--r-- | views/default/settings/tidypics/edit.php | 22 |
2 files changed, 28 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) { ?> diff --git a/views/default/settings/tidypics/edit.php b/views/default/settings/tidypics/edit.php index f800d313f..ecfee33bd 100644 --- a/views/default/settings/tidypics/edit.php +++ b/views/default/settings/tidypics/edit.php @@ -44,6 +44,28 @@ <?php echo elgg_view('input/text', array('internalname' => 'params[maxfilesize]', 'value' => $maxfilesize)); ?> </p> <?php + $image_lib = $vars['entity']->image_lib; + if (!$image_lib) $image_lib = 'GD'; +?> +<p> + <?php + echo elgg_echo('tidypics:settings:download_link'); + $download_link = $vars['entity']->download_link; + if (!$download_link) $download_link = 'yes'; + ?> + + <?php + echo elgg_view('input/pulldown', array( + 'internalname' => 'params[download_link]', + 'options_values' => array( + 'yes' => 'yes', + 'no' => 'no', + ), + 'value' => $download_link)); + ?> +</p> + +<?php $watermark_text = $vars['entity']->watermark_text; if(!$watermark_text) $watermark_text = ""; ?> |