summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-05 05:28:20 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-05 05:28:20 +0000
commita60944e07d77bcc020bf33934055702dae89b875 (patch)
tree810af6d27a57fb7c4d4781d97d75627c71d44987 /modules
parentb82332192a7420cce045612014ad6f54b02974c3 (diff)
Tags are now off in their own module, hooray!
Diffstat (limited to 'modules')
-rw-r--r--modules/tags/helpers/tags.php29
-rw-r--r--modules/tags/views/tag_cloud.html.php44
2 files changed, 73 insertions, 0 deletions
diff --git a/modules/tags/helpers/tags.php b/modules/tags/helpers/tags.php
new file mode 100644
index 00000000..ca4f7e35
--- /dev/null
+++ b/modules/tags/helpers/tags.php
@@ -0,0 +1,29 @@
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2008 Bharat Mediratta
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+class Tags_Core {
+ public static function block($theme) {
+ $block = new Block();
+ $block->id = "gTags";
+ $block->title = _("Tags");
+ $block->content = new View("tag_cloud.html");
+ return $block;
+ }
+} \ No newline at end of file
diff --git a/modules/tags/views/tag_cloud.html.php b/modules/tags/views/tag_cloud.html.php
new file mode 100644
index 00000000..4e5a93ac
--- /dev/null
+++ b/modules/tags/views/tag_cloud.html.php
@@ -0,0 +1,44 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<ul>
+ <li><a href="#" class="m size0">animation</a></li>
+ <li><a href="#" class="m size0">art</a></li>
+ <li><a href="#" class="m size1">blind</a></li>
+ <li><a href="#" class="m size3">blog</a></li>
+ <li><a href="#" class="m size1">bug-tracker</a></li>
+ <li><a href="#" class="m size2">bugs20</a></li>
+ <li><a href="#" class="m size0">canvas</a></li>
+ <li><a href="#" class="m size0">classification</a></li>
+ <li><a href="#" class="m size4">cocktail</a></li>
+ <li><a href="#" class="m size0">exhibtion</a></li>
+ <li><a href="#" class="m size0">forum</a></li>
+ <li><a href="#" class="m size1">geo-tagging</a></li>
+ <li><a href="#" class="m size0">german</a></li>
+ <li><a href="#" class="m size0">germany</a></li>
+ <li><a href="#" class="m size0">gl?ser</a></li>
+ <li><a href="#" class="m size0">graffiti</a></li>
+ <li><a href="#" class="m size0">illustration</a></li>
+ <li><a href="#" class="m size0">ITP</a></li>
+ <li><a href="#" class="m size0">javascript</a></li>
+ <li><a href="#" class="m size0">miami</a></li>
+ <li><a href="#" class="m size0">miknow</a></li>
+ <li><a href="#" class="m size0">nyc</a></li>
+ <li><a href="#" class="m size0">NYU</a></li>
+ <li><a href="#" class="m size0">ontology</a></li>
+ <li><a href="#" class="m size0">open-source</a></li>
+ <li><a href="#" class="m size0">project</a></li>
+ <li><a href="#" class="m size0">school-of-information</a></li>
+ <li><a href="#" class="m size0">screenshot</a></li>
+ <li><a href="#" class="m size0">shiftspace</a></li>
+ <li><a href="#" class="m size0">shop</a></li>
+ <li><a href="#" class="m size0">tagging</a></li>
+ <li><a href="#" class="m size2">talkingpoints</a></li>
+ <li><a href="#" class="m size0">university-of-michigan</a></li>
+ <li><a href="#" class="m size1">usability</a></li>
+ <li><a href="#" class="m size0">writing</a></li>
+</ul>
+
+<form id="gAddTag" class="gBlockContent">
+ <input type="text" class="text" value="add new tags ..." id="newtags" />
+ <input type="submit" class="submit" value="add" />
+ <label for="newtags" class="understate">(separated by commas)</label>
+</form>