From 3224641982923dbc60e7c664558d34c6115cd894 Mon Sep 17 00:00:00 2001 From: Lennart Melzer Date: Fri, 18 Oct 2013 10:15:49 +0200 Subject: [PATCH 1/2] Remove trailing space at breadcrumb_classes setting --- theme-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theme-settings.php b/theme-settings.php index 7145a21..156fc15 100644 --- a/theme-settings.php +++ b/theme-settings.php @@ -45,7 +45,7 @@ function open_framework_form_system_theme_settings_alter(&$form, &$form_state) { '#default_value' => theme_get_setting('breadcrumb_classes'), '#options' => array( '' => t('Hide breadcrumbs - Default'), - 'show-breadcrumb ' => t('Show breadcrumbs'), + 'show-breadcrumb' => t('Show breadcrumbs'), ), ); @@ -174,4 +174,4 @@ function open_framework_settings_validate($form, &$form_state) { form_set_error('body_bg_upload', t('The background image could not be uploaded.')); } } -} \ No newline at end of file +} From d4a858e24bcd4ed9cfb114f2b1d7ddc26b3feefd Mon Sep 17 00:00:00 2001 From: Lennart Melzer Date: Fri, 18 Oct 2013 10:16:40 +0200 Subject: [PATCH 2/2] Remove trailing space from $show_breadcrumb option comparison --- template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template.php b/template.php index 66af672..b335138 100644 --- a/template.php +++ b/template.php @@ -544,7 +544,7 @@ function open_framework_breadcrumb(&$variables) { $output = ''; $breadcrumb = $variables['breadcrumb']; $show_breadcrumb = theme_get_setting('breadcrumb_classes'); - if ($show_breadcrumb == 'show-breadcrumb ') { + if ($show_breadcrumb == 'show-breadcrumb') { if (!empty($breadcrumb)) { // Provide a navigational heading to give context for breadcrumb links to // screen-reader users. Make the heading invisible with .element-invisible. @@ -556,4 +556,4 @@ function open_framework_breadcrumb(&$variables) { } } return $output; -} \ No newline at end of file +}