aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-04-15 13:13:23 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-04-15 13:13:23 +0200
commit6977145fa62346b35db60da018e699b7f1967e90 (patch)
tree506d5dfde75e18a40d318cbc3bc2ae487619fd7a /data
parentb9ffa6b92277d3dc8a4eca77119ea098e20f36f0 (diff)
downloadphorkie-6977145fa62346b35db60da018e699b7f1967e90.tar.gz
phorkie-6977145fa62346b35db60da018e699b7f1967e90.zip
add image renderer
Diffstat (limited to 'data')
-rw-r--r--data/config.default.php15
-rw-r--r--data/templates/display-file.htm2
2 files changed, 16 insertions, 1 deletions
diff --git a/data/config.default.php b/data/config.default.php
index b07f042..c08d401 100644
--- a/data/config.default.php
+++ b/data/config.default.php
@@ -36,6 +36,11 @@ $GLOBALS['phorkie']['languages'] = array(
'geshi' => 'xml',
'show' => false
),
+ 'jpg' => array(
+ 'title' => 'JPEG image',
+ 'mime' => 'image/jpeg',
+ 'show' => false
+ ),
'js' => array(
'title' => 'Javascript',
'mime' => 'application/javascript',
@@ -51,6 +56,11 @@ $GLOBALS['phorkie']['languages'] = array(
'mime' => 'text/x-php',
'geshi' => 'php'
),
+ 'png' => array(
+ 'title' => 'PNG image',
+ 'mime' => 'image/png',
+ 'show' => false
+ ),
'rst' => array(
'title' => 'reStructuredText',
'mime' => 'text/x-rst',
@@ -67,6 +77,11 @@ $GLOBALS['phorkie']['languages'] = array(
'mime' => 'text/x-sql',
'geshi' => 'sql'
),
+ 'svg' => array(
+ 'title' => 'SVG image',
+ 'mime' => 'image/svg+xml',
+ 'show' => false
+ ),
'ts' => array(
'title' => 'TypoScript',
'mime' => 'text/plain',/* TODO: correct type */
diff --git a/data/templates/display-file.htm b/data/templates/display-file.htm
index 1049abb..a768b7c 100644
--- a/data/templates/display-file.htm
+++ b/data/templates/display-file.htm
@@ -7,6 +7,6 @@
<h3 id="{{file.getFilename}}">{{file.getFilename}}<a class="anchorlink" href="#{{file.getFilename}}"></a></h3>
</div>
<div class="code">
- {{file.getHighlightedContent(toolres)|raw}}
+ {{file.getRenderedContent(toolres)|raw}}
</div>
</div>