/**
 * Get a heatmap of forum tags for the installation.
 *
 * A wrapper for {@link bb_tag_heat_map}, which provides it with BP-friendly
 * defaults.
 *
 * @param array $args {
 *     An array of optional arguments.
 *     @type int $smallest Size of the smallest link. Default: 10.
 *     @type int $largest Size of the largest link. Default: 42.
 *     @type string $sizing Unit for $largest and $smallest. Default: 'px'.
 *     @type int $limit Max number of tags to display. Default: 50.
 * }
 */
function bp_forums_tag_heat_map($args = '')
{
    $defaults = array('smallest' => '10', 'largest' => '42', 'sizing' => 'px', 'limit' => '50');
    $r = wp_parse_args($args, $defaults);
    extract($r, EXTR_SKIP);
    bb_tag_heat_map($smallest, $largest, $sizing, $limit);
}
Example #2
0
<?php

bb_get_header();
?>

<div class="bbcrumb"><a href="<?php 
bb_uri();
?>
"><?php 
bb_option('name');
?>
</a> &raquo; <?php 
_e('Tags');
?>
</div>

<p role="main"><?php 
_e('Browse questions and answers by clicking on a tag below.');
?>
</p>

<div id="hottags">
<?php 
bb_tag_heat_map(9, 38, 'pt', 80);
?>
</div>

<?php 
bb_get_footer();
 function tag_heat_map($args = '')
 {
     bb_log_deprecated('function', __FUNCTION__, 'bb_tag_heat_map (with variations to arguments)');
     $defaults = array('smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'limit' => 45, 'format' => 'flat');
     $args = nxt_parse_args($args, $defaults);
     if (1 < ($fn = func_num_args())) {
         // For back compat
         $args['smallest'] = func_get_arg(0);
         $args['largest'] = func_get_arg(1);
         $args['unit'] = 2 < $fn ? func_get_arg(2) : $unit;
         $args['limit'] = 3 < $fn ? func_get_arg(3) : $limit;
     }
     bb_tag_heat_map($args);
 }
Example #4
0
} else {
    // $forums
    ?>

<h3 class="bbcrumb"><a href="<?php 
    bb_option('uri');
    ?>
"><?php 
    bb_option('name');
    ?>
</a></h3>

<?php 
    post_form();
}
// $forums
?>

<div id="hottags">
<h2><?php 
_e('Hot Tags');
?>
</h2>
<p class="frontpageheatmap"><?php 
bb_tag_heat_map();
?>
</p>
</div>

<?php 
bb_get_footer();
Example #5
0
<p><a href="http://chronicle.com/blog/ProfHacker/27/" id="ph-logo"><img alt="ProfHacker" title="ProfHacker" src="<?php 
    echo bb_active_theme_uri() . 'images/ph-icon.png';
    ?>
"/></a><strong><a href="http://twitter.com/dhanswers">@DHAnswers</a></strong> is a collaborative project of the <a href="http://www.ach.org">Association for Computers and the Humanities</a> (ACH) and the Chronicle of Higher Education's <a href="http://chronicle.com/blog/ProfHacker/27/">ProfHacker</a>.</p>
<p><a id="follow-us" href="http://www.twitter.com/DHAnswers">Follow @DHAnswers on Twitter</a></p>
<!-- <h2>How to</h2>
<p><a href="/answers/bb-login.php">Create an account</a> and <?php 
    bb_new_topic_link('ask a question');
    ?>
 </p> -->
<h2><?php 
    _e('Popular Tags');
    ?>
</h2>
<p class="frontpageheatmap"><?php 
    bb_tag_heat_map(10, 18, 'px', 20);
    ?>
</p>

<h2><?php 
    _e('Find Questions');
    ?>
</h2>
<ul id="views">
<?php 
    foreach (bb_get_views() as $the_view => $title) {
        ?>
<li class="view"><a href="<?php 
        view_link($the_view);
        ?>
"><?php 
Example #6
0
					<h2><?php 
_e('Search');
?>
</h2>
					<?php 
include dirname(__FILE__) . '/search-form.php';
?>
				</li>

				<li>
					<h2><?php 
_e('Hot Tags');
?>
</h2>
					<p class="frontpageheatmap"><?php 
bb_tag_heat_map(array('limit' => 30, 'largest' => 15));
?>
</p>
				</li>
			</ul>
		</div>
		
		<?php 
do_action('gz_place_bottom');
?>
	</div>
	<div class="clear"></div>
</div>

<div class="clear"></div>