use prepare_body for text preparation

This commit is contained in:
Friendika 2011-03-03 22:53:20 -08:00
parent 71d4810697
commit 15d3be18a9
4 changed files with 40 additions and 40 deletions

View file

@ -113,7 +113,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['about'])) { if($txt = prepare_body($a->profile['about'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-about-wrapper" > <div id="advanced-profile-about-wrapper" >
<div id="advanced-profile-about-text">About:</div> <div id="advanced-profile-about-text">About:</div>
@ -124,7 +124,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['interest'])) { if($txt = prepare_body($a->profile['interest'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-interest-wrapper" > <div id="advanced-profile-interest-wrapper" >
<div id="advanced-profile-interest-text">Hobbies/Interests:</div> <div id="advanced-profile-interest-text">Hobbies/Interests:</div>
@ -135,7 +135,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['contact'])) { if($txt = prepare_body($a->profile['contact'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-contact-wrapper" > <div id="advanced-profile-contact-wrapper" >
<div id="advanced-profile-contact-text">Contact information and Social Networks:</div> <div id="advanced-profile-contact-text">Contact information and Social Networks:</div>
@ -146,7 +146,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['music'])) { if($txt = prepare_body($a->profile['music'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-music-wrapper" > <div id="advanced-profile-music-wrapper" >
<div id="advanced-profile-music-text">Musical interests:</div> <div id="advanced-profile-music-text">Musical interests:</div>
@ -157,7 +157,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['book'])) { if($txt = prepare_body($a->profile['book'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-book-wrapper" > <div id="advanced-profile-book-wrapper" >
<div id="advanced-profile-book-text">Books, literature:</div> <div id="advanced-profile-book-text">Books, literature:</div>
@ -168,7 +168,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['tv'])) { if($txt = prepare_body($a->profile['tv'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-tv-wrapper" > <div id="advanced-profile-tv-wrapper" >
<div id="advanced-profile-tv-text">Television:</div> <div id="advanced-profile-tv-text">Television:</div>
@ -179,7 +179,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['film'])) { if($txt = prepare_body($a->profile['film'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-film-wrapper" > <div id="advanced-profile-film-wrapper" >
<div id="advanced-profile-film-text">Film/dance/culture/entertainment:</div> <div id="advanced-profile-film-text">Film/dance/culture/entertainment:</div>
@ -190,7 +190,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['romance'])) { if($txt = prepare_body($a->profile['romance'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-romance-wrapper" > <div id="advanced-profile-romance-wrapper" >
<div id="advanced-profile-romance-text">Love/romance:</div> <div id="advanced-profile-romance-text">Love/romance:</div>
@ -201,7 +201,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['work'])) { if($txt = prepare_body($a->profile['work'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-work-wrapper" > <div id="advanced-profile-work-wrapper" >
<div id="advanced-profile-work-text">Work/employment:</div> <div id="advanced-profile-work-text">Work/employment:</div>
@ -212,7 +212,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['education'])) { if($txt = prepare_body($a->profile['education'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-education-wrapper" > <div id="advanced-profile-education-wrapper" >
<div id="advanced-profile-education-text">School/education:</div> <div id="advanced-profile-education-text">School/education:</div>

View file

@ -113,7 +113,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['about'])) { if($txt = prepare_body($a->profile['about'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-about-wrapper" > <div id="advanced-profile-about-wrapper" >
<div id="advanced-profile-about-text">About:</div> <div id="advanced-profile-about-text">About:</div>
@ -124,7 +124,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['interest'])) { if($txt = prepare_body($a->profile['interest'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-interest-wrapper" > <div id="advanced-profile-interest-wrapper" >
<div id="advanced-profile-interest-text">Hobbies/Interests:</div> <div id="advanced-profile-interest-text">Hobbies/Interests:</div>
@ -135,7 +135,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['contact'])) { if($txt = prepare_body($a->profile['contact'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-contact-wrapper" > <div id="advanced-profile-contact-wrapper" >
<div id="advanced-profile-contact-text">Contact information and Social Networks:</div> <div id="advanced-profile-contact-text">Contact information and Social Networks:</div>
@ -146,7 +146,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['music'])) { if($txt = prepare_body($a->profile['music'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-music-wrapper" > <div id="advanced-profile-music-wrapper" >
<div id="advanced-profile-music-text">Musical interests:</div> <div id="advanced-profile-music-text">Musical interests:</div>
@ -157,7 +157,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['book'])) { if($txt = prepare_body($a->profile['book'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-book-wrapper" > <div id="advanced-profile-book-wrapper" >
<div id="advanced-profile-book-text">Books, literature:</div> <div id="advanced-profile-book-text">Books, literature:</div>
@ -168,7 +168,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['tv'])) { if($txt = prepare_body($a->profile['tv'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-tv-wrapper" > <div id="advanced-profile-tv-wrapper" >
<div id="advanced-profile-tv-text">Television:</div> <div id="advanced-profile-tv-text">Television:</div>
@ -179,7 +179,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['film'])) { if($txt = prepare_body($a->profile['film'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-film-wrapper" > <div id="advanced-profile-film-wrapper" >
<div id="advanced-profile-film-text">Film/dance/culture/entertainment:</div> <div id="advanced-profile-film-text">Film/dance/culture/entertainment:</div>
@ -190,7 +190,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['romance'])) { if($txt = prepare_body($a->profile['romance'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-romance-wrapper" > <div id="advanced-profile-romance-wrapper" >
<div id="advanced-profile-romance-text">Love/romance:</div> <div id="advanced-profile-romance-text">Love/romance:</div>
@ -201,7 +201,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['work'])) { if($txt = prepare_body($a->profile['work'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-work-wrapper" > <div id="advanced-profile-work-wrapper" >
<div id="advanced-profile-work-text">Work/employment:</div> <div id="advanced-profile-work-text">Work/employment:</div>
@ -212,7 +212,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['education'])) { if($txt = prepare_body($a->profile['education'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-education-wrapper" > <div id="advanced-profile-education-wrapper" >
<div id="advanced-profile-education-text">School/education:</div> <div id="advanced-profile-education-text">School/education:</div>

View file

@ -113,7 +113,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['about'])) { if($txt = prepare_body($a->profile['about'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-about-wrapper" > <div id="advanced-profile-about-wrapper" >
<div id="advanced-profile-about-text">About:</div> <div id="advanced-profile-about-text">About:</div>
@ -124,7 +124,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['interest'])) { if($txt = prepare_body($a->profile['interest'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-interest-wrapper" > <div id="advanced-profile-interest-wrapper" >
<div id="advanced-profile-interest-text">Hobbies/Interests:</div> <div id="advanced-profile-interest-text">Hobbies/Interests:</div>
@ -135,7 +135,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['contact'])) { if($txt = prepare_body($a->profile['contact'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-contact-wrapper" > <div id="advanced-profile-contact-wrapper" >
<div id="advanced-profile-contact-text">Contact information and Social Networks:</div> <div id="advanced-profile-contact-text">Contact information and Social Networks:</div>
@ -146,7 +146,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['music'])) { if($txt = prepare_body($a->profile['music'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-music-wrapper" > <div id="advanced-profile-music-wrapper" >
<div id="advanced-profile-music-text">Musical interests:</div> <div id="advanced-profile-music-text">Musical interests:</div>
@ -157,7 +157,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['book'])) { if($txt = prepare_body($a->profile['book'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-book-wrapper" > <div id="advanced-profile-book-wrapper" >
<div id="advanced-profile-book-text">Books, literature:</div> <div id="advanced-profile-book-text">Books, literature:</div>
@ -168,7 +168,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['tv'])) { if($txt = prepare_body($a->profile['tv'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-tv-wrapper" > <div id="advanced-profile-tv-wrapper" >
<div id="advanced-profile-tv-text">Television:</div> <div id="advanced-profile-tv-text">Television:</div>
@ -179,7 +179,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['film'])) { if($txt = prepare_body($a->profile['film'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-film-wrapper" > <div id="advanced-profile-film-wrapper" >
<div id="advanced-profile-film-text">Film/dance/culture/entertainment:</div> <div id="advanced-profile-film-text">Film/dance/culture/entertainment:</div>
@ -190,7 +190,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['romance'])) { if($txt = prepare_body($a->profile['romance'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-romance-wrapper" > <div id="advanced-profile-romance-wrapper" >
<div id="advanced-profile-romance-text">Love/romance:</div> <div id="advanced-profile-romance-text">Love/romance:</div>
@ -201,7 +201,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['work'])) { if($txt = prepare_body($a->profile['work'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-work-wrapper" > <div id="advanced-profile-work-wrapper" >
<div id="advanced-profile-work-text">Work/employment:</div> <div id="advanced-profile-work-text">Work/employment:</div>
@ -212,7 +212,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['education'])) { if($txt = prepare_body($a->profile['education'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-education-wrapper" > <div id="advanced-profile-education-wrapper" >
<div id="advanced-profile-education-text">School/education:</div> <div id="advanced-profile-education-text">School/education:</div>

View file

@ -113,7 +113,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['about'])) { if($txt = prepare_body($a->profile['about'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-about-wrapper" > <div id="advanced-profile-about-wrapper" >
<div id="advanced-profile-about-text">Informazioni varie:</div> <div id="advanced-profile-about-text">Informazioni varie:</div>
@ -124,7 +124,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['interest'])) { if($txt = prepare_body($a->profile['interest'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-interest-wrapper" > <div id="advanced-profile-interest-wrapper" >
<div id="advanced-profile-interest-text">Hobbie/Interessi:</div> <div id="advanced-profile-interest-text">Hobbie/Interessi:</div>
@ -135,7 +135,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['contact'])) { if($txt = prepare_body($a->profile['contact'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-contact-wrapper" > <div id="advanced-profile-contact-wrapper" >
<div id="advanced-profile-contact-text">Informazioni su contatti e Social Networks:</div> <div id="advanced-profile-contact-text">Informazioni su contatti e Social Networks:</div>
@ -146,7 +146,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['music'])) { if($txt = prepare_body($a->profile['music'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-music-wrapper" > <div id="advanced-profile-music-wrapper" >
<div id="advanced-profile-music-text">Interessi musicali:</div> <div id="advanced-profile-music-text">Interessi musicali:</div>
@ -157,7 +157,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['book'])) { if($txt = prepare_body($a->profile['book'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-book-wrapper" > <div id="advanced-profile-book-wrapper" >
<div id="advanced-profile-book-text">Libri, letteratura:</div> <div id="advanced-profile-book-text">Libri, letteratura:</div>
@ -168,7 +168,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['tv'])) { if($txt = prepare_body($a->profile['tv'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-tv-wrapper" > <div id="advanced-profile-tv-wrapper" >
<div id="advanced-profile-tv-text">Televisione:</div> <div id="advanced-profile-tv-text">Televisione:</div>
@ -179,7 +179,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['film'])) { if($txt = prepare_body($a->profile['film'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-film-wrapper" > <div id="advanced-profile-film-wrapper" >
<div id="advanced-profile-film-text">Film/danza/cultura/intrattenimento:</div> <div id="advanced-profile-film-text">Film/danza/cultura/intrattenimento:</div>
@ -190,7 +190,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['romance'])) { if($txt = prepare_body($a->profile['romance'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-romance-wrapper" > <div id="advanced-profile-romance-wrapper" >
<div id="advanced-profile-romance-text">Amore/romanticismo:</div> <div id="advanced-profile-romance-text">Amore/romanticismo:</div>
@ -201,7 +201,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['work'])) { if($txt = prepare_body($a->profile['work'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-work-wrapper" > <div id="advanced-profile-work-wrapper" >
<div id="advanced-profile-work-text">Lavoro/impiego:</div> <div id="advanced-profile-work-text">Lavoro/impiego:</div>
@ -212,7 +212,7 @@ $o .= <<< EOT
EOT; EOT;
} }
if($txt = bbcode($a->profile['education'])) { if($txt = prepare_body($a->profile['education'])) {
$o .= <<< EOT $o .= <<< EOT
<div id="advanced-profile-education-wrapper" > <div id="advanced-profile-education-wrapper" >
<div id="advanced-profile-education-text">Scuola/educazione:</div> <div id="advanced-profile-education-text">Scuola/educazione:</div>