Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 3298
Línea 1... Línea 1...
1
<?php
1
<?php
2
$id = $post->id;
-
 
3
$uuid = $post->uuid;
-
 
4
$title = $post->title;
-
 
5
$description = $post->description;
-
 
6
$url = $post->url;
-
 
7
$date = $post->date;
-
 
8
$status = $post->status;
-
 
9
$image = $post->image;
-
 
10
$file = $post->file;
-
 
11
$addedOn = $post->added_on;
-
 
-
 
2
 
12
$js = <<<JS
3
$js = <<<JS
13
	const backendVars = {
4
	const backendVars = {
14
		post: {
5
		post: {
15
      id: '$id',
6
      id: '$id',
16
      uuid: '$uuid',
7
      uuid: '$uuid',
Línea 19... Línea 10...
19
      url: '$url',
10
      url: '$url',
20
      date: '$date',
11
      date: '$date',
21
      status: '$status',
12
      status: '$status',
22
      image: '$image',
13
      image: '$image',
23
      file: '$file',
14
      file: '$file',
24
      addedOn: '$addedOn'
15
      addedOn: '$added_on',
-
 
16
     'share_external_url': '$share_external_url',
25
    }
17
    }
26
	}
18
	}
27
JS;
19
JS;
28
$this->inlineScript()->appendScript($js);
20
$this->inlineScript()->appendScript($js);
29
$this->inlineScript()->appendFile('/react-bundles/postView/postViewBundle.js');
21
$this->inlineScript()->appendFile('/react-bundles/postView/postViewBundle.js');