summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/XHTML/Template.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SimpleSAML/XHTML/Template.php')
-rw-r--r--lib/SimpleSAML/XHTML/Template.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index c496628..05f7277 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -220,6 +220,13 @@ class SimpleSAML_XHTML_Template
\SimpleSAML\Locale\Language::setLanguageCookie($language);
}
+ /**
+ * Wraps Language->getLanguageList
+ */
+ private function getLanguageList() {
+ return $this->translator->language->getLanguageList();
+ }
+
/**
* @param $tag
@@ -246,6 +253,20 @@ class SimpleSAML_XHTML_Template
/**
+ * Includes a file relative to the template base directory.
+ * This function can be used to include headers and footers etc.
+ *
+ */
+ private function includeAtTemplateBase($file) {
+ $data = $this->data;
+
+ $filename = $this->findTemplatePath($file);
+
+ include($filename);
+ }
+
+
+ /**
* Wraps Translate->includeInlineTranslation()
*
* @see \SimpleSAML\Locale\Translate::includeInlineTranslation()
@@ -271,6 +292,14 @@ class SimpleSAML_XHTML_Template
/**
+ * Wrap Language->isLanguageRTL
+ */
+ private function isLanguageRTL() {
+ return $this->translator->language->isLanguageRTL();
+ }
+
+
+ /**
* Merge two translation arrays.
*
* @param array $def The array holding string definitions.