diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-18 01:27:35 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-18 01:27:35 +0000 |
commit | 5b8a7460d026d91f5c2411673f3b02be2b0e724d (patch) | |
tree | db4a89052e31c206ef2d872365829bdcc0c777e6 /views/default/tidypics | |
parent | 6061b39ac74181e00b58bdede9095502e9e6bec9 (diff) | |
download | elgg-5b8a7460d026d91f5c2411673f3b02be2b0e724d.tar.gz elgg-5b8a7460d026d91f5c2411673f3b02be2b0e724d.tar.bz2 |
cleaned up the tagging code
Diffstat (limited to 'views/default/tidypics')
-rw-r--r-- | views/default/tidypics/tagging.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/default/tidypics/tagging.php b/views/default/tidypics/tagging.php index fdf40b3a5..fcb0b8d4e 100644 --- a/views/default/tidypics/tagging.php +++ b/views/default/tidypics/tagging.php @@ -5,7 +5,7 @@ $file_guid = $vars['file_guid'];
$viewer = $vars['viewer'];
$owner = $vars['owner'];
- $tag_texts = $vars['text'];
+
if ($photo_tags) {
?>
@@ -13,8 +13,8 @@ <h3><?php echo elgg_echo('tidypics:inthisphoto') ?></h3>
<ul>
<?php
- foreach ($links as $tag_link) {
- echo "<li><a class='phototag-links' id='taglink{$tag_link[0]}' href='#'>{$tag_link[1]}</a></li>";
+ foreach ($links as $id=>$link) {
+ echo "<li><a class='phototag-links' id='taglink{$id}' href='{$link[1]}'>{$link[0]}</a></li>";
}
?>
</ul>
@@ -59,9 +59,9 @@ if ($photo_tags) {
echo elgg_echo('tidypics:deltag_title') . '<br />';
$content = "<input type='hidden' name='image_guid' value='{$file_guid}' />";
- foreach ($tag_texts as $id => $text) {
+ foreach ($links as $id => $text) {
$name = "tags[{$id}]";
- $content .= elgg_view("input/checkboxes", array('options' => array($text => $text), 'internalname' => $name, 'value' => '' ));
+ $content .= elgg_view("input/checkboxes", array('options' => array($text[0] => $text[0]), 'internalname' => $name, 'value' => '' ));
}
$content .= "<fieldset><button class='submit_button' type='submit'>" . elgg_echo('tidypics:actiondelete') . "</button></fieldset>";
|