= t2("There is one tag", "There are %count tags", $tags->count()) ?>
foreach ($tags as $i => $tag): ?>
$current_letter = strtoupper(mb_substr($tag->name, 0, 1)) ?>
if ($i == 0): /* first letter */ ?>
= $current_letter ?>
elseif ($last_letter != $current_letter): /* new letter */ ?>
if ($column_tag_count > $tags_per_column): /* new column */ ?>
|
$column_tag_count = 0 ?>
endif ?>
= $current_letter ?>
endif ?>
-
= p::clean($tag->name) ?>
(= $tag->count ?>)
id") ?>">= t("Edit GPS") ?>
// Check and see if this ID already has GPS data, display a delete button if it does.
$existingGPS = ORM::factory("tags_gps")
->where("tag_id", $tag->id)
->find_all();
if (count($existingGPS) > 0) {
?>
| id") ?>">= t("Delete GPS") ?>
}
?>
$column_tag_count++ ?>
$last_letter = $current_letter ?>
endforeach /* $tags */ ?>
|