summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-04-27 07:42:54 +0000
committerDries Buytaert <dries@buytaert.net>2007-04-27 07:42:54 +0000
commit29055d34d6f0ceee253a4122bb6c9dae6cb53b2b (patch)
tree35f015c5d507f9105e8b0e6ee66e8f33f447d169 /modules/system
parent80ab60d39ee0f2de0965d9c23d274cbf1dc0019a (diff)
downloadbrdo-29055d34d6f0ceee253a4122bb6c9dae6cb53b2b.tar.gz
brdo-29055d34d6f0ceee253a4122bb6c9dae6cb53b2b.tar.bz2
- Patch #137236 by merlinofchaos: provide a way to secure the theme variables system.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/block.tpl.php8
-rw-r--r--modules/system/box.tpl.php8
-rw-r--r--modules/system/page.tpl.php60
3 files changed, 76 insertions, 0 deletions
diff --git a/modules/system/block.tpl.php b/modules/system/block.tpl.php
new file mode 100644
index 000000000..8ba204d40
--- /dev/null
+++ b/modules/system/block.tpl.php
@@ -0,0 +1,8 @@
+<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>">
+
+<?php if ($block->subject): ?>
+ <h2><?php print $block->subject ?></h2>
+<?php endif;?>
+
+ <div class="content"><?php print $block->content ?></div>
+</div>
diff --git a/modules/system/box.tpl.php b/modules/system/box.tpl.php
new file mode 100644
index 000000000..84d810cf0
--- /dev/null
+++ b/modules/system/box.tpl.php
@@ -0,0 +1,8 @@
+<div class="box">
+
+<?php if ($title): ?>
+ <h2><?php print $title ?></h2>
+<?php endif; ?>
+
+ <div class="content"><?php print $content ?></div>
+</div>
diff --git a/modules/system/page.tpl.php b/modules/system/page.tpl.php
new file mode 100644
index 000000000..fce977e5f
--- /dev/null
+++ b/modules/system/page.tpl.php
@@ -0,0 +1,60 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>">
+
+<head>
+ <title><?php print $head_title ?></title>
+ <?php print $head ?>
+ <?php print $styles ?>
+ <?php print $scripts ?>
+ <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
+</head>
+
+<body>
+
+<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 ($site_slogan) { ?><div class='site-slogan'><?php print $site_slogan ?></div><?php } ?>
+ </td>
+ <td id="menu">
+ <?php if (isset($secondary_links)) { ?><?php print theme('links', $secondary_links, array('class' =>'links', 'id' => 'subnavlist')) ?><?php } ?>
+ <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')) ?><?php } ?>
+ <?php print $search_box ?>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><div><?php print $header ?></div></td>
+ </tr>
+</table>
+
+<table border="0" cellpadding="0" cellspacing="0" id="content">
+ <tr>
+ <?php if ($sidebar_left) { ?><td id="sidebar-left">
+ <?php print $sidebar_left ?>
+ </td><?php } ?>
+ <td valign="top">
+ <?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
+ <div id="main">
+ <?php print $breadcrumb ?>
+ <h1 class="title"><?php print $title ?></h1>
+ <div class="tabs"><?php print $tabs ?></div>
+ <?php print $help ?>
+ <?php print $messages ?>
+ <?php print $content; ?>
+ <?php print $feed_icons; ?>
+ </div>
+ </td>
+ <?php if ($sidebar_right) { ?><td id="sidebar-right">
+ <?php print $sidebar_right ?>
+ </td><?php } ?>
+ </tr>
+</table>
+
+<div id="footer">
+ <?php print $footer_message ?>
+</div>
+<?php print $closure ?>
+</body>
+</html>