From 1b73030b130fb62aa4fb01a668d757eb8eb57393 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 27 Jan 2010 09:26:03 +0000 Subject: [PATCH] templates: Embeddable header&footer git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2138 44740490-163a-0410-bde0-09ae8108e29a --- templates/includes/footer-embed.php | 2 ++ templates/includes/header-embed.php | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 templates/includes/footer-embed.php create mode 100644 templates/includes/header-embed.php diff --git a/templates/includes/footer-embed.php b/templates/includes/footer-embed.php new file mode 100644 index 000000000..308b1d01b --- /dev/null +++ b/templates/includes/footer-embed.php @@ -0,0 +1,2 @@ +</body> +</html> diff --git a/templates/includes/header-embed.php b/templates/includes/header-embed.php new file mode 100644 index 000000000..dce6cba61 --- /dev/null +++ b/templates/includes/header-embed.php @@ -0,0 +1,23 @@ +<!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="en" xml:lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title><?php +if(array_key_exists('header', $this->data)) { + echo $this->data['header']; +} else { + echo 'simpleSAMLphp'; +} +?></title> + + <link rel="stylesheet" type="text/css" href="/<?php echo $this->data['baseurlpath']; ?>resources/default.css" /> + <meta name="robots" content="noindex, nofollow" /> + +<?php +if(array_key_exists('head', $this->data)) { + echo '<!-- head -->' . $this->data['head'] . '<!-- /head -->'; +} +?> +</head> +<body> + -- GitLab