aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/center.php28
-rw-r--r--test/lang.php9
-rw-r--r--test/left.php37
3 files changed, 74 insertions, 0 deletions
diff --git a/test/center.php b/test/center.php
new file mode 100644
index 000000000..846ca2b64
--- /dev/null
+++ b/test/center.php
@@ -0,0 +1,28 @@
+<?php
+define('HLANG', true);
+define('ALIGNMENT', 'Center');
+require '../langs.php';
+?><!DOCTYPE html>
+<html lang="<?php echo $locale; ?>" dir="ltr">
+<head>
+ <meta charset="utf-8">
+ <title><?php _g('Center Alignment')?></title>
+ <meta name="description" content="<?php _g('Center Alignment test')?>">
+ <link rel="stylesheet" href="/g/style/all.css" type="text/css">
+ <?php include '../analytics.php'; ?>
+</head>
+<body class="doc">
+ <?php echo $hsnav; ?>
+ <h1 id="mgnavt"><?php _g('Center Alignment')?></h1>
+ <div id="doc" class="yui-t7">
+ <div id="bd" role="main">
+ <div class="yui-g">
+ <div class="para donate" style="padding-top: 2em;">
+ <h2><?php _g('Center Alignment page')?></h2>
+ <p><?php _g('Center Alignment, Center Alignment, Center Alignment...')?></p>
+ </div>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/test/lang.php b/test/lang.php
new file mode 100644
index 000000000..077f8ad92
--- /dev/null
+++ b/test/lang.php
@@ -0,0 +1,9 @@
+<pre><?php
+/**
+*/
+
+include_once '../localeDetection.class.php';
+include_once '../langs.inc.php';
+
+echo 'Accept-Language: ', $_SERVER['HTTP_ACCEPT_LANGUAGE'], "\n\n";
+echo "Relocate `community` with `en` as a default: ", relocate($langs, 'community', 'en', null, false), "\n";
diff --git a/test/left.php b/test/left.php
new file mode 100644
index 000000000..bc7ad3e75
--- /dev/null
+++ b/test/left.php
@@ -0,0 +1,37 @@
+<?php
+define('HLANG', true);
+define('ALIGNMENT', 'Left');
+require '../langs.php';
+?><!DOCTYPE html>
+<html lang="<?php echo $locale; ?>" dir="ltr">
+<head>
+ <meta charset="utf-8">
+ <title><?php _g('Left Alignment')?></title>
+ <meta name="description" content="<?php _g('Left Alignment test')?>">
+ <link rel="stylesheet" href="/g/style/all.css" type="text/css">
+ <?php include '../analytics.php'; ?>
+ <style> .para { text-align: left; float: left; width: 250px; display: block; border-right: 1px solid #eef; border-bottom: 1px solid #eef; }</style>
+</head>
+<!--<body class="doc">-->
+<body class="contact">
+ <?php echo $hsnav; ?>
+ <h1 id="mgnavt"><?php _g('Left Alignment')?></h1>
+ <div class="para" style="width: 300px;">
+ <!--<div id="doc" class="yui-t7">
+ <div id="bd" role="main">
+ <div class="yui-g">
+ <div class="para donate" style="padding-top: 2em;">-->
+ <h2><?php _g('Left Alignment page')?></h2>
+ <p><?php _g('Left Alignment, Left Alignment, Left Alignment...')?></p>
+
+ </div>
+
+ <div class="para" style="width: 600px;">
+ <h2><?php _g('Blabla')?></h2>
+ <p><?php _g('Blabla bla')?></p>
+ <!--</div>
+ </div>
+ </div>-->
+ </div>
+</body>
+</html>