function theme_fb_autopost_facebook_profile in Facebook Autopost 7
Theme implementation for the fb_autopost_facebook_profile render element.
1 theme call to theme_fb_autopost_facebook_profile()
- fb_autopost_global_settings in ./
fb_autopost.admin.inc - FAPI system admin form.
File
- ./
fb_autopost.theme.inc, line 11 - Theme implementation file for Facebook Autopost
Code
function theme_fb_autopost_facebook_profile($variables) {
$output = array(
'#type' => 'container',
'#attributes' => array(
'class' => array(
'fb-profile',
),
),
'#attached' => array(
'css' => array(
drupal_get_path('module', 'fb_autopost') . '/fb_autopost.css',
),
'js' => array(
drupal_get_path('module', 'fb_autopost') . '/fb_autopost.js',
),
),
'image' => array(
'#theme' => 'image',
'#path' => $variables['fbprofile']['#fbprofile_picture']['data']['url'],
'#title' => t('Facbeook picture'),
'#alt' => t('Facbeook picture'),
'#width' => 50,
'#height' => 50,
),
'data' => array(
'#type' => 'container',
'#attributes' => array(
'class' => array(
'fb-data',
),
),
'link' => array(
'#type' => 'link',
'#title' => $variables['fbprofile']['#fbprofile_name'],
'#href' => $variables['fbprofile']['#fbprofile_link'],
),
'id' => array(
'#type' => 'html_tag',
'#tag' => 'div',
'#value' => t('Profile ID: @profile', array(
'@profile' => $variables['fbprofile']['#fbprofile_id'],
)),
),
'logout' => array(
'#type' => 'link',
'#title' => t('Logout'),
'#href' => $variables['fbprofile']['#fbprofile_logout_url'],
'#id' => 'fb-logout-link',
),
),
);
return drupal_render($output);
}