Show mission statement on all pages...how?
Hey all! I just had a quick question about the mission statement. I'm in the process of theming a drupal site I'm working on and was curious about how I could get the mission statement to show on ALL pages.
If you go to http://cygdev.corydorning.net/ you'll see the mission statement under the "Welcome to Check Your Genes" image. If you click on on of the navigation links, you'll notice it disappears.
My guess is that it's just a PHP snippet that is telling it to display on the page only, but I'm not sure where it is. I didn't see anything in the page or node tpl files and didn't find it in the template.php file either, although I'm not exactly sure what I'm looking for.
Any help is greatly appreciated!
Thanks,
Cory

Clarification to the above post
...display on the FRONT page only...
best advise I can give
best advise I can give ...
if you're using phpTemplates for themeing. Look in page.tpl.php for a variable called $mission. Its your mission statement. Its probably in an if ($is_front) { ... } block of code.
If you remove the $is_front check it will output on every page.
Or simply try:
print $mission;
or
print theme_get_setting('mission');
Lastly Read the documentation on theming at: http://drupal.org/node/11774
Thanks...
Awesome, thanks! I saw the $mission variable, as I had to move it around, but I do not recall the if ($is_front). Nonetheless I'll take a look at it tonight and check out the theming documentation.
Thx again.
It is possible that
It is possible that $is_front is not being used in your particular theme -- my point being, you may not have missed it; it may simply not be there.
To explain a bit further -- It can be attached to a conditional statement to set something, like the site mission, to appear only when the condition is true, that is, when the front page is being viewed. If it is used, you can kill it off to remove the condition and print $mission.
Well...I didn't miss it.
After looking at the code I didn't miss it and I'm not sure how to fix it. My code from the page.tpl.php file is below.
<div id="banner">
<?php if ($mission): ?>
<div id="mission">
<?php print $mission; ?>
</div>
<?php endif; ?>
<div id="visual">
<img src="logo.jpg" alt="Check Your Genes Today" />
</div>
</div>
I left the
<?php if ($mission): ?>just so it is still able to be turned off inside of drupal via the checkbox. Is this causing the problem?Any help on what I can do is greatly appreciated. BTW, I started with the Zen theme, if that helps.
That's it - now mod
This is the crucial bit:
<?php if ($mission): ?><div id="mission">
<?php print $mission; ?>
</div>
<?php endif; ?>
If you wish to display on the front page only, associate it with $is_front. Here's one way to mod this into reality (again working with the same bit of code inside page.tpl.php):
<?php if($is_front):?><div id="mission">
<?php print $mission; ?>
</div>
<?php endif; ?>
This is the most direct way (fewest lines) I know for printing to the front page only. Note that as I have removed the conditional attached to $mission, the div will remain active on the front page, even if the mission is unpublished (or left blank) by the administrator. If you wish to hide that formatting when the site mission is not in use, nest it within another conditional statement.
A misunderstanding
Currently it is showing on the front page just fine. However, it does NOT show on any subsequent pages, which is what I want it to do. When I go to a subpage the mission statement does not appear.
So how do I get it to show up on EVERY page?
Anyone?
Anyone have any ideas?
Problem Solved
Thanks to some fine individuals, this issue has been solved.
You can find the answer here:
http://drupal.org/node/184590