Location: PHPKode > projects > Habari > habari-0.7.1/system/admin/tag_collection.php
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<?php
$max = intval( $max );
function tag_weight( $count, $max )
{
	return round( 10 * log($count + 1) / log($max + 1.01) );
}

if ( count($tags) != 0 ) :
	foreach ( $tags as $tag ) :
?>
		<li id="<?php echo 'tag_' . $tag->id ?>" class="item tag wt<?php echo tag_weight($tag->count, $max); ?>"> 
		 	<span class="checkbox"><input type="checkbox" class="checkbox" name="checkbox_ids[<?php echo $tag->id; ?>]" id="checkbox_ids[<?php echo $tag->id; ?>]"></span><label for="checkbox_ids[<?php echo $tag->id; ?>]"><?php echo $tag->term_display; ?></label><span class="count"><a href="<?php URL::out( 'admin', array( 'page' => 'posts', 'search' => 'tag:'. $tag->tag_text_searchable) ); ?>" title="<?php echo Utils::htmlspecialchars( _t( 'Manage posts tagged %1$s', array( $tag->term_display ) ) ); ?>"><?php echo $tag->count; ?></a></span>
		 </li>
<?php endforeach;
else : ?>
<div class="message none">
	<p><?php _e('No tags could be found to match the query criteria.'); ?></p>
</div>
<?php endif; ?>
Return current item: Habari