Pārlūkot izejas kodu

first milestone in developing box content module

dev01
Dominik Schmidt-Philipp pirms 4 gadiem
vecāks
revīzija
52dd56cc38
1 mainītis faili ar 20 papildinājumiem un 0 dzēšanām
  1. +20
    -0
      app/modules/filesinfolders.php

+ 20
- 0
app/modules/filesinfolders.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt