function theme_drupagram_likes_data_item in Drupagram 6
Same name and namespace in other branches
- 7 drupagram.theme.inc \theme_drupagram_likes_data_item()
Theme a specific like item.
1 theme call to theme_drupagram_likes_data_item()
- theme_drupagram_likes_data in ./
drupagram.theme.inc - Theme the likes items only
File
- ./
drupagram.theme.inc, line 44 - Gathers all the theme functions
Code
function theme_drupagram_likes_data_item($variables) {
$output = '';
if (isset($variables['username']) && !empty($variables['username'])) {
$output .= '<div class="drupagram-likes-data-username">';
$output .= '<span class="drupagram-likes-data-username-label label">';
$output .= t('Username') . ': ';
$output .= '</span>';
$output .= '<span class="drupagram-likes-data-username-value value">';
$output .= $variables['username'];
$output .= '</span>';
$output .= '</div>';
}
if (isset($variables['profile_picture']) && !empty($variables['profile_picture'])) {
$output .= '<div class="drupagram-likes-data-profile-picture">';
$output .= '<span class="drupagram-likes-data-profile-picture-label label">';
$output .= t('Profile Picture') . ': ';
$output .= '</span>';
$output .= '<span class="drupagram-likes-data-profile-picture-value value">';
$output .= theme('image', array(
'path' => $variables['profile_picture'],
));
$output .= '</span>';
$output .= '</div>';
}
//$variables['id'];
if (isset($variables['full_name']) && !empty($variables['full_name'])) {
$output .= '<div class="drupagram-likes-data-full-name">';
$output .= '<span class="drupagram-likes-data-full-name-label label">';
$output .= t('Full Name') . ': ';
$output .= '</span>';
$output .= '<span class="drupagram-likes-data-full-name-value value">';
$output .= $variables['full_name'];
$output .= '</span>';
$output .= '</div>';
}
return $output;
}