Notice title suffix

in template.php of omega at line 159 & 161 we have this

$vars['title_prefix'] = $theme->page['title_prefix'];
$vars['title_suffix'] = $theme->page['title_suffix'];

Notice fix

to fix the notice just do a simple control :

if (isset($theme->page['title_prefix'])) $vars['title_prefix'] = $theme->page['title_prefix'];
if (isset($theme->page['title_suffix'])) $vars['title_suffix'] = $theme->page['title_suffix'];

to fix the problem without hacking omega (wainting for the update...) paste the code below in the template.php of your subtheme :

function yourtheme_alpha_process_region(&$vars) {
  if ( $vars['elements']['#region'] === 'content' ) {
    $theme = alpha_get_theme();
    if (isset($theme->page['title_prefix'])) $vars['title_prefix'] = $theme->page['title_prefix'];
    if (isset($theme->page['title_suffix'])) $vars['title_suffix'] = $theme->page['title_suffix'];
  }
}

just hope this will be integrated in the next update ;)

Comments

fubhy’s picture

Version: 7.x-4.0-beta1 » 7.x-3.x-dev
fubhy’s picture

Issue summary: View changes

change function name