From accebe358c1cb4b07e6dba7f9f7776fe3b09d242 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 7 Sep 2003 17:51:50 +0000 Subject: - Commited Moshe's Xtemplate patch (slighty modified). --- themes/xtemplate/xtemplate.css | 6 +++++- themes/xtemplate/xtemplate.theme | 14 +++++++++----- themes/xtemplate/xtemplate.xtmpl | 5 +++-- 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", ""), 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", ""), "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} {head} @@ -15,7 +15,8 @@ - +