diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-05 16:34:07 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-05 16:34:07 +0000 |
commit | 5bb6927e18d4496395dea37cc5b14bb15cb42cad (patch) | |
tree | b3142f8a63bb7defa33ddca8cb6dd23d0c306b22 /themes | |
parent | c99dd5c2064df28932f13e5182676f281a699d48 (diff) | |
download | brdo-5bb6927e18d4496395dea37cc5b14bb15cb42cad.tar.gz brdo-5bb6927e18d4496395dea37cc5b14bb15cb42cad.tar.bz2 |
#196410 report by daniel.soneira, patch by myself, tested by Freso: several fixes to url() generation and path aliasing, fixing path aliases for node paths and front page links in themes
Diffstat (limited to 'themes')
-rw-r--r-- | themes/bluemarine/page.tpl.php | 4 | ||||
-rw-r--r-- | themes/chameleon/chameleon.theme | 2 | ||||
-rw-r--r-- | themes/garland/page.tpl.php | 2 | ||||
-rw-r--r-- | themes/pushbutton/page.tpl.php | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/themes/bluemarine/page.tpl.php b/themes/bluemarine/page.tpl.php index a75fa744a..acd717bf7 100644 --- a/themes/bluemarine/page.tpl.php +++ b/themes/bluemarine/page.tpl.php @@ -16,8 +16,8 @@ <table border="0" cellpadding="0" cellspacing="0" id="header"> <tr> <td id="logo"> - <?php if ($logo) { ?><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?> - <?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?> + <?php if ($logo) { ?><a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?> + <?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?> <?php if ($site_slogan) { ?><div class='site-slogan'><?php print $site_slogan ?></div><?php } ?> </td> <td id="menu"> diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index 54799ea3e..247c87a99 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -38,7 +38,7 @@ function chameleon_page($content, $show_blocks = TRUE, $show_messages = TRUE) { $output .= " <div id=\"header\">"; if ($logo = theme_get_setting('logo')) { - $output .= " <a href=\"". base_path() ."\" title=\"". t('Home') ."\"><img src=\"$logo\" alt=\"". t('Home') ."\" /></a>"; + $output .= " <a href=\"". url() ."\" title=\"". t('Home') ."\"><img src=\"$logo\" alt=\"". t('Home') ."\" /></a>"; } if (theme_get_setting('toggle_name')) { $output .= " <h1 class=\"site-name title\">". l(variable_get('site_name', 'drupal'), "") ."</h1>"; diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php index 66fa4a3f2..ec861fa41 100644 --- a/themes/garland/page.tpl.php +++ b/themes/garland/page.tpl.php @@ -38,7 +38,7 @@ $site_html = implode(' ', $site_fields); if ($logo || $site_title) { - print '<h1><a href="'. check_url($base_path) .'" title="'. $site_title .'">'; + print '<h1><a href="'. check_url($front_page) .'" title="'. $site_title .'">'; if ($logo) { print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />'; } diff --git a/themes/pushbutton/page.tpl.php b/themes/pushbutton/page.tpl.php index c2a07d1ed..8281a4823 100644 --- a/themes/pushbutton/page.tpl.php +++ b/themes/pushbutton/page.tpl.php @@ -18,13 +18,13 @@ <tr> <td id="home" width="10%"> <?php if ($logo) : ?> - <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print($logo) ?>" alt="<?php print t('Home') ?>" border="0" /></a> + <a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><img src="<?php print($logo) ?>" alt="<?php print t('Home') ?>" border="0" /></a> <?php endif; ?> </td> <td id="site-info" width="20%"> <?php if ($site_name) : ?> - <div class='site-name'><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print($site_name) ?></a></div> + <div class='site-name'><a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><?php print($site_name) ?></a></div> <?php endif;?> <?php if ($site_slogan) : ?> <div class='site-slogan'><?php print($site_slogan) ?></div> |