By benofsky on
I'm working on a theme which is based on friends electric I need to disable the abbility to show a logo, so that when enabled it dosn't show anything because I have no logo.png, it shows Home (in text) and also I want to disable the use of a slogan. So again when enabled dosn't show up. Here is the content of my page.tpl.php file:
<php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language; ?>" xml:lang="<?php print $language; ?>">
<head>
<title><?php print $head_title ?></title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<?php print $head ?>
<?php print $styles ?>
<script type="text/javascript"> </script>
</head>
<body><div class="bw1"><div class="bw2"><div id="body-wrap">
<!-- Begin Page Header -->
<div id="header"><div class="hw1"><div class="hw2">
<?php if ($site_name): ?>
<a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1>
<?php endif; ?>
<?php print $search_box ?>
<div id="top-nav">
<?php if (isset($primary_links)): ?>
<ul id="primary">
<?php foreach ($primary_links as $link): ?>
<li><?php print phptemplate_wrap_links($link, 2); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if (isset($secondary_links)): ?>
<ul id="secondary">
<?php foreach (array_reverse($secondary_links) as $link): ?>
<li><?php print phptemplate_wrap_links($link, 2); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div></div></div>
<!--End Page Header-->
<div id="content" class="content-<?php print $layout; ?>"><div class="cw1"><div class="cw2"><div class="cw3"><div class="cw4"><div class="cw5"><div class="cw6"><div class="cw7"><div class="cw8">
<div id="content-wrap" class="content-wrap-<?php print $layout; ?>">
<?php if ($sidebar_left != ""): ?>
<div class="sidebar" id="sidebar-left">
<?php
// Mark first block title
list($a, $b) = explode('<h2>', $sidebar_left, 2);
print $a . '<h2 class="first">' . $b;
?>
</div>
<?php endif; ?>
<div id="main" class="main-<?php print $layout; ?>"><div id="main-wrap" class="main-wrap-<?php print $layout; ?>"><div class="mw1">
<?php print $header ?>
<?php if ($mission != ""): ?>
<div id="mission"><div class="sw1"><div class="sw2"><div class="sw3"><?php print $mission; ?></div></div></div></div>
<?php endif; ?>
<?php print $breadcrumb ?>
<?php if ($title): ?>
<h2 class="main-title"><?php print $title; ?></h2>
<?php endif; ?>
<?php if ($tabs): ?>
<?php print $tabs; ?>
<?php endif; ?>
<?php if ($help): ?>
<p id="help"><?php print $help; ?></p>
<?php endif; ?>
<?php if ($messages): ?>
<div id="message"><?php print $messages; ?></div>
<?php endif; ?>
<?php print phptemplate_wrap_content($content) ?>
<?php if ($footer_message): ?>
<div id="footer" class="footer-<?php print $layout; ?>"><p><?php print $footer_message; ?></p></div>
<?php endif; ?>
</div></div>
</div>
</div>
<?php if ($sidebar_right): ?>
<div class="sidebar" id="sidebar-right">
<?php
// Mark first block title
list($a, $b) = explode('<h2>', $sidebar_right, 2);
print $a . '<h2 class="first">' . $b;
?>
</div>
<?php endif; ?>
<span class="clear"></span>
</div></div></div></div></div></div></div></div></div>
<?php print $closure;?>
</div></div></div><div id="end" class="end-<?php print $layout; ?>"><div class="ew1"><div class="ew2"></div></div></div></body>
</html>
What have I done wrong? Do I need to edit template.php? Thanks in advance,Ben McRedmond
Benofsky Park.com
http://benofskypark.com/news
Comments
Looks okay to me... what
Looks okay to me... what happens when you view the page? My theme does a similar thing, I just wanted links and search so my header looks like:
Just to be safe, I also go to configure and turn off everything I don't want.. HTH
Is the website
Is the website benofskypark.com running the page.tpl.php shown above? It would be helpful to see the output you are getting. (It won't change the problem with the logo, but it looks like you're missing the opening h1 tag)
Is the "<php" at the very
Is the
"<php"at the very beginning of the file a cut and paste error when entering the note? Because if it's really there, you may not get anything at all from that file.Gary Feldman