Commit 2fe41260 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add bigger version of tag cloud to tag search page.

parent 5ce0a9e5
......@@ -28,7 +28,7 @@ define('INTERNAL', 1);
define('MENUITEM', 'myportfolio');
require('init.php');
require('searchlib.php');
define('TITLE', get_string('tags'));
define('TITLE', get_string('mytags'));
if ($tag = param_variable('tag', null)) {
$limit = param_integer('limit', 10);
......@@ -38,8 +38,11 @@ if ($tag = param_variable('tag', null)) {
build_portfolio_search_html($data);
}
$tags = get_my_tags();
$smarty = smarty(array('paginator'));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->assign('tags', $tags);
if (!is_null($tag) && isset($data)) {
$smarty->assign('tag', $tag);
$smarty->assign_by_ref('results', $data);
......
......@@ -656,11 +656,19 @@ div.sideblock #friendscontrol label {
.sidebar-content.mytags {
text-align: center;
padding: 0;
}
.mytags {
padding: .5em 0;
}
div.sideblock .tag {
padding: 0 .5em 0 0;
.mytags .tag {
padding: 0 5px;
vertical-align: middle;
}
.mytags .tag.selected {
color: #444;
text-decoration: underline;
}
/* AJAX LOGIN */
#ajax-login-form {
......
{include file="header.tpl"}
{if empty($results->data)}
<div>{str tag=youhavenoblogs section=artefact.blog}</div>
{if $tags}
<div class="mytags">
{foreach from=$tags item=t}
<a class="tag{if $t->tag == $tag} selected{/if}" style="font-size: {$t->size}em;" href="{$WWWROOT}tags.php?tag={$t->tag|urlencode}">{$t->tag|escape}</a>
{/foreach}
</div>
{else}
<h3>{str tag="itemstaggedwith" arg1=$tag|escape}</h3>
<div>{str tag=youhavenottaggedanythingyet}</div>
{/if}
{if !empty($results->data)}
<table id="results" class="tablerenderer fullwidth">
<thead>
<tr><th></th><th></th><th></th></tr>
......
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