section
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'shortlink_wp_head');
remove_action('wp_head', 'wp_generator');
}
// Display default theme title text
function echo_bitvolution_title() {
// Get theme options
$options = get_option('plugin_options');
if (isset($options['logo_setting']) && isset($options['logo']) && $options['logo_setting'] == 'Y' && $options['logo']) {
// User wants to use a custom logo image instead of using the blog name as the title text
echo '
';
} else {
echo '
';
echo ''.get_bloginfo('description').'
';
}
}
// Display default theme footer text
function echo_bitvolution_credits() {
global $wpdb;
echo 'WordPress generated this page with '.$wpdb->num_queries.' queries, in '.timer_stop(0). ' seconds.';
echo ' This theme is called "Bitvolution".';
}
/** Widget - Override the default Wordpress tag cloud BUT cap the largest font size to 18 (instead of 22) because at 22 some tags don't fit in the sidebar. */
class Tag_cloud_withLimitedFontSize
{
function widget($args)
{
echo $args['before_widget'];
echo $args['before_title'] . 'Tags' . $args['after_title'];
echo wp_tag_cloud('largest=18');
echo $args['after_widget'];
}
function register()
{
// Deprecated: register_sidebar_widget('Tag Cloud', array('Tag_cloud_withLimitedFontSize', 'widget'));
wp_register_sidebar_widget('tag-cloud', 'Tag Cloud (largest font: 18px)', array('Tag_cloud_withLimitedFontSize', 'widget'));
unregister_widget('WP_Widget_Tag_Cloud');
}
}
?>