<li><?php 
wp_tag_cloud('smallest=4&largest=14&number=500');
?>
</li>
		
		<li>
			<?php 
user_cloud(2);
?>
			<br clear='left'>
		</li>
		
	<li>
			<?php 
wp_widget_recent_comments(array());
?>
		</li>
		
		<li class="credits">
			<p>
				<?php 
if (!is_user_logged_in()) {
    echo '<a href="' . get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_option('siteurl')) . '">' . __('Identifícate') . '</a>';
} else {
    echo '<a href="' . get_option('siteurl') . '/wp-login.php?action=logout">' . __('Salir') . '</a>';
}
?>
			</p>
		</li>
		
function wpmp_theme_widget_recent_comments($args, $widget_args = 1)
{
    ob_start();
    if (function_exists('wp_widget_recent_comments')) {
        wp_widget_recent_comments($args);
    } else {
        $widget = new WP_Widget_Recent_Comments();
        $widget->display_callback($args, $widget_args);
    }
    $original = ob_get_contents();
    ob_end_clean();
    $original = str_ireplace('<ul id="recentcomments"></ul>', '<ul id="recentcomments"><li>' . __('No comments', 'wpmp') . '</li></ul>', $original);
    $original = str_ireplace("&cpage", "&amp;cpage", $original);
    print $original;
}
Esempio n. 3
0
	<ul>
		<li><?php 
wp_tag_cloud('smallest=8&largest=14');
?>
</li>
		
		<li>
			<?php 
user_cloud();
?>
			<br clear='left'>
		</li>
		
		<li>
			<?php 
wp_widget_recent_comments();
?>
		</li>
		
		<li class="credits">
			<p>
				<?php 
if (!is_user_logged_in()) {
    echo '<a href="' . get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_option('siteurl')) . '">' . __('Log in') . '</a>';
} else {
    echo '<a href="' . get_option('siteurl') . '/wp-login.php?action=logout">' . __('Log out') . '</a>';
}
?>
			</p>
		</li>