You are here

function commerce_kickstart_admin_preprocess_maintenance_page in Commerce Kickstart 7.2

Override or insert variables into the maintenance page template.

File

themes/commerce_kickstart_admin/template.php, line 6

Code

function commerce_kickstart_admin_preprocess_maintenance_page(&$vars) {

  // While markup for normal pages is split into page.tpl.php and html.tpl.php,
  // the markup for the maintenance page is all in the single
  // maintenance-page.tpl.php template. So, to have what's done in
  // shiny_preprocess_html() also happen on the maintenance page, it has to be
  // called here.
  shiny_preprocess_html($vars);
  if (variable_get('install_task') != 'done') {
    $footer_markup = '<div class="message">' . t('Proudly built by') . '</div>';
    $footer_markup .= '<div class="logo">' . t('<a href="@url">Commerce Guys</a>', array(
      '@url' => 'http://www.commerceguys.com',
    )) . '</div>';
    $vars['footer'] = array(
      '#prefix' => '<div id="credit" class="clearfix">',
      '#markup' => $footer_markup,
      '#suffix' => '</div>',
    );
  }
}