Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

<?php

$js = <<<JS
        const backendVars = {
                post: {
          id: '$id',
          uuid: '$uuid',
          title: '$title',
          description: `$description`,
          url: '$url',
          date: '$date',
          status: '$status',
          image: '$image',
          file: '$file',
          addedOn: '$added_on',
          share_external_url: '$share_external_url',
          total_share_external: '$total_share_external',
          share_increment_external_counter_url: '$share_increment_external_counter_url',
          is_liked:  $is_liked,
          like_url: '$like_url',
          unlike_url : '$unlike_url',
          comments_url: '$comments_url',
          comments_add_url: '$comments_add_url',

        }
        }

  const LABELS = {
    VIEW_MORE: 'LABEL_VIEW_MORE',
    NOT_AVAILABLE_POSTS: 'LABEL_NOT_AVAILABLE_POSTS',
    POSTS: 'LABEL_POSTS',
    COMMENTS: 'LABEL_COMMENTS',
    LIKE: 'LABEL_LIKE',
    UNLIKE: 'LABEL_UNLIKE',
    DELETE: 'LABEL_DELETE',
    ACCEPT: 'LABEL_ACCEPT',
    WRITE_A_COMMENT: 'LABEL_WRITE_A_COMMENT',
    SENDS: 'LABEL_SENDS'
  }

JS;
$this->inlineScript()->appendScript($js);
$this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
$this->headLink()->appendStylesheet('/react-bundles/postView/main.css');
$this->inlineScript()->appendFile('/react-bundles/postView/postViewBundle.js');
?>

<div id="react-post-view" style="min-height: 80vh;">
  <div class="process-comm" id="paginator-process-comm">
    <div class="spinner">
      <div class="bounce1"></div>
      <div class="bounce2"></div>
      <div class="bounce3"></div>
    </div>
  </div>
</div>