Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 4 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 26 additions and 36 deletions.
  1. +26 −36 templates/page.tpl.php
View
62 templates/page.tpl.php
@@ -1,9 +1,7 @@
<?php
-// $Id$
-
/**
- * @file page.tpl.php
- * Main page template file for the dynamo theme.
+ * @file
+ * Main page template file for the Copenhagen theme.
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -12,19 +10,15 @@
Dynamo!
-->
<head>
-<!--<meta http-equiv="X-UA-Compatible" content="IE=8; chrome=1" />-->
+ <meta http-equiv="X-UA-Compatible" content="IE=9; chrome=1" />
<title><?php print $head_title; ?></title>
<?php print $head; ?>
<?php print $styles; ?>
<?php print $scripts; ?>
</head>
-<body class="<?php print $body_classes; ?><?php if (!empty($admin)) print ' '.admin; ?>">
-<?php
-/*adds support for for the admin module*/
- if (!empty($admin)) print $admin;
-?>
+<body class="<?php print $body_classes; ?>">
-<?php if ($help OR $messages) { ?>
+<?php if ($help || $messages): ?>
<div id="drupal-messages">
<div id="messages-hide">
<a href="#"><?php print t('hide'); ?></a>
@@ -32,9 +26,8 @@
<?php print $help ?>
<?php print $messages ?>
-
- </div>
-<?php } ?>
+ </div>
+<?php endif; ?>
<div id="container" class="clearfix">
@@ -49,7 +42,7 @@
<div id="pageheader">
<div id="pageheader-inner">
-
+
<div id="top" class="clearfix">
<div id="search" class="left">
@@ -58,60 +51,58 @@
<div id="account" class="left">
<?php print $account; ?>
- </div>
+ </div>
</div>
<div id="navigation">
<div id="navigation-inner">
- <?php if ($primary_links){ ?>
+ <?php if ($primary_links): ?>
<?php print theme('links', $primary_links); ?>
- <?php } ?>
+ <?php endif; ?>
</div>
</div>
<?php print $breadcrumb; ?>
</div>
</div>
-
+
<div id="pagebody" class="clearfix">
<div id="pagebody-inner" class="clearfix">
- <?php if ($left) { ?>
+ <?php if ($left): ?>
<div id="content-left">
<?php print $left; ?>
</div>
- <?php } ?>
+ <?php endif; ?>
<div id="content">
<div id="content-inner">
<?php
- /*if were in the user pages add the tabs in the top*/
- if (arg(0) == 'user' && is_numeric(arg(1)) && $tabs){
+ // If were in the user pages add the tabs in the top.
+ if (arg(0) == 'user' && is_numeric(arg(1)) && $tabs):
print '<div class="tabs-user">' . $tabs . '</div>';
- }
+ endif;
?>
<div id="content-main">
<?php print $content; ?>
</div>
-
- <?php
- if (arg(0) != 'user' && $tabs){
- print '<div class="tabs">' . $tabs . '</div>';
- }
- ?>
+
+ <?php if (arg(0) != 'user' && $tabs):
+ print '<div class="tabs">' . $tabs . '</div>';
+ endif; ?>
</div>
</div>
- <?php if ($right) { ?>
+ <?php if ($right): ?>
<div id="content-right">
<?php print $right; ?>
</div>
- <?php } ?>
+ <?php endif; ?>
</div>
</div>
@@ -128,14 +119,14 @@
</div>
<div class="left">
- <?php print $footer_three; ?>
+ <?php print $footer_three; ?>
</div>
<div class="left">
- <?php print $footer_four; ?>
+ <?php print $footer_four; ?>
<?php print $footer; ?>
</div>
-
+
</div>
</div>
@@ -151,4 +142,3 @@
<?php print $closure; ?>
</body>
</html>
-

No commit comments for this range

Something went wrong with that request. Please try again.