<?xml version="1.0" encoding="ISO-8859-1"?>
<module><name>Headline (HTML)</name>
<description>Eine HTML Headline anzeigen</description>
<type>Content</type>
<input/>
<output>&lt;?php 
/***********************************************
* Headline Output
*
* Author      :     Andreas Lindner
* Copyright   :     four for business AG
* Version	  : 	1.0
* Created     :     05-08-2005
************************************************/

$zeichenProWort = 20;

function grossBuchstabenKorrigieren($wert){
    $wert = str_replace(&quot;ü&quot;, &quot;Ü&quot;, $wert); 
    $wert = str_replace(&quot;ö&quot;, &quot;Ö&quot;, $wert);     
    $wert = str_replace(&quot;ä&quot;, &quot;Ä&quot;, $wert); 
    $wert = str_replace(&quot;ß&quot;, &quot;SS&quot;, $wert); 
    /* $wert = str_replace(&quot;„&quot;, &quot;'&quot;, $wert);     
    $wert = str_replace(&quot;“&quot;, &quot;'&quot;, $wert); */

    $wert = urlencode($wert);

    return $wert;
}


$text = &quot;CMS_HTMLHEAD[1]&quot;;
$text = strip_tags($text);
$text = str_replace(&quot;&amp;nbsp;&quot;, &quot;&quot;,$text);
$text = html_entity_decode($text); 

$textLaenge = strlen($text);

while(strpos($text,&quot; &quot;) == 0 &amp;&amp; substr_count($text,&quot; &quot;) &gt; 4) {
   $text = substr($text,strpos($textImg,&quot; &quot;)+1,strlen($text));
}

$textImg = $text.&quot; &quot;; 
$headlineHTML = $text;

foreach ($_GET as $key =&gt; $val) {
    if($key == &quot;changeview&quot; &amp;&amp; $val == &quot;prev&quot;){
       $prevHeadline = 1;
    }
}


if($contenido == &quot;&quot; || $prevHeadline == 1)
{
   $anzahl = str_word_count($textImg);
   
   for($a=0;$a&lt;=$anzahl;$a++){
       if(strlen($woerter)&gt;$zeichenProWort){
          echo &quot;&lt;img src=\&quot;front_content.php?idcat=83&amp;amp;text=&quot;.grossBuchstabenKorrigieren(strtoupper($woerter)).&quot;\&quot; alt=\&quot;&quot;.grossBuchstabenKorrigieren(strtoupper($woerter)).&quot;\&quot;/&gt;\n&quot;;
          $woerter = &quot;&quot;;
       }

       if(strpos($textImg,&quot; &quot;) != 0){
           $woerter .= substr($textImg,0,strpos($textImg,&quot; &quot;)).&quot; &quot;;
       }else{
           $woerter .= substr($textImg,0).&quot; &quot;;
       }
       $textImg = substr($textImg,strpos($textImg,&quot; &quot;)+1);
   }

    if(strlen($woerter) &gt; 4){
          echo &quot;&lt;img src=\&quot;front_content.php?idcat=83&amp;amp;text=&quot;.grossBuchstabenKorrigieren(strtoupper($woerter)).&quot;\&quot; alt=\&quot;&quot;.grossBuchstabenKorrigieren(strtoupper($woerter)).&quot;\&quot;/&gt;\n&quot;;
    }

    // echo &quot;&lt;p style=\&quot;padding:0px;margin:0px;\&quot;&gt;&amp;nbsp;&lt;/p&gt;&quot;;

}


if($contenido != &quot;&quot; &amp;&amp; $prevHeadline == &quot;&quot;)
{
     echo &quot;CMS_HTMLHEAD[1]&quot;.&quot;&lt;br/&gt;&lt;br/&gt;&quot;; 
}

?&gt;</output>
</module>

