Active
Project:
Omega
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2013 at 15:59 UTC
Updated:
20 Mar 2013 at 17:34 UTC
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'];
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
Comment #1
fubhy commentedComment #1.0
fubhy commentedchange function name