equal
deleted
inserted
replaced
146 $percent = ( $popularity / $max ) * 100; |
146 $percent = ( $popularity / $max ) * 100; |
147 $index = $this->get_scale_class($percent); |
147 $index = $this->get_scale_class($percent); |
148 $newline = ( $inc == 5 ) ? "<br />" : ''; |
148 $newline = ( $inc == 5 ) ? "<br />" : ''; |
149 ( $inc == 5 ) ? $inc = 0 : null; |
149 ( $inc == 5 ) ? $inc = 0 : null; |
150 $url = makeUrlNS('Special', 'TagCloud/' . htmlspecialchars($word)); |
150 $url = makeUrlNS('Special', 'TagCloud/' . htmlspecialchars($word)); |
151 $popstring = ( $popularity == 1 ) ? $lang->get('pagetools_tagcloug_tip_popularity_one') : $lang->get('pagetools_tagcloug_tip_popularity_plural', array('popularity' => $popularity)); |
151 $popstring = ( $popularity == 1 ) ? $lang->get('pagetools_tagcloud_tip_popularity_one') : $lang->get('pagetools_tagcloud_tip_popularity_plural', array('popularity' => $popularity)); |
152 $html[] = "<span class='tc_word_{$span_class} tc_{$span_class}_index_{$index}'><a href='$url' title='$popstring'>$word</a></span>"; // $newline"; |
152 $html[] = "<span class='tc_word_{$span_class} tc_{$span_class}_index_{$index}'><a href='$url' title='$popstring'>$word</a></span>"; // $newline"; |
153 } |
153 } |
154 } |
154 } |
155 $html = '<div style="text-align: ' . $div_align . '; margin: 0 auto; max-width: 400px;">' . implode("\n", $html) . '</div>'; |
155 $html = '<div style="text-align: ' . $div_align . '; margin: 0 auto; max-width: 400px;">' . implode("\n", $html) . '</div>'; |
156 return $html; |
156 return $html; |