includes/wikiengine/render_xhtml.php
changeset 1078 67a4c839c7e1
parent 1073 b19a9bcb6a45
child 1081 745200a9cc2a
equal deleted inserted replaced
1077:7f621a3a9cbf 1078:67a4c839c7e1
   112       $text = str_replace(Carpenter::generate_token($i), $list, $text);
   112       $text = str_replace(Carpenter::generate_token($i), $list, $text);
   113     }
   113     }
   114     return $text;
   114     return $text;
   115   }
   115   }
   116   
   116   
   117   public function blockquote($text, $pieces)
   117   public function blockquote($text)
   118   {
   118   {
   119     foreach ( $pieces as $i => $piece )
   119     return $text;
   120     {
   120   }
   121       $text = str_replace(Carpenter::generate_token($i), "<blockquote>\n" . nl2br($piece) . "\n</blockquote>\n", $text);
   121   
   122     }
   122   public function blockquotepost($text, $rand_id)
       
   123   {
       
   124     $text = strtr($text, array(
       
   125         "<p>{blockquote:$rand_id}<br />"  => '<blockquote>',
       
   126         "<br />\n{/blockquote:$rand_id}</p>" => '</blockquote>',
       
   127         "{blockquote:$rand_id}"  => '<blockquote>',
       
   128         "{/blockquote:$rand_id}" => '</blockquote>'
       
   129       ));
       
   130     $text = strtr($text, array(
       
   131         "<blockquote><br />" => '<blockquote>',
       
   132         "</blockquote><br />" => '</blockquote>'
       
   133       ));
   123     return $text;
   134     return $text;
   124   }
   135   }
   125   
   136   
   126   public function paragraph($text, $pieces)
   137   public function paragraph($text, $pieces)
   127   {
   138   {