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();
?>
';
}
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) . '
';
}
?>
';
}
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) . '
';
}
?>
' . htmlspecialchars($e->getMessage(), ENT_QUOTES, $charset) . '