Skip to content
Snippets Groups Projects
Commit c97e7fe1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Small improvements to help people getting started with the xtemplate
  theme.
parent 73f476a6
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
class Theme_xtemplate extends BaseTheme { class Theme_xtemplate extends BaseTheme {
var $primary_links = "edit me";
var $secondary_links = "edit me";
var $message = "edit me";
function system($field) { function system($field) {
$system["name"] = "xtemplate"; $system["name"] = "xtemplate";
$system["description"] = "a template driven theme"; $system["description"] = "a template driven theme";
...@@ -70,12 +66,10 @@ function header($title = "") { ...@@ -70,12 +66,10 @@ function header($title = "") {
$this->template->assign(array( $this->template->assign(array(
"title" => ($title ? $title." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")), "title" => ($title ? $title." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")),
"head" => theme_head(), "head" => theme_head(),
"primary" => $this->primary_links, "links" => $this->links(link_page())
"secondary" => $this->secondary_links
)); ));
if (!arg(0)) { if (!arg(0)) {
$this->template->assign("message", $this->message);
$this->template->parse("header.message"); $this->template->parse("header.message");
} }
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
<tr> <tr>
<td colspan="2" class="menu"> <td colspan="2" class="menu">
<span id="links"> <span id="links">
<div id="secondary">{secondary}</div> <div id="secondary">secondary links</div>
<div id="primary">{primary}</div> <div id="primary">primary links<br />{links}</div>
</span> </span>
<span id="logo"><a href="index.php"><img src="themes/xtemplate/images/druplicon.gif" alt="" /></a></span> <span id="logo"><a href="index.php"><img src="themes/xtemplate/images/druplicon.gif" alt="" /></a></span>
</td> </td>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<tr> <tr>
<td valign="top" width="100%"> <td valign="top" width="100%">
<!-- BEGIN: message --> <!-- BEGIN: message -->
<div id="message">{message}</div> <div id="message">Site description or mission statement - edit this text along with the primary and secondary links in the file 'themes/xtemplate/xtemplate.xtmpl'.</div>
<!-- END: message --> <!-- END: message -->
<div id="main"> <div id="main">
<!-- END: header --> <!-- END: header -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment