Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5118 | Rev 5765 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4808 efrain 1
<?php
2
 
3
$js = <<<JS
4
	const backendVars = {
5
		post: {
6
          id: '$id',
7
          uuid: '$uuid',
8
          title: '$title',
9
          description: `$description`,
10
          url: '$url',
11
          date: '$date',
12
          status: '$status',
13
          image: '$image',
14
          file: '$file',
15
          addedOn: '$added_on',
16
          share_external_url: '$share_external_url',
17
          total_share_external: '$total_share_external',
18
          share_increment_external_counter_url: '$share_increment_external_counter_url',
19
          is_liked:  $is_liked,
20
          like_url: '$like_url',
21
          unlike_url : '$unlike_url',
22
          comments_url: '$comments_url',
23
          comments_add_url: '$comments_add_url',
24
 
25
        }
26
	}
5118 stevensc 27
 
28
  const LABELS = {
29
    VIEW_MORE: 'LABEL_VIEW_MORE',
30
    NOT_AVAILABLE_POSTS: 'LABEL_NOT_AVAILABLE_POSTS',
31
    POSTS: 'LABEL_POSTS',
32
    COMMENTS: 'LABEL_COMMENTS',
33
    LIKE: 'LABEL_LIKE',
34
    UNLIKE: 'LABEL_UNLIKE',
35
    DELETE: 'LABEL_DELETE',
36
    ACCEPT: 'LABEL_ACCEPT',
5120 stevensc 37
    WRITE_A_COMMENT: 'LABEL_WRITE_A_COMMENT',
38
    SENDS: 'LABEL_SENDS'
5118 stevensc 39
  }
40
 
4808 efrain 41
JS;
42
$this->inlineScript()->appendScript($js);
43
$this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
4817 stevensc 44
$this->headLink()->appendStylesheet('/react-bundles/postView/main.css');
4808 efrain 45
$this->inlineScript()->appendFile('/react-bundles/postView/postViewBundle.js');
46
?>
47
 
48
<div id="react-post-view" style="min-height: 80vh;">
49
  <div class="process-comm" id="paginator-process-comm">
50
    <div class="spinner">
51
      <div class="bounce1"></div>
52
      <div class="bounce2"></div>
53
      <div class="bounce3"></div>
54
    </div>
55
  </div>
56
</div>