Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 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;
12
$js = <<<JS
13
	const backendVars = {
14
		post: {
15
      id: '$id',
16
      uuid: '$uuid',
17
      title: '$title',
18
      description: `$description`,
19
      url: '$url',
20
      date: '$date',
21
      status: '$status',
22
      image: '$image',
23
      file: '$file',
24
      addedOn: '$addedOn'
25
    }
26
	}
27
JS;
28
$this->inlineScript()->appendScript($js);
29
$this->inlineScript()->appendFile('/react-bundles/postView/postViewBundle.js');
30
?>
31
 
32
<div id="react-post-view">
33
  <div class="process-comm" id="paginator-process-comm">
34
    <div class="spinner">
35
      <div class="bounce1"></div>
36
      <div class="bounce2"></div>
37
      <div class="bounce3"></div>
38
    </div>
39
  </div>
40
</div>