Commit f3b669e2 authored by Feu's avatar Feu

soyons un brin plus léger

parent c530f50e
......@@ -418,3 +418,21 @@ div.liner p.center a
font-size:100%;
color:#808080;
}
div.cita
{
margin: 10px 4px 10px 30px;
padding: 4px;
}
div.cita div.cits
{
border: 1px #374a70 solid;
margin-top:2px;
padding: 4px;
text-align: justify;
background-color: #ecf4fe;
}
......@@ -134,25 +134,17 @@ class dokusyntax
while( preg_match("/\[quote=(.*?)\](.*?)\[\/quote\]/i",$text) )
{
$text = preg_replace("/\[quote=(.*?)\](.*?)\[\/quote\]/i",
"<div style=\"margin: 10px 4px 10px 30px; padding: 4px;\">
"<div class=\"cita\">
<b>Citation de $1 :</b>
<div style=\"border: 1px #374a70 solid;
margin-top:2px;
padding: 4px;
text-align: justify;
background-color: #ecf4fe;\">$2___</div>___</div>___",
<div class=\"cits\">$2___</div>___</div>___",
$text);
}
while( preg_match("/\[quote\](.*?)\[\/quote\]/i",$text) )
{
$text = preg_replace("/\[quote\](.*?)\[\/quote\]/i",
"<div style=\"margin: 10px 4px 10px 30px; padding: 4px;\">
"<div class=\"cita\">
<b>Citation :</b>
<div style=\"border: 1px #374a70 solid;
margin-top:2px;
padding: 4px;
text-aling: justify;
background-color: #ecf4fe;\">$1___</div>___</div>___",
<div class=\"cits\">$1___</div>___</div>___",
$text);
}
$text= str_replace('___</div>___</div>___','</div></div>'.CHR(10),$text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment