示例#1
0
/**
 * Implements template_preprocess_maintenance_page().
 */
function theme866_preprocess_maintenance_page(&$vars)
{
    // Manually include these as they're not available outside template_preprocess_page().
    $vars['rdf_namespaces'] = drupal_get_rdf_namespaces();
    $vars['grddl_profile'] = 'http://www.w3.org/1999/xhtml/vocab';
    $vars['doctype'] = _theme866_doctype();
    $vars['rdf'] = _theme866_rdf($vars);
    if (!$vars['db_is_active']) {
        unset($vars['site_name']);
    }
    drupal_add_css(drupal_get_path('theme', 'theme866') . '/css/maintenance-page.css');
}
<?php

global $language;
$language->dir = $language->direction ? 'rtl' : 'ltr';
$rdf_namespaces = drupal_get_rdf_namespaces();
$grddl_profile = 'http://www.w3.org/1999/xhtml/vocab';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
print $language->language;
?>
" version="XHTML+RDFa 1.0" dir="<?php 
print $language->dir;
?>
"<?php 
print $rdf_namespaces;
?>
>
<head profile="<?php 
print $grddl_profile;
?>
">
  <title><?php 
print $title;
?>
</title>
  <?php 
print drupal_get_js();
?>
  <?php 
示例#3
0
/**
 * Implements template_preprocess_maintenance_page().
 */
function zentropy_preprocess_maintenance_page(&$variables)
{
    // Manually include these as they're not available outside template_preprocess_page().
    $variables['rdf_namespaces'] = drupal_get_rdf_namespaces();
    $variables['grddl_profile'] = 'http://www.w3.org/1999/xhtml/vocab';
    // Add extra polyfills, settings, etc.
    // No need to redefine this.
    zentropy_preprocess_html($variables);
}