'; echo __('Only this user can access the settings:', c_al2fb_text_domain); echo ' ' . $userdata->user_login . ' (id=' . $shared_user_ID . ')

'; echo ''; return; } // Get settings $charset = get_bloginfo('charset'); if (is_multisite()) { global $blog_id; $config_url = get_admin_url($blog_id, 'tools.php?page=' . plugin_basename($al2fb->main_file), 'admin'); } else $config_url = admin_url('tools.php?page=' . plugin_basename($al2fb->main_file)); if (isset($_REQUEST['debug'])) $config_url .= '&debug=1'; if (isset($_REQUEST['tabs'])) $config_url .= '&tabs=0'; if (isset($_REQUEST['multiple'])) { $count = (isset($_REQUEST['sites']) ? $_REQUEST['sites'] : 1); if (WPAL2Int::Set_multiple($_REQUEST['multiple'], $count)) echo '

Code accepted (' . $count . ')

'; } // Decode picture type $pic_type = get_user_meta($user_ID, c_al2fb_meta_picture_type, true); $pic_wordpress = ($pic_type == 'wordpress' ? ' checked' : ''); $pic_media = ($pic_type == 'media' ? ' checked' : ''); $pic_featured = ($pic_type == 'featured' ? ' checked' : ''); $pic_facebook = ($pic_type == 'facebook' ? ' checked' : ''); $pic_post = ($pic_type == 'post' ? ' checked' : ''); $pic_avatar = ($pic_type == 'avatar' ? ' checked' : ''); $pic_userphoto = ($pic_type == 'userphoto' ? ' checked' : ''); $pic_custom = ($pic_type == 'custom' ? ' checked' : ''); $pic_size = get_user_meta($user_ID, c_al2fb_meta_picture_size, true); $pic_thumbnail = ($pic_size == 'thumbnail' ? ' checked' : ''); $pic_medium = ($pic_size == 'medium' || empty($pic_size) ? ' checked' : ''); $pic_large = ($pic_size == 'large' ? ' checked' : ''); // Decode privacy $priv_type = get_user_meta($user_ID, c_al2fb_meta_privacy, true); $priv_none = ($priv_type == '' ? ' checked' : ''); $priv_everyone = ($priv_type == 'EVERYONE' ? ' checked' : ''); $priv_friends = ($priv_type == 'ALL_FRIENDS' ? ' checked' : ''); $priv_network = ($priv_type == 'NETWORKS_FRIENDS' ? ' checked' : ''); $priv_fof = ($priv_type == 'FRIENDS_OF_FRIENDS' ? ' checked' : ''); $priv_me = ($priv_type == 'SELF' ? ' checked' : ''); $priv_some = ($priv_type == 'SOME_FRIENDS' ? ' checked' : ''); if (!current_theme_supports('post-thumbnails') || !function_exists('get_post_thumbnail_id') || !function_exists('wp_get_attachment_image_src')) $pic_featured .= ' disabled'; if (!in_array('user-photo/user-photo.php', get_option('active_plugins'))) $pic_userphoto .= ' disabled'; // Like button $like_layout = get_user_meta($user_ID, c_al2fb_meta_like_layout, true); $like_layout_standard = ($like_layout == 'standard' ? ' checked' : ''); $like_layout_button = ($like_layout == 'button_count' ? ' checked' : ''); $like_layout_box = ($like_layout == 'box_count' ? ' checked' : ''); $like_action = get_user_meta($user_ID, c_al2fb_meta_like_action, true); $like_action_like = ($like_action == 'like' ? ' checked' : ''); $like_action_recommend = ($like_action == 'recommend' ? ' checked' : ''); $like_font = get_user_meta($user_ID, c_al2fb_meta_like_font, true); $like_color = get_user_meta($user_ID, c_al2fb_meta_like_colorscheme, true); $like_color_light = ($like_color == 'light' ? ' checked' : ''); $like_color_dark = ($like_color == 'dark' ? ' checked' : ''); // Subscribe button $subscribe_layout = get_user_meta($user_ID, c_al2fb_meta_subscribe_layout, true); // Comment link option $comments_nolink = get_user_meta($user_ID, c_al2fb_meta_fb_comments_nolink, true); if (empty($comments_nolink)) $comments_nolink = 'author'; else if ($comments_nolink == 'on') $comments_nolink = 'none'; // Linking to posts on group pages doesn't work if ($comments_nolink == 'link' && get_user_meta($user_ID, c_al2fb_meta_use_groups, true) && get_user_meta($user_ID, c_al2fb_meta_group, true)) $comments_nolink = 'author'; $comments_nolink_none = ($comments_nolink == 'none' ? ' checked' : ''); $comments_nolink_author = ($comments_nolink == 'author' ? ' checked' : ''); $comments_nolink_link = ($comments_nolink == 'link' ? ' checked' : ''); if (get_user_meta($user_ID, c_al2fb_meta_use_groups, true) && get_user_meta($user_ID, c_al2fb_meta_group, true)) $comments_nolink_link = ' disabled'; // Face pile $pile_size = get_user_meta($user_ID, c_al2fb_meta_pile_size, true); // Check connectivity if (!ini_get('allow_url_fopen') && !function_exists('curl_init')) echo '

