function synved_connect_support_social_follow_render()
{
    $uri = synved_connect_path_uri();
    $out = null;
    $out .= '<div class="synved-connect-notice" style="position:fixed; right:30px; top:60px; width:220px; background:#ececec; font-size:110%; color:#444; padding:16px 18px 16px 18px;">';
    $out .= '<a href="#" style="font-size:8px; position:absolute; top:0px; right:0px; margin-right: 5px;" onclick="' . esc_attr('jQuery(this).parents(\'.synved-connect-notice\').find(\'.notice-extra\').slideToggle(\'slow\'); return false;') . '">' . __('toggle', 'synved-connect') . '</a>';
    $out .= '<div style="padding:8px 10px; border:dotted 1px #bbb;">';
    $out .= '<a style="display:block; line-height:32px; height:32px;" target="_blank" href="https://twitter.com/synved" title="' . __('Follow Us on Twitter!', 'synved-connect') . '"><img style="vertical-align:middle;" alt="twitter" src="' . esc_url($uri . '/image/twitter.png') . '" /><span style="line-height:normal; vertical-align:middle; margin-left:8px;">' . __('Follow Us on Twitter!', 'synved-connect') . '</span></a><div style="font-size:75%; color:#888; line-height:normal; text-align:center; margin-top:5px;">' . __('We only tweet relevant updates!', 'synved-connect') . '</div>';
    $out .= '</div>';
    $out .= '<div class="notice-extra" style="margin:8px 0 0 0; padding:8px 10px; border:dotted 1px #bbb;">';
    $out .= '<a style="display:block; line-height:32px; height:32px;" target="_blank" href="http://synved.com/about/contact/?subject=Quote%20Request" title="' . __('Hire Us!', 'synved-connect') . '"><img style="vertical-align:middle;" alt="hire_us" src="' . esc_url($uri . '/image/hire.png') . '" /><span style="line-height:normal; vertical-align:middle; margin-left:8px;">' . __('Hire Us!', 'synved-connect') . '</span></a><div style="font-size:75%; color:#888; line-height:normal; text-align:center; margin-top:5px;">' . __('For any WordPress development', 'synved-connect') . '</div>';
    $out .= '</div>';
    $out .= '<div class="notice-extra notice-secondary">';
    $out .= '<h4 style="margin:10px 0 -10px 0; padding:0;">News</h4>';
    ob_start();
    wp_widget_rss_output('http://feeds.feedburner.com/SynvedNews?format=xml', array('items' => 4, 'show_author' => 0, 'show_date' => 0, 'show_summary' => 0));
    $out .= ob_get_clean();
    $out .= '</div>';
    $sponsor_item = synved_connect_sponsor_item_pick(array('type' => 'intern|extern'));
    if ($sponsor_item != null) {
        $out .= '<div class="notice-extra notice-secondary" style="margin:10px 0 0 0; border:dotted 1px #bbb;">';
        $out .= synved_connect_sponsor_content($sponsor_item);
        $out .= '</div>';
    }
    $out .= '</div>';
    return $out;
}
function synved_connect_dashboard_widget()
{
    $out = null;
    $install_date = get_option('synved_connect_install_date', null);
    if ($install_date == null) {
        update_option('synved_connect_install_date', time());
    }
    if ($install_date != null && time() - $install_date >= 60 * 60 * 6) {
        $sponsor_item = synved_connect_sponsor_item_pick(array('type' => 'intern|extern'));
        if ($sponsor_item != null) {
            $out .= synved_connect_sponsor_content($sponsor_item);
            $out .= '<div>&nbsp;</div>';
        }
    }
    $out .= '<div class="rss-widget">';
    ob_start();
    wp_widget_rss_output('http://feeds.feedburner.com/SynvedNews?format=xml', array('items' => 3, 'show_author' => 0, 'show_date' => 0, 'show_summary' => 1));
    $out .= ob_get_clean();
    $out .= '</div>';
    echo $out;
}
function synved_connect_sponsor_content(array $sponsor_item = null)
{
    if ($sponsor_item == null) {
        $sponsor_item = synved_connect_sponsor_item();
        if ($sponsor_item == null) {
            $sponsor_item = synved_connect_sponsor_item_pick();
        }
    }
    if ($sponsor_item == null) {
        return null;
    }
    $sponsor_type = isset($sponsor_item['type']) ? $sponsor_item['type'] : null;
    $sponsor_text = isset($sponsor_item['text']) ? $sponsor_item['text'] : null;
    $sponsor_markup = isset($sponsor_item['markup']) ? $sponsor_item['markup'] : null;
    $sponsor_link = synved_connect_sponsor_link($sponsor_item);
    if ($sponsor_text == null) {
        if ($sponsor_type == 'credit') {
            $sponsor_text = '%%link%% by Synved';
        } else {
            return null;
        }
    }
    if ($sponsor_markup == null) {
        if ($sponsor_type == 'credit') {
            $sponsor_markup = '<span class="%%class%%">%%content%%</span>';
        } else {
            $sponsor_markup = '<div class="%%class%%">%%content%%</div>';
        }
    }
    $sponsor_class = 'sponsor-holder';
    if ($sponsor_type != null) {
        $sponsor_class .= ' sponsor-type-' . $sponsor_type;
    }
    $sponsor_markup = str_replace('%%class%%', $sponsor_class, $sponsor_markup);
    $sponsor_content = str_replace('%%link%%', $sponsor_link, $sponsor_text);
    $sponsor_content = str_replace('%%content%%', $sponsor_content, $sponsor_markup);
    return $sponsor_content;
}
function synved_connect_credit_item_pick($filter = null)
{
    $filter = synved_connect_credit_filter_apply($filter);
    return synved_connect_sponsor_item_pick($filter);
}