aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-21 16:57:57 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-21 16:57:57 +0000
commitac0e60fd90c55a3a7d4f2001eb9e4cce44a5b259 (patch)
treebe51851578c3c7cffe0ad6c7bd3dda379ed2bbb3 /views/default/tidypics/forms
parentfd2278f46e5123c43343f57cf764d45a0b57ec24 (diff)
downloadelgg-ac0e60fd90c55a3a7d4f2001eb9e4cce44a5b259.tar.gz
elgg-ac0e60fd90c55a3a7d4f2001eb9e4cce44a5b259.tar.bz2
cleaning up friends album view and individual album view
Diffstat (limited to 'views/default/tidypics/forms')
-rw-r--r--views/default/tidypics/forms/edit.php63
1 files changed, 31 insertions, 32 deletions
diff --git a/views/default/tidypics/forms/edit.php b/views/default/tidypics/forms/edit.php
index 97170163b..bef87c64b 100644
--- a/views/default/tidypics/forms/edit.php
+++ b/views/default/tidypics/forms/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * Elgg images edit/add page
+ * Tidypics images edit/add page
* This form is used to:
* - create albums
* - edit albums
@@ -8,39 +8,39 @@
*/
//set stuff if we are editing existing album or image
- if (isset($vars['entity'])) {
- $title = sprintf(elgg_echo("album:edit"),$object->title);
- $action = "tidypics/editalbum";
- $title = $vars['entity']->title;
- $body = $vars['entity']->description;
- $tags = $vars['entity']->tags;
- $access_id = $vars['entity']->access_id;
- $subtype = $vars['subtype'];
+ if (isset($vars['entity'])) {
+ $title = sprintf(elgg_echo("album:edit"),$object->title);
+ $action = "tidypics/editalbum";
+ $title = $vars['entity']->title;
+ $body = $vars['entity']->description;
+ $tags = $vars['entity']->tags;
+ $access_id = $vars['entity']->access_id;
+ $subtype = $vars['subtype'];
- // if nothing is sent, create new, but only new albums are sent here
- // new images are sent to upload.php
- } else {
- $title = elgg_echo("album:add");
- $action = "tidypics/addalbum";
- $tags = "";
- $title = "";
- $description = "";
- if (defined('ACCESS_DEFAULT'))
- $access_id = ACCESS_DEFAULT;
- else
- $access_id = 0;
- }
+ // if nothing is sent, create new, but only new albums are sent here
+ // new images are sent to upload.php
+ } else {
+ $title = elgg_echo("album:add");
+ $action = "tidypics/addalbum";
+ $tags = "";
+ $title = "";
+ $description = "";
+ if (defined('ACCESS_DEFAULT'))
+ $access_id = ACCESS_DEFAULT;
+ else
+ $access_id = 0;
+ }
// in case we have some cached details
- if (isset($vars['albumtitle'])) {
- $title = $vars['albumtitle'];
- $body = $vars['albumbody'];
- $tags = $vars['albumtags'];
- }
+ if (isset($vars['albumtitle'])) {
+ $title = $vars['albumtitle'];
+ $body = $vars['albumbody'];
+ $tags = $vars['albumtags'];
+ }
- $container_guid = get_input('container_guid');
- if (!$container_guid) $container_guid = page_owner();
-
+ $container_guid = get_input('container_guid');
+ if (!$container_guid) $container_guid = page_owner();
+
?>
<div class="contentWrapper">
<form action="<?php echo $vars['url']; ?>action/<?php echo $action; ?>" method="post">
@@ -49,8 +49,7 @@
<?php echo elgg_view("input/text", array("internalname" => "albumtitle", "value" => $title,)); ?>
</p>
<?php
- if($vars['subtype'] == 'album' || $action == "tidypics/addalbum")
- {
+ if ($vars['subtype'] == 'album' || $action == "tidypics/addalbum") {
?>
<p>
<label><?php echo elgg_echo('album:desc'); ?></label>