// NOTREACHED
}
+/**
+ * Updates tags from an item
+ * @param $item_id
+ * @param $tags array
+ */
function update_tags($item_id, $tags){
if (empty($item_id) || empty($tags)){
$a->internalRedirect($_SESSION['photo_return']);
return $return;
}
- /*
- * Deletes all Tags from an item
+ /**
+ * Delete all tags from an item
+ * @param int itemid - choose from which item the tags will be removed
*/
public static function deleteAllTags($itemid)
{
{{* Tags and mentions *}}
{{if $tags}}
<div id="photo-tags">{{$tags.title}}
- {{foreach $tags.tags as $t}}
- <span class="category label btn-success sm">
- <span class="p-category">{{$t.name}}</span>
- {{if $t.removeurl}} (<a href="{{$t.removeurl}}">x</a>) {{/if}}
- </span>
- {{/foreach}}
+ {{foreach $tags.tags as $t}}
+ <span class="category label btn-success sm">
+ <span class="p-category">{{$t.name}}</span>
+ {{if $t.removeurl}} (<a href="{{$t.removeurl}}">x</a>) {{/if}}
+ </span>
+ {{/foreach}}
</div>
{{/if}}