Browse Source

first milestone in developing box content module

dev01
parent
commit
52dd56cc38
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      app/modules/filesinfolders.php

+ 20
- 0
app/modules/filesinfolders.php View File

@@ -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);

Loading…
Cancel
Save