I've activated the mission statement and have filled in some filler text for it. The issue is that it only appears on the front page and not subsequent sub-pages. Would like the mission statement to appear on all pages similar to how the site slogan works.

Comments

fusion94’s picture

I actually got this to work by doing the following:

In template.php I added the following to the bottom of the file:

function _phptemplate_variables($hook, $vars = array()) {
  // Make custom variables available to theme templates
  switch ($hook) {
    // Send new variable $custom_mission to page.tpl.php
    case 'page':
      $vars['custom_mission'] = variable_get('site_mission', '');
      break;
  }
  return $vars;
}

Then in page.tpl.php I changed:

<?php if ($mission) { ?><h3 id="mission"><?php print $mission ?></h3><?php } ?>

to be

<?php if ($custom_mission) { ?><h3 id="mission"><?php print $custom_mission ?></h3><?php } ?>

This works but perhaps it can be abstracted out as part of the theme-settings.php. If I have time I'll try and roll out the code for that.

jurriaanroelofs’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.