summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-07 17:51:50 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-07 17:51:50 +0000
commitaccebe358c1cb4b07e6dba7f9f7776fe3b09d242 (patch)
treeaedea0b45fde87fe713fca8c40697b3706520fe8
parent1cadcafe9ec9e93fb882c8698514f208987739d8 (diff)
downloadbrdo-accebe358c1cb4b07e6dba7f9f7776fe3b09d242.tar.gz
brdo-accebe358c1cb4b07e6dba7f9f7776fe3b09d242.tar.bz2
- Commited Moshe's Xtemplate patch (slighty modified).
-rw-r--r--themes/xtemplate/xtemplate.css6
-rw-r--r--themes/xtemplate/xtemplate.theme14
-rw-r--r--themes/xtemplate/xtemplate.xtmpl5
3 files changed, 17 insertions, 8 deletions
diff --git a/themes/xtemplate/xtemplate.css b/themes/xtemplate/xtemplate.css
index a4b67e201..8a1e3c67a 100644
--- a/themes/xtemplate/xtemplate.css
+++ b/themes/xtemplate/xtemplate.css
@@ -50,8 +50,12 @@ img {
padding: 0.5em 0.5em 0 0.5em;
}
.menu #logo {
- vertical-align: bottom;
+ vertical-align: middle;
border: 0;
+ margin-bottom: .8em;
+ font-weight: bold;
+ font-size: 1.9em;
+ color: #fff;
}
.menu #primary {
font-size: 1.0em;
diff --git a/themes/xtemplate/xtemplate.theme b/themes/xtemplate/xtemplate.theme
index 3df1fee53..283e309ef 100644
--- a/themes/xtemplate/xtemplate.theme
+++ b/themes/xtemplate/xtemplate.theme
@@ -2,11 +2,13 @@
// $Id$
function xtemplate_settings() {
- $output = form_select("Sidebar placement", "xtemplate_sidebar", variable_get("xtemplate_sidebar", "right"), array("none" => t("No sidebars"), "left" => t("Sidebar on the left"), "right" => t("Sidebar on the right"), "both" => t("Sidebar on the left and the right")));
- $output .= form_textarea("Message on front page", "xtemplate_message", variable_get("xtemplate_message", "edit message"), 70, 6, "This text will be displayed on the front page. It can be used to display a mission statement, announcement or site description..");
- $output .= form_textarea("Primary links", "xtemplate_primary_links", variable_get("xtemplate_primary_links", l("edit primary links", "admin/system/themes/xtemplate")), 70, 6, "The primary links.");
- $output .= form_textarea("Secondary links", "xtemplate_secondary_links", variable_get("xtemplate_secondary_links", l("edit secondary links", "admin/system/themes/xtemplate")), 70, 6, "The secondary links.");
- $output .= form_select("Search box", "xtemplate_search_box", variable_get("xtemplate_search_box", 0), array(t("Disabled"), t("Enabled")), "Show a search box in the upper right corner.");
+ $output = form_select(t("Sidebar placement"), "xtemplate_sidebar", variable_get("xtemplate_sidebar", "right"), array("none" => t("No sidebars"), "left" => t("Sidebar on the left"), "right" => t("Sidebar on the right"), "both" => t("Sidebar on the left and the right")));
+ $output .= form_textarea(t("Message on front page"), "xtemplate_message", variable_get("xtemplate_message", "edit message"), 70, 6, t("This text will be displayed on the front page. It can be used to display a mission statement, announcement or site description.."));
+ $output .= form_textfield(t("Stylesheet URL"), "xtemplate_stylesheet", variable_get("xtemplate_stylesheet", "themes/xtemplate/xtemplate.css"), 100, 300, t("The URL for your theme's cascading stylesheet."));
+ $output .= form_textarea(t("Logo"), "xtemplate_logo", variable_get("xtemplate_logo", "<img src=\"themes/xtemplate/images/druplicon.gif\" />"), 70, 4, t("The HTML code for displaying the logo."));
+ $output .= form_textarea(t("Primary links"), "xtemplate_primary_links", variable_get("xtemplate_primary_links", l("edit primary links", "admin/system/themes/xtemplate")), 70, 8, t("The HTML code for the primary links."));
+ $output .= form_textarea(t("Secondary links"), "xtemplate_secondary_links", variable_get("xtemplate_secondary_links", l("edit secondary links", "admin/system/themes/xtemplate")), 70, 8, t("The HTML code for the secondary links."));
+ $output .= form_select(t("Search box"), "xtemplate_search_box", variable_get("xtemplate_search_box", 0), array(t("Disabled"), t("Enabled")), t("Show a search box in the upper right corner."));
return $output;
}
@@ -76,7 +78,9 @@ class Theme_xtemplate extends BaseTheme {
$this->template->assign(array(
"title" => ($title ? $title." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")),
"head" => theme_head(),
+ "stylesheet" => variable_get("xtemplate_stylesheet", "themes/xtemplate/xtemplate.css"),
"onload_attributes" => theme_onload_attribute(),
+ "logo" => variable_get("xtemplate_logo", "<img src=\"themes/xtemplate/images/druplicon.gif\" />"),
"primary_links" => variable_get("xtemplate_primary_links", l("edit primary links", "admin/system/themes/xtemplate")),
"secondary_links" => variable_get("xtemplate_secondary_links", l("edit secondary links", "admin/system/themes/xtemplate"))
));
diff --git a/themes/xtemplate/xtemplate.xtmpl b/themes/xtemplate/xtemplate.xtmpl
index ed1b3a542..7612b3d74 100644
--- a/themes/xtemplate/xtemplate.xtmpl
+++ b/themes/xtemplate/xtemplate.xtmpl
@@ -7,7 +7,7 @@
<title>{title}</title>
{head}
<style type="text/css" media="all">
- @import "themes/xtemplate/xtemplate.css";
+ @import url({stylesheet});
</style>
</head>
@@ -15,7 +15,8 @@
<table border="0" cellpadding="0" cellspacing="0" class="header">
<tr>
- <td class="menu" style="vertical-align: bottom;"><a href="./"><img src="themes/xtemplate/images/druplicon.gif" alt="" title="" /></a></td>
+ <td class="menu" style="vertical-align: bottom;">
+ <a href="./"><div id="logo">{logo}</div></a></td>
<td class="menu" style="text-align: right; vertical-align: middle;">
<div id="secondary">{secondary_links}</div>
<div id="primary">{primary_links}</div>