summaryrefslogtreecommitdiff
path: root/lib/tpl/default
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2009-01-24 19:40:33 +0100
committerAnika Henke <anika@selfthinker.org>2009-01-24 19:40:33 +0100
commitb5676fcfd98983fbf5a24ab62d55800347367c98 (patch)
tree925415c5c822f380a7d2d559280423a843b4abc6 /lib/tpl/default
parent96fbf406ff62d591b2f1d27f90b81a2623d8537b (diff)
downloadrpg-b5676fcfd98983fbf5a24ab62d55800347367c98.tar.gz
rpg-b5676fcfd98983fbf5a24ab62d55800347367c98.tar.bz2
adjusted and moved style.ini viewer to represent style.ini of current template (not just default template)
darcs-hash:20090124184033-f7d6d-b8d5aab351089866fecbb07f3fb3516f753bb077.gz
Diffstat (limited to 'lib/tpl/default')
-rw-r--r--lib/tpl/default/index.php53
1 files changed, 0 insertions, 53 deletions
diff --git a/lib/tpl/default/index.php b/lib/tpl/default/index.php
deleted file mode 100644
index d9d850bd9..000000000
--- a/lib/tpl/default/index.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * This file reads the style.ini and displays the replacements defined in
- * it. Color replacements will be displayed visually. This should help
- * with adjusting and using the styles specified in the style.ini
- *
- * You don't need this file when you create your own template, but it might
- * help others. Just copy it from the default. No modification needed.
- *
- * @author Andreas Gohr <andi@splitbrain.org>
- */
-?>
-<!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" xml:lang="en" lang="en" dir="ltr">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Template Replacements</title>
- <style type="text/css">
- body {
- background-color: #fff;
- }
- td {
- margin: 0;
- padding: 0.5em 2em;
- font-family: monospace;
- font-size: 120%;
- border: 1px solid #fff;
- }
- tr:hover td {
- border: 1px solid #ccc;
- }
- </style>
-</head>
-<body>
-<?php
-$ini = parse_ini_file('style.ini',true);
-echo '<table>';
-foreach($ini['replacements'] as $key => $val){
- echo '<tr>';
- echo '<td>'.htmlspecialchars($key).'</td>';
- echo '<td>'.htmlspecialchars($val).'</td>';
- echo '<td>';
- if(preg_match('/^#[0-f]{3,6}$/i',$val)){
- echo '<div style="width: 40px; height:25px; background-color:'.$val.';border: 1px #000 solid"></div>';
- }
- echo '</td>';
- echo '</tr>';
-}
-echo '</table>';
-?>
-</body>
-</html>