15 if (!empty(
$vars[
'subtype'])) {
20 if (!empty(
$vars[
'type'])) {
21 $type =
"&entity_type=" . urlencode(
$vars[
'type']);
26 if (empty(
$vars[
'tagcloud']) && !empty(
$vars[
'value'])) {
30 if (!empty(
$vars[
'tagcloud']) && is_array(
$vars[
'tagcloud'])) {
34 foreach (
$vars[
'tagcloud'] as $tag) {
35 if ($tag->total > $max) {
41 foreach (
$vars[
'tagcloud'] as $tag) {
42 $tag->tag = htmlspecialchars($tag->tag, ENT_QUOTES,
'UTF-8',
false);
48 $size = round((log($tag->total) / log($max + .0001)) * 100) + 30;
52 $url =
"search?q=". urlencode($tag->tag) .
"&search_type=tags$type$subtype";
57 'style' =>
"font-size: $size%;",
58 'title' =>
"$tag->tag ($tag->total)",
65 echo "<div class=\"elgg-tagcloud\">$cloud</div>";
elgg echo
Translates a string.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
if(file_exists($welcome)) $vars