Bläddra i källkod

first milestone in developing box content module

dev01
förälder
incheckning
52dd56cc38
1 ändrade filer med 20 tillägg och 0 borttagningar
  1. +20
    -0
      app/modules/filesinfolders.php

+ 20
- 0
app/modules/filesinfolders.php Visa fil

@@ -361,7 +361,27 @@ class FilesInFolders {
array_shift($request),
$toc);
break;

case 'box':
$type = $this->$request[1];
$pics = explode(":",array_shift($body));
$pic = $pics[0];
$pic_hover = count($pics) > 1 ? $pics[1] : $pic;
$cap1 = array_shift($body);
$cap2 = array_shift($body);
$cap1_hover = array_shift($body);
$cap2_hover = array_shift($body);
$body = implode("\n",$body);
if (count($request) >= 4) {
$body=str_replace([$request[2],$request[3]],["{|","|}"],$body);
$body=$this->content_element_dispatcher($body);
}
$new=sprintf("pic: %s (%s)<br>cap1: %s (%s)<br>cap2: %s (%s)<br>body:<br>%s",
$pic,$pic_hover,$cap1,$cap1_hover,$cap2,$cap2_hover,$body
);
break;

case 'calendar':
array_shift($request);
$conf = array('path', $this->folder);

Laddar…
Avbryt
Spara