Пример #1
0
function thinkup_input_share()
{
    global $thinkup_post_share;
    global $post;
    $_thinkup_meta_share = get_post_meta($post->ID, '_thinkup_meta_share', true);
    if (empty($_thinkup_meta_share) or $_thinkup_meta_share == 'option1') {
        if ($thinkup_post_share == '1') {
            thinkup_input_sharecode();
        }
    } else {
        if ($_thinkup_meta_share == 'option2') {
            thinkup_input_sharecode();
        }
    }
}
function thinkup_input_share()
{
    global $thinkup_post_share;
    if ($thinkup_post_share == '1') {
        thinkup_input_sharecode();
    }
}