From 016eecebd8ed2b9a177b0c6a9d3d1371c36f6430 Mon Sep 17 00:00:00 2001 From: mmk2410 Date: Tue, 24 Feb 2015 23:05:30 +0100 Subject: [PATCH] Version 1.1 --- index.php | 43 +++++++++++++++++++++++++++++++++-------- res/umlautconverter.php | 15 ++++++++++++++ xml/posts.xml | 7 +++++++ 3 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 res/umlautconverter.php diff --git a/index.php b/index.php index e8909aa..546bbbf 100644 --- a/index.php +++ b/index.php @@ -27,19 +27,25 @@ Home +
setBreaksEnabled(true) ->text($file); + $UmlautConverter = new UmlautConverter; + $intro = $UmlautConverter->convert($intro); + echo $intro; } ?>
+

title; + $title = $post->title; + $UmlautConverter = new UmlautConverter; + $title = $UmlautConverter->convert($title); + echo $title; ?>

pubdate; + $pubdate = $post->pubdate; + $UmlautConverter = new UmlautConverter; + $pubdate = $UmlautConverter->convert($pubdate); + echo $pubdate; ?>

setBreaksEnabled(true) ->text($post->content); + $UmlautConverter = new UmlautConverter; + $content = $UmlautConverter->convert($content); + echo $content; ?>

@@ -71,11 +86,17 @@ ?> otherlink; + $otherlink = $olb->otherlink; + $UmlautConverter = new UmlautConverter; + $otherlink = $UmlautConverter->convert($otherlink); + echo $otherlink; ?> mainlink; + $mainlink = $post->mainlink; + $UmlautConverter = new UmlautConverter; + $mainlink = $UmlautConverter->convert($mainlink); + echo $mainlink; ?> diff --git a/res/umlautconverter.php b/res/umlautconverter.php new file mode 100644 index 0000000..2bf1b70 --- /dev/null +++ b/res/umlautconverter.php @@ -0,0 +1,15 @@ + + + Version 1.1 + 24th February 2015 + +After I published the Version 1.0 last sunday I realized some problems with german umlauts. Now I added a function that converts every umlaut (ü, Ü, ä, Ä, ö, Ö and ß) into the html code. + + Version 1.0 22nd February 2015