Skip to content
Snippets Groups Projects
Commit 2a4afa08 authored by Tim Steiner's avatar Tim Steiner
Browse files

Add an option to use the <base> tag (turned on by default).

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@98 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent e2cf5306
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,10 @@ $t->head .= PHP_EOL ...@@ -40,6 +40,10 @@ $t->head .= PHP_EOL
. $scripts . PHP_EOL . $scripts . PHP_EOL
; ;
if (theme_get_setting('use_base')) {
$t->head .= '<base href="' . url('<front>', array('absolute' => TRUE)) . '" />' . PHP_EOL;
}
$t->doctitle = '<title>'. unl_wdn_head_title() .'</title>'; $t->doctitle = '<title>'. unl_wdn_head_title() .'</title>';
$html = $t->toHtml(); $html = $t->toHtml();
......
...@@ -8,4 +8,11 @@ function unl_wdn_form_system_theme_settings_alter(&$form, &$form_state) ...@@ -8,4 +8,11 @@ function unl_wdn_form_system_theme_settings_alter(&$form, &$form_state)
'#default_value' => theme_get_setting('zen_forms'), '#default_value' => theme_get_setting('zen_forms'),
'#description' => t('Transforms all forms into the list-based zen forms.') '#description' => t('Transforms all forms into the list-based zen forms.')
); );
$form['use_base'] = array(
'#type' => 'checkbox',
'#title' => t('Use HTML Base Tag in Head'),
'#default_value' => theme_get_setting('use_base'),
'#description' => t('Adds an HTML Base tag to the &lt;head&gt; section with href="' . url('<front>', array('absolute' => TRUE)) . '"')
);
} }
...@@ -14,3 +14,4 @@ regions[optionalfooter] = Optional Footer ...@@ -14,3 +14,4 @@ regions[optionalfooter] = Optional Footer
regions[footercontent] = Footer Content regions[footercontent] = Footer Content
plugins[panels][layouts] = layouts plugins[panels][layouts] = layouts
settings[zen_forms] = 0 settings[zen_forms] = 0
settings[use_base] = 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment