summaryrefslogtreecommitdiff
path: root/themes/garland
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-04 03:57:19 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-04 03:57:19 +0000
commit37b78e02594e95ac059a69fe47ee62bf24ce5db5 (patch)
tree25c2d9222d30847680ddf664a1a8565868163408 /themes/garland
parent89586bac91ecdd20255f615abd7993dc79092a50 (diff)
downloadbrdo-37b78e02594e95ac059a69fe47ee62bf24ce5db5.tar.gz
brdo-37b78e02594e95ac059a69fe47ee62bf24ce5db5.tar.bz2
#646874 by sun and David_Rothstein: Remove assumptions about Contextual links and Shortcut modules from template files.
Diffstat (limited to 'themes/garland')
-rw-r--r--themes/garland/block.tpl.php6
-rw-r--r--themes/garland/comment.tpl.php6
-rw-r--r--themes/garland/node.tpl.php6
-rw-r--r--themes/garland/page.tpl.php6
4 files changed, 11 insertions, 13 deletions
diff --git a/themes/garland/block.tpl.php b/themes/garland/block.tpl.php
index da147997e..914e2703e 100644
--- a/themes/garland/block.tpl.php
+++ b/themes/garland/block.tpl.php
@@ -3,13 +3,11 @@
?>
<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
-<?php if (!empty($contextual_links)): ?>
- <?php print render($contextual_links); ?>
-<?php endif; ?>
-
+ <?php print render($title_prefix); ?>
<?php if (!empty($block->subject)): ?>
<h2 class="title"<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
<?php endif;?>
+ <?php print render($title_suffix); ?>
<div class="content"<?php print $content_attributes; ?>><?php print $content ?></div>
</div>
diff --git a/themes/garland/comment.tpl.php b/themes/garland/comment.tpl.php
index 2c3e1ca28..b46c1edfc 100644
--- a/themes/garland/comment.tpl.php
+++ b/themes/garland/comment.tpl.php
@@ -5,10 +5,6 @@
<div class="clearfix">
- <?php if ($contextual_links): ?>
- <?php print render($contextual_links); ?>
- <?php endif; ?>
-
<span class="submitted"><?php print $created; ?> — <?php print $author; ?></span>
<?php if ($new) : ?>
@@ -17,7 +13,9 @@
<?php print $picture ?>
+ <?php print render($title_prefix); ?>
<h3<?php print $title_attributes; ?>><?php print $title ?></h3>
+ <?php print render($title_suffix); ?>
<div class="content"<?php print $content_attributes; ?>>
<?php hide($content['links']); print render($content); ?>
diff --git a/themes/garland/node.tpl.php b/themes/garland/node.tpl.php
index 4a2733f42..3b06a2d11 100644
--- a/themes/garland/node.tpl.php
+++ b/themes/garland/node.tpl.php
@@ -3,15 +3,13 @@
?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
- <?php if (!$page && !empty($contextual_links)): ?>
- <?php print render($contextual_links); ?>
- <?php endif; ?>
-
<?php print $user_picture; ?>
+ <?php print render($title_prefix); ?>
<?php if (!$page): ?>
<h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $node_title; ?></a></h2>
<?php endif; ?>
+ <?php print render($title_suffix); ?>
<?php if ($display_submitted): ?>
<span class="submitted"><?php print $date; ?> — <?php print $name; ?></span>
diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php
index 11f18f631..441a3bfe6 100644
--- a/themes/garland/page.tpl.php
+++ b/themes/garland/page.tpl.php
@@ -42,7 +42,11 @@
<?php if ($page['highlight']): ?><div id="highlight"><?php render($page['highlight']); ?></div><?php endif; ?>
<a id="main-content"></a>
<?php if ($tabs): ?><div id="tabs-wrapper" class="clearfix"><?php endif; ?>
- <?php if ($title): ?><h1<?php print $tabs ? ' class="with-tabs"' : '' ?>><?php print $title ?></h1><?php endif; ?>
+ <?php print render($title_prefix); ?>
+ <?php if ($title): ?>
+ <h1<?php print $tabs ? ' class="with-tabs"' : '' ?>><?php print $title ?></h1>
+ <?php endif; ?>
+ <?php print render($title_suffix); ?>
<?php if ($tabs): ?><ul class="tabs primary"><?php print render($tabs) ?></ul></div><?php endif; ?>
<?php if ($tabs2): ?><ul class="tabs secondary"><?php print render($tabs2) ?></ul><?php endif; ?>
<?php print $messages; ?>