diff --git a/at_core/inc/forms/settings.extensions.inc b/at_core/inc/forms/settings.extensions.inc
old mode 100755
new mode 100644
index 4f45a8e..239598a
--- a/at_core/inc/forms/settings.extensions.inc
+++ b/at_core/inc/forms/settings.extensions.inc
@@ -113,6 +113,7 @@ $form['at-settings']['extend']['enable']['enable_markup_overides'] = array(
Accessibility settings - set the skip navigation target ID, use extra fieldsets in the advanced search form
Add rel=author to user names
Add or remove CSS classes for pages, nodes, blocks, comments, menus and item lists
+ Show or hide display of field label colons
'),
'#default_value' => at_get_setting('enable_markup_overides'),
diff --git a/at_core/inc/forms/settings.modifyoutput.inc b/at_core/inc/forms/settings.modifyoutput.inc
old mode 100755
new mode 100644
index 7ddd8c9..369ebfc
--- a/at_core/inc/forms/settings.modifyoutput.inc
+++ b/at_core/inc/forms/settings.modifyoutput.inc
@@ -177,6 +177,13 @@ $form['at']['modify-output']['hide-remove']['unset_menu_titles'] = array(
'#default_value' => at_get_setting('unset_menu_titles'),
'#description' => t('Checking this setting will remove all menu link titles (tool tips). This only works for menu blocks.'),
);
+// Hide field label colons
+$form['at']['modify-output']['hide-remove']['field_label_hide_colon'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Hide field label colons'),
+ '#default_value' => at_get_setting('field_label_hide_colon'),
+ '#description' => t('Checking this setting will remove the colon after the field label.'),
+);
// Accessibility
$form['at']['modify-output']['a11y'] = array(
diff --git a/at_core/inc/theme.inc b/at_core/inc/theme.inc
old mode 100755
new mode 100644
index 90ad5d7..63531ee
--- a/at_core/inc/theme.inc
+++ b/at_core/inc/theme.inc
@@ -508,7 +508,11 @@ function adaptivetheme_field($vars) {
// Render the label, if it's not hidden.
if (!$vars['label_hidden']) {
- $output .= '' . $vars['label'] . ':
';
+ $colon = ':';
+ if (at_get_setting('field_label_hide_colon')) {
+ $colon = '';
+ }
+ $output .= '' . $vars['label'] . $colon . '
';
}
// Render the items.
@@ -536,7 +540,11 @@ function adaptivetheme_field__taxonomy_term_reference($vars) {
// Render the label, if it's not hidden.
if (!$vars['label_hidden']) {
- $output .= '' . $vars['label'] . ':
';
+ $colon = ':';
+ if (at_get_setting('field_label_hide_colon')) {
+ $colon = '';
+ }
+ $output .= '' . $vars['label'] . $colon . '
';
}
// Render the items.