示例#1
0
    protected function formatEventFact($eventFact, $parser, $firstChildClass = '')
    {
        $refs = $this->getRefsText($eventFact, $parser, true);
        //      $sources = StructuredData::formatAsLinks((string)@$eventFact['sources']);
        //      $notes = StructuredData::formatAsLinks((string)@$eventFact['notes']);
        //      $images = StructuredData::formatAsLinks((string)@$eventFact['images']);
        $type = (string) $eventFact['type'];
        $place = (string) $eventFact['place'];
        if ($place) {
            $place = '[[Place:' . StructuredData::addBarToTitle($place) . ']]';
        }
        $desc = (string) $eventFact['desc'];
        return <<<END
<tr>
   <td class="wr-infotable-type {$firstChildClass}"><span class="wr-infotable-type">{$type}</span>{$refs}</td>
   <td class="wr-infotable-date {$firstChildClass}"><span class="wr-infotable-date">{$eventFact['date']}</span></td>
   <td class="wr-infotable-placedesc {$firstChildClass}"><span class="wr-infotable-place">{$place}</span><span class="wr-infotable-desc">{$desc}</span></td>
</tr>
END;
    }
示例#2
0
 protected function formatPlace($place)
 {
     return $place ? '[[Place:' . StructuredData::addBarToTitle($place) . ']]' : '';
 }
示例#3
0
 protected function getPlace($eventFact)
 {
     $place = (string) $eventFact['place'];
     return $place ? '[[Place:' . StructuredData::addBarToTitle($place) . ']]' : '';
 }
示例#4
0
 protected function formatFamily($value, $dummy)
 {
     $title = (string) $value['title'];
     return "[[Family:" . StructuredData::addBarToTitle($title) . ']]';
 }