Ejemplo n.º 1
0
 /**
  * Create final step from the intro image
  */
 private static function makeFinalStep($intro, $px, $text)
 {
     $newStep = '';
     preg_match('@\\[\\[Image[^\\]]*\\]\\]@', $intro, $matches);
     $introimg = $matches[0];
     if (!empty($introimg)) {
         $orientation = 'center';
         $introimg = Wikitext::changeImageTag($introimg, $px, $orientation);
         $newStep = "\n" . '#' . $text . '<br><br>' . $introimg;
     }
     return $newStep;
 }