' . __('Your server may not allow external connections', c_al2fb_text_domain) . '

'; al2fb_render_debug_info($al2fb); echo '
'; al2fb_render_resources($al2fb); echo '
'; ?>

Is_authorized($user_ID)) { if (get_option(c_al2fb_option_version) != 10) echo '' . __('Plugin is authorized', c_al2fb_text_domain) . '
'; // Get page name try { $page_ids = WPAL2Int::Get_page_ids($user_ID); foreach ($page_ids as $page_id) { $info = WPAL2Int::Get_fb_info_cached($user_ID, empty($page_id) ? 'me' : $page_id); _e('Links will be added to', c_al2fb_text_domain); echo ' ' . htmlspecialchars($info->name, ENT_QUOTES, $charset); if (!empty($info->category)) echo ' - ' . htmlspecialchars($info->category, ENT_QUOTES, $charset); echo '
'; if ($al2fb->debug) echo print_r($info, true) . '
'; } } catch (Exception $e) { echo '

' . htmlspecialchars($e->getMessage(), ENT_QUOTES, $charset) . '

'; } } ?>

Flattr this

Site URL:', c_al2fb_text_domain); ?>
Apps\' and then to \'Create New App\'', c_al2fb_text_domain); ?>

Is_authorized($user_ID)) try { $app = WPAL2Int::Get_fb_application_cached($user_ID); ?>

' . htmlspecialchars($e->getMessage(), ENT_QUOTES, $charset) . '

'; } if (current_user_can('manage_options')) { ?>
' . get_user_meta($user_ID, c_al2fb_meta_token_time, true) . ''; ?>
name, ENT_QUOTES, $charset); ?>
/>


>
>
>
>
>
>
debug) { ?> >
>


>
>
>


Is_authorized($user_ID)) { try { if (!get_user_meta($user_ID, c_al2fb_meta_use_groups, true) || !get_user_meta($user_ID, c_al2fb_meta_group, true) || WPAL2Int::Check_multiple()) { // Get personal page try { $me = WPAL2Int::Get_fb_me_cached($user_ID, true); } catch (Exception $e) { if ($al2fb->debug) print_r($e); $me = null; } // Get other pages try { $pages = WPAL2Int::Get_fb_pages_cached($user_ID); } catch (Exception $e) { if ($al2fb->debug) print_r($e); $pages = null; } $selected_page = get_user_meta($user_ID, c_al2fb_meta_page, true); $extra_page = get_user_meta($user_ID, c_al2fb_meta_page_extra, true); if (empty($extra_page) || !is_array($extra_page)) $extra_page = array(); ?>

'; echo ''; } if ($pages && $pages->data) foreach ($pages->data as $page) { if (empty($page->name)) $page->name = '?'; echo ''; echo ''; } echo '
'; if ($me) { echo '
' . htmlspecialchars($me->name, ENT_QUOTES, $charset) . ' (' . __('Personal', c_al2fb_text_domain) . ')
id, $extra_page) ? ' checked="checked"' : '') . ' name="' . c_al2fb_meta_page_extra . '[]" value="' . $page->id . '">' . htmlspecialchars($page->name, ENT_QUOTES, $charset) . ' (' . htmlspecialchars($page->category, ENT_QUOTES, $charset) . ')
'; } else { echo ''; _e('This option is only available in', c_al2fb_text_domain); echo ' Add Link to Facebook Pro'; echo ''; $mu = WPAL2Int::Get_multiple_url(); if ($mu) echo '

' . htmlspecialchars($mu, ENT_QUOTES, $charset) . '

'; } ?>

'; // Get groups try { $groups = WPAL2Int::Get_fb_groups_cached($user_ID); } catch (Exception $e) { if ($al2fb->debug) print_r($e); $groups = null; } $selected_group = get_user_meta($user_ID, c_al2fb_meta_group, true); $extra_group = get_user_meta($user_ID, c_al2fb_meta_group_extra, true); if (empty($extra_group) || !is_array($extra_group)) $extra_group = array(); ?> '; echo ''; } echo '
/>
 ' . __('Disable the links API to use this feature', c_al2fb_text_domain) . '
