diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-28 03:34:25 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-28 03:34:25 +0000 |
commit | 5107faa7e96efd940ce28da9f46508298759c189 (patch) | |
tree | f3b241177607f27e05a8c1cb00900066100af280 /views/default/object | |
parent | e0eebd803e76bae0d7aa6456427667c90b4e2368 (diff) | |
download | elgg-5107faa7e96efd940ce28da9f46508298759c189.tar.gz elgg-5107faa7e96efd940ce28da9f46508298759c189.tar.bz2 |
Diffstat (limited to 'views/default/object')
-rw-r--r-- | views/default/object/album.php | 17 | ||||
-rw-r--r-- | views/default/object/image.php | 13 |
2 files changed, 1 insertions, 29 deletions
diff --git a/views/default/object/album.php b/views/default/object/album.php index a1b238812..a94f12590 100644 --- a/views/default/object/album.php +++ b/views/default/object/album.php @@ -63,23 +63,6 @@ <?php echo '<div id="tidypics_desc">'.autop($desc).'</div>'; - if ($file->canEdit()) { // add controls - -?> - <div id="tidypics_controls"> - <a href="<?php echo $vars['url'] . "pg/photos/upload/" . $file_guid ;?>"><?php echo elgg_echo('album:addpix');?></a> - <a href="<?php echo $vars['url']; ?>mod/tidypics/edit.php?file_guid=<?php echo $file->getGUID(); ?>"><?php echo elgg_echo('album:edit'); ?></a> - - <?php echo elgg_view('output/confirmlink',array( - 'href' => $vars['url'] . "action/tidypics/delete?file=" . $file->getGUID(), - 'text' => elgg_echo("album:delete"), - 'confirm' => elgg_echo("album:delete:confirm"), - )); - ?> - </div> -<?php - } - // display the simple image views. Uses: via 'object/image.php' $count = get_entities("object","image", $file_guid, '', 999); diff --git a/views/default/object/image.php b/views/default/object/image.php index 97095822e..79939bfbb 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -87,18 +87,7 @@ echo '</div>'; ?> <div id="tidypics_controls"> - <a target="_new" href="<?php echo $vars['url']; ?>action/tidypics/download?file_guid=<?php echo $file->getGUID(); ?>"><?php echo elgg_echo("image:download"); ?></a> -<?php - if ($file->canEdit()) { // add edit controls -?> - <a href="<?php echo $vars['url']; ?>mod/tidypics/edit.php?file_guid=<?php echo $file->getGUID(); ?>"><?php echo elgg_echo('image:edit'); ?></a> - <?php echo elgg_view('output/confirmlink',array( - 'href' => $vars['url'] . "action/tidypics/delete?file=" . $file->getGUID(), - 'text' => elgg_echo("image:delete"), - 'confirm' => elgg_echo("image:delete:confirm"), - )); - } - ?> +<div class="tidypics_download"><p><a href="<?php echo $vars['url']; ?>action/tidypics/download?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_echo("image:download"); ?></a></p></div> </div> <div id="tidypics_info"> |