visuddhinanda 2 лет назад
Родитель
Сommit
db452e4cc9
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      app/Http/Api/TemplateRender.php

+ 8 - 0
app/Http/Api/TemplateRender.php

@@ -459,6 +459,8 @@ class TemplateRender{
         $title = $this->get_param($this->param,"title",3);
         $channel = $this->get_param($this->param,"channel",4,$this->channel_id[0]);
         $style = $this->get_param($this->param,"style",5);
+        $book = $this->get_param($this->param,"book",6);
+        $paragraphs = $this->get_param($this->param,"paragraphs",7);
         $props = [
                     "type" => $type,
                     "id" => $id,
@@ -468,6 +470,12 @@ class TemplateRender{
         if(!empty($title)){
             $props['title'] = $title;
         }
+        if(!empty($book)){
+            $props['book'] = $book;
+        }
+        if(!empty($paragraphs)){
+            $props['paragraphs'] = $paragraphs;
+        }
         switch ($this->format) {
             case 'react':
                 $output = [