diff --git a/template.php b/template.php index 829388c..36cea00 100644 --- a/template.php +++ b/template.php @@ -52,3 +52,13 @@ function omega_kickstart_preprocess_field(&$variables) { } $variables['theme_hook_suggestions'][] = 'field__fences_h2__node'; } + +/** + * Override the submitted variable. + */ +function omega_kickstart_preprocess_node(&$variables) { + $variables['submitted'] = $variables['date'] . ' - ' . $variables['name']; + if ($variables['type'] == 'blog_post') { + $variables['submitted'] = t('By') . ' ' . $variables['name'] . ', ' . $variables['date']; + } +} diff --git a/templates/node--blog_post.tpl.php b/templates/node--blog_post.tpl.php index b1199d8..96ec32f 100644 --- a/templates/node--blog_post.tpl.php +++ b/templates/node--blog_post.tpl.php @@ -8,7 +8,9 @@ - +