Created
April 23, 2012 17:51
-
-
Save jhedstrom/2472670 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_process_zone(). | |
*/ | |
function streetroots_process_zone(&$vars) { | |
if ($vars['elements']['#zone'] == 'content') { | |
$vars['breadcrumb'] = FALSE; | |
} | |
} | |
/** | |
* Implements hook_process_region(). | |
*/ | |
function streetroots_process_region(&$vars) { | |
if (in_array($vars['elements']['#region'], array('branding_first', 'content'))) { | |
$theme = alpha_get_theme(); | |
switch ($vars['elements']['#region']) { | |
case 'branding_first': | |
$vars['site_name'] = $theme->page['site_name']; | |
$vars['linked_site_name'] = l($vars['site_name'], '<front>', array('attributes' => array('rel' => 'home', 'title' => t('Home')), 'html' => TRUE)); | |
$vars['site_slogan'] = $theme->page['site_slogan']; | |
$vars['site_name_hidden'] = $theme->page['site_name_hidden']; | |
$vars['site_slogan_hidden'] = $theme->page['site_slogan_hidden']; | |
$vars['logo'] = $theme->page['logo']; | |
$vars['logo_img'] = $vars['logo'] ? '<img src="' . $vars['logo'] . '" alt="' . $vars['site_name'] . '" id="logo" />' : ''; | |
$vars['linked_logo_img'] = $vars['logo'] ? l($vars['logo_img'], '<front>', array('attributes' => array('rel' => 'home', 'title' => t($vars['site_name'])), 'html' => TRUE)) : ''; | |
break; | |
case 'content': | |
$vars['breadcrumb'] = $theme->page['breadcrumb']; | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment