function theme_follow_links in Follow 5
Same name and namespace in other branches
- 6 follow.module \theme_follow_links()
- 7.2 follow.module \theme_follow_links()
- 7 follow.module \theme_follow_links()
Theme function to output a list of links.
Parameters
$links: An array of follow link objects.
$networks: An array of network names, keys are machine names, values are visible titles.
1 theme call to theme_follow_links()
- _follow_block_content in ./
follow.module - Helper function to build the block content display.
File
- ./
follow.module, line 251 - Allows users to add links to their social network profiles.
Code
function theme_follow_links($variables) {
$links = $variables['links'];
$networks = $variables['networks'];
$output = '<div class="follow-links clearfix">';
foreach ($links as $link) {
$title = isset($link->title) ? $link->title : '';
if (empty($title)) {
$title = $networks[$link->name]['title'];
}
$output .= theme('follow_link', array(
'link' => $link,
'title' => $title,
));
}
$output .= '</div>';
return $output;
}