Pastoid

The page you are looking at now is at this URL: http://pastoid.com/b1a

This paste was last updated on April 6, 2010 at 11:29 pm.

Pasted Coderaw

public function action_block_content_simple_tag_cloud( $block, $theme )
{
  $block->tags = Tags::get();
  $block->max = intval(Tags::max_count());
}
 
 

Toggle wordwrap

Pasted Coderaw

<style type="text/css">
.wt0 { font-size: 10px; }
.wt1 { font-size: 11px; }
.wt2 { font-size: 12px; }
.wt3 { font-size: 13px; }
.wt4 { font-size: 15px; }
.wt5 { font-size: 16px; }
.wt6 { font-size: 19px; }
.wt7 { font-size: 20px; }
.wt8 { font-size: 22px; }
.wt9 { font-size: 23px; }
.wt10 { font-size: 25px; }
#tag_collection .tag {
  display: inline;
  background: transparent;
} 
#tag_collection a {
  color: #555;
  margin: 0 5px;
  line-height: 30px;
  padding: 2px 0;
  outline: none;
}
.tag .count {
  color: #aaa;
  font-size: 9px;
  margin-left: 2px;
  vertical-align: super;
}   
</style>
 
<?php
function tag_weight( $count, $max )
{
  return round( 10 * log($count + 1) / log($max + 1) );
}
?>
<ul id="tag_collection">
<?php foreach ( $content->tags as $tag ) : ?>
  <li id="<?php echo 'tag_' . $tag->id ?>" class="tag wt<?php echo tag_weight($tag->count, $content->max); ?>">.
    <a href="<?php URL::out('display_entries_by_tag', array('tag' => $tag->tag_slug));?>"><?php echo $tag->tag; ?></a><span class="count"><?php echo $tag->count; ?></span>
  </li>
<?php endforeach; ?>
</ul> 
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 163
pastoid.com 3
Is this paste spam?
<Hide