Lines Matching full:cloud

62         // get the tag cloud...
94 $alt = '<div id="cloud">';
96 $alt = '<div id="cloud" style="display:none;">';
108 * (inspired by DokuWiki Cloud plugin by Gina Häußge, Michael Klier, Esther Brunner)
118 $cloud = $this->_getTagCloud($options['max'], $min, $max, $tag);
121 $cloud = $this->_getNamespaceCloud($options['max'], $min, $max);
124 $cloud = $this->_getWordCloud($options['max'], $min, $max);
126 if (!is_array($cloud) || empty($cloud)) return '';
131 foreach ($cloud as $word => $size) {
178 * Returns the sorted namespace cloud array
183 $cloud = array();
189 if ($name['ns'] == '') $cloud[$name['id']] = 100;
191 return $this->_sortCloud($cloud, $num, $min, $max);
195 * Returns the sorted word cloud array
196 * (from DokuWiki Cloud plugin by Gina Häußge, Michael Klier, Esther Brunner)
210 $cloud = array();
221 $this->_addWordsToCloud($cloud, $idx, $word_idx, $stopwords);
228 $this->_addWordsToCloud($cloud, $idx, $word_idx, $stopwords);
230 return $this->_sortCloud($cloud, $num, $min, $max);
234 * Adds all words in given index as $word => $freq to $cloud array
235 * (from DokuWiki Cloud plugin by Gina Häußge, Michael Klier, Esther Brunner)
237 function _addWordsToCloud(&$cloud, $idx, $word_idx, &$stopwords) { argument
246 $cloud[$key] = count($value);
252 * Returns the sorted tag cloud array
253 * (from DokuWiki Cloud plugin by Gina Häußge, Michael Klier, Esther Brunner)
256 $cloud = $tag->tagOccurrences(NULL, NULL, true);
257 return $this->_sortCloud($cloud, $num, $min, $max);
261 * Sorts and slices the cloud
262 * (from DokuWiki Cloud plugin by Gina Häußge, Michael Klier, Esther Brunner)
264 function _sortCloud($cloud, $num, &$min, &$max) { argument
265 if(empty($cloud)) return;
268 arsort($cloud);
269 $cloud = array_chunk($cloud, $num, true);
270 $max = current($cloud[0]);
271 $min = end($cloud[0]);
272 ksort($cloud[0]);
274 return $cloud[0];