'; if ($groups && $groups->data) foreach ($groups->data as $group) { if (empty($group->name)) $group->name = '?'; echo '
id, $extra_group) ? ' checked="checked"' : '') . ' name="' . c_al2fb_meta_group_extra . '[]" value="' . $group->id . '">' . htmlspecialchars($group->name, ENT_QUOTES, $charset) . '
'; } else { echo ''; _e('This option is only available in', c_al2fb_text_domain); echo ' Add Link to Facebook Pro'; echo ''; $mu = WPAL2Int::Get_multiple_url(); if ($mu) echo '

' . htmlspecialchars($mu, ENT_QUOTES, $charset) . '

'; } ?>

Facebook will not allow adding to friends walls from February 6th, 2013 anymore

' . __('Disable the links API to use this feature', c_al2fb_text_domain) . '

'; // Get friends try { $friends = WPAL2Int::Get_fb_friends_cached($user_ID); } catch (Exception $e) { if ($al2fb->debug) print_r($e); $friends = null; } $extra_friend = get_user_meta($user_ID, c_al2fb_meta_friend_extra, true); if (empty($extra_friend) || !is_array($extra_friend)) $extra_friend = array(); echo ''; if ($friends && $friends->data) { usort($friends->data, 'al2fb_compare_friends'); foreach ($friends->data as $friend) { if (empty($friend->name)) $friend->name = '?'; echo ''; echo ''; } } echo '
id, $extra_friend) ? ' checked="checked"' : '') . ' name="' . c_al2fb_meta_friend_extra . '[]" value="' . $friend->id . '">' . htmlspecialchars($friend->name, ENT_QUOTES, $charset) . '
'; } else { echo ''; _e('This option is only available in', c_al2fb_text_domain); echo ' Add Link to Facebook Pro'; echo ''; } ?>

' . htmlspecialchars($e->getMessage(), ENT_QUOTES, $charset) . '

'; } } else { ?>

/>
""
/>
/>

/>
/> Experimental!
/>

>
>
>
>
>
>
>

/>

/>
/>
/>
>

>
> ()

/>
/>

/>
>
>
>
>
>
/>
/>
/>

/>
/>

/>



/>

/>
/>

/>
/>
/>
/>
/>
/>
>
>

/>


/>
/>
/>
/>
/>
/>


 ()
 = 
/>


/>
/>


/>



/>

'; $first = true; $post_types = get_post_types('', 'names'); foreach ($post_types as $post_type) { if ($first) $first = false; else echo ','; echo htmlspecialchars($post_type, ENT_QUOTES, $charset); } echo ''; ?>






/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>

/>

/>
/>
/>
/>



Flattr this




the FAQ ?', c_al2fb_text_domain); $msg = str_replace('[FAQ]', 'http://wordpress.org/extend/plugins/add-link-to-facebook/faq/', $msg); echo '
' . $msg . ''; ?>

name == $b->name) { return 0; } return ($a->name < $b->name ? -1 : 1); } ?>