'. implode(' ยป ', $breadcrumb) .'';
}
}
/**
* Allow themable wrapping of all comments.
*/
function framework_comment_wrapper($content, $node) {
if (!$content || $node->type == 'forum') {
return '';
}
else {
return '';
}
}
/**
* Allow theming of publishing information.
*/
function framework_node_submitted($node) {
return t('Published by !username on ',
array(
'!username' => theme('username', $node),
'!datetime' => format_date($node->created),
'!fulldatetime' => format_date($node->created, 'custom', 'Y-m-d\TH:i:sZ')
));
}
function framework_comment_submitted($comment) {
return t('!username | ',
array(
'!username' => theme('username', $comment),
'!datetime' => format_date($comment->timestamp),
'!fulldatetime' => format_date($comment->created, 'custom', 'Y-m-d\TH:i:sZ')
));
}
/**
* Override or insert variables into the block templates.
*
* @param $vars
* An array of variables to pass to the theme template.
* @param $hook
* The name of the template being rendered ("block" in this case.)
*/
function framework_preprocess_block(&$vars, $hook) {
$block = $vars['block'];
// Drupal 7 uses a $content variable instead of $block->content.
$vars['content'] = $block->content;
// Drupal 7 should use a $title variable instead of $block->subject.
$vars['title'] = $block->subject;
// Special classes for blocks.
$vars['classes_array'][] = 'block-' . $block->module;
$vars['classes_array'][] = 'region-' . $vars['block_zebra'];
$vars['classes_array'][] = $vars['zebra'];
$vars['classes_array'][] = 'region-count-' . $vars['block_id'];
$vars['classes_array'][] = 'count-' . $vars['id'];
// Create the block ID.
$vars['block_html_id'] = 'block-' . $block->module . '-' . $block->delta;
$vars['edit_links_array'] = array();
if (user_access('administer blocks')) {
include_once './' . drupal_get_path('theme', 'framework') . '/template.block-editing.inc';
framework_preprocess_block_editing($vars, $hook);
$vars['classes_array'][] = 'with-block-editing';
}
$vars['edit_links'] = !empty($vars['edit_links_array']) ? '
' . implode(' ', $vars['edit_links_array']) . '
' : '';
}