< Back to List

",str_replace("[[","",$result)); } function stripHighLight($result){ return str_replace("}}","",str_replace("{{","",str_replace("]]","",str_replace("[[","",$result)))); } function replaceDummyImage($result){ $returnval = []; if (strpos($result,"!-") != 0){ $data = explode("\n",$result); foreach ($data as $line){ if (strpos($line,"!-") != 0){ $firstpos = strpos($line,"!-"); $lastpos = strripos($line,"-!"); $key = substr($line,$firstpos,$lastpos - $firstpos + 2); $finishedLine = str_replace($key,"img/dummy.png",$line); array_push($returnval,$finishedLine); }else{ array_push($returnval,$line); } } return implode("\n",$returnval); }else{ return $result; } } foreach ($content['Definitions'] as $defines){ foreach ($defines['Sections'] as $define){ $title = ""; if(isset($define['Title'])){$title = $define['Title'];} echo '
' . $title . '
' . $define['Description'] . '
'; echo '
' . replaceDummyImage(stripHighLight($define['HTML'])) . '
'; //echo replaceDummyImage(stripHighLight($define['HTML'])); echo '
'; } //print_r($defines['Sections']); echo '
'; } ?> Tocas UI 2.3.3 Documentation written by Yami Odymel, adapter to ArOZ Online System under ArOZ Online Project feat. IMUS Laboratory.
< Back to List