Ejemplo n.º 1
0
function widget_wordspew($args)
{
    global $user_ID, $user_level, $shout_opt, $shout_where;
    if (where_shout($shout_opt['where'], 0)) {
        extract($args);
        $jal_wp_url = get_bloginfo('wpurl') . '/wp-content/plugins/pierres-wordspew';
        $UseRSS = $shout_opt['use_rss'];
        $show_to_level = $shout_opt['level_for_shoutbox'];
        $user_level = isset($user_level) ? $user_level : -1;
        $current = $show_to_level == -1 ? 1 : current_user_can('level_' . $show_to_level);
        if ($current == 1) {
            $Woptions = get_option('widget_wordspew');
            $title = $Woptions['title'];
            $RSSLink = "";
            $libcat = " onmouseover=\"ChangeURL('shoutboxRSS','" . $jal_wp_url . "/wordspew-rss.php','?shout_cat=')\"";
            if ($UseRSS == '1') {
                $RSSLink = ' <a href="' . $jal_wp_url . '/wordspew-rss.php"' . $libcat . ' id="shoutboxRSS"><img 
		src="' . $jal_wp_url . '/img/rss.gif" border="0" alt="" title="' . __('Wordspew-RSS-Feed for:', wordspew) . ' ' . get_bloginfo('name') . '"/></a>';
            }
            echo $before_widget . $before_title . $title . $RSSLink . $after_title;
            jal_get_shoutbox($shout_where);
            echo $after_widget;
        }
    }
}
Ejemplo n.º 2
0
function widget_wordspew($args)
{
    extract($args);
    $jal_wp_url = get_bloginfo('wpurl') . '/wp-content/plugins/wordspew';
    $options = get_option('widget_wordspew');
    $title = $options['title'];
    echo $before_widget . $before_title . $title . ' <a href="' . $jal_wp_url . '/wordspew-rss.php"><img 
	src="' . $jal_wp_url . '/rss.gif" border="0" alt="" 
	title="' . __('Wordspew-RSS-Feed for:', wordspew) . ' ' . get_bloginfo('name') . '"/></a>' . $after_title;
    jal_get_shoutbox();
    echo $after_widget;
}
Ejemplo n.º 3
0
function blogsfera_widget_chat()
{
    $title = __('Graffitis');
    ?>
	
	<li id="chat" class="clearfix">
		<h2><?php 
    echo $title;
    ?>
</h2>
		<?php 
    jal_get_shoutbox();
    ?>
	</li>
	<?php 
}