Esempio n. 1
0
        $hashtext .= $user->getUsername();
    }
    $hash = md5($hashtext);
    // Cache for 180 minutes
    $cache->Start($hash, 7200);
}
//Display all the tags
echo "<h2>" . T_("All tags") . "";
if ($userName) {
    echo " -- " . $userName;
}
echo "</h2>";
if ($current_page != "") {
    $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(-1, $userName), 5, 90, 225, $sortOrder), $current_page);
} else {
    $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(-1, $userName), 5, 90, 225, $sortOrder));
}
if ($strPopular != "") {
    echo "<p class=\"tags\">" . $strPopular . "</p>";
}
?>
<p id="sort">
 <?php 
echo T_("Sort by");
?>
:    <a href="?sortOrder=alphabet<?php 
echo $userStr;
?>
"><?php 
echo T_("Alphabet");
?>
Esempio n. 2
0
            }
            echo "<div class=\"rm_content\"><a href=\"" . $current_page . "\" title=\"" . T_("Remove all tags") . "\">[" . T_("remove all") . "]</a>\n" . $forAllStr . $strRelatedMinus . $strRelated . "</div><br>";
        } else {
            echo "<div class=\"rm_content\">" . $strRelated . "</div><br>";
        }
    }
}
if (in_array('popular', $blocks)) {
    if (!(IS_GETBOO && $userName == "")) {
        if ($current_page != "" && $current_page != "recent_tags.php") {
            $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(35, $userName), 5, 85, 170, "alphabet"), $current_page);
        } else {
            if (!$boolMain) {
                $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(35, $userName), 5, 85, 170, "alphabet"));
            } else {
                $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(50, $userName), 5, 85, 250, "alphabet"));
            }
        }
        if ($strPopular != "") {
            if ($userName != "") {
                $userStr = "?uname=" . $userName;
            }
            ?>
		<div class="rm_heading"><?php 
            echo T_("Popular tags");
            ?>
</div>
		<div class="rm_content"><?php 
            echo "<p class=\"menu_tags\">" . $strPopular . "</p>";
            ?>
</div>