aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-28 03:34:25 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-28 03:34:25 +0000
commit5107faa7e96efd940ce28da9f46508298759c189 (patch)
treef3b241177607f27e05a8c1cb00900066100af280 /views/default/object
parente0eebd803e76bae0d7aa6456427667c90b4e2368 (diff)
downloadelgg-5107faa7e96efd940ce28da9f46508298759c189.tar.gz
elgg-5107faa7e96efd940ce28da9f46508298759c189.tar.bz2
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/album.php17
-rw-r--r--views/default/object/image.php13
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>&nbsp;
-
- <?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>&nbsp;
-<?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>&nbsp;
- <?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">