Commit 5d4c356b authored by amette's avatar amette

Show Tag-Cloud to to be able to jump to another tag directly

parent 5c1bab36
{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-browse_freetags.tpl,v 1.19 2006-01-29 00:51:38 amette Exp $ *}
{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-browse_freetags.tpl,v 1.20 2006-01-29 03:04:09 amette Exp $ *}
{if $feature_ajax eq 'y'}
<script src="lib/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script>
......@@ -7,9 +7,14 @@
<script src="lib/freetag/freetag_ajax.js" type="text/javascript"></script>
{/if}
{if $feature_morcego eq 'y' and $freetags_feature_3d eq 'y'}
<h1>{tr}Browse related tags{/tr}</h1>
{foreach from=$most_popular_tags item=popular_tag}
<a class="freetag_{$popular_tag.size}" href="tiki-browse_freetags.php?tag={$popular_tag.tag}">{$popular_tag.tag}</a>
{/foreach}
{if $feature_morcego eq 'y' and $freetags_feature_3d eq 'y'}
<div class="morcego_embedded">
<h2>{tr}Network of Tags related to{/tr}: <span id="currentTag1">{$tag}</span></h2>
<applet codebase="./lib/wiki3d" archive="morcego-0.4.0.jar" code="br.arca.morcego.Morcego" width="{$freetags_3d_width}" height="{$freetags_3d_height}">
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-browse_freetags.php,v 1.6 2006-01-27 17:14:53 amette Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-browse_freetags.php,v 1.7 2006-01-29 03:04:08 amette Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
//
// $Header: /cvsroot/tikiwiki/tiki/tiki-browse_freetags.php,v 1.6 2006-01-27 17:14:53 amette Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-browse_freetags.php,v 1.7 2006-01-29 03:04:08 amette Exp $
//
// Initialization
......@@ -79,6 +79,9 @@ if (isset($_REQUEST["user_only"]) && $_REQUEST["user_only"] == 'on') {
$smarty->assign('tag', $_REQUEST['tag']);
$most_popular_tags = $freetaglib->get_most_popular_tags('', 0, 100);
$smarty->assign('most_popular_tags', $most_popular_tags);
$objects = $freetaglib->get_objects_with_tag($_REQUEST['tag'], $type, $view_user, $offset, $maxRecords, $find); //, $sort_mode);
$smarty->assign_by_ref('objects', $objects["data"]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment