function theme_simplenews_block in Simplenews 5
Simplenews themed block Access restrictions have been applied. $block contains all available data. See: _simplenews_block()
1 theme call to theme_simplenews_block()
- simplenews_block in ./
simplenews.module - Implementation of hook_block().
File
- ./
simplenews.module, line 745
Code
function theme_simplenews_block($block) {
$output = '';
if (variable_get('simplenews_block_m_status_' . $block['tid'], 1) && isset($block['message'])) {
$output .= "<p>" . $block['message'] . "</p>\n";
}
if (variable_get('simplenews_block_f_' . $block['tid'], 1)) {
$output .= $block['form'];
}
elseif (isset($block['subscription-link'])) {
$output .= "<p>" . $block['subscription-link'] . "</p>\n";
}
if (variable_get('simplenews_block_l_' . $block['tid'], 1) && isset($block['newsletter-link'])) {
$output .= '<div class="issues-link">' . $block['newsletter-link'] . "</div>\n";
}
if (variable_get('simplenews_block_i_status_' . $block['tid'], 0) && isset($block['itemlist'])) {
$output .= '<div class="issues-list">' . $block['itemlist'] . "</div>\n";
}
if (variable_get('simplenews_block_r_' . $block['tid'], 1)) {
$output .= $block['rssfeed'] . "\n";
}
return $output;
}