Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
 
3
// React components
4
// View
5
// $this->inlineScript()->appendFile('/react/profile/view/View.js', 'text/jsx');
6
 
7
// SHARED
8
//  People who viewed profile Helper
9
// $this->inlineScript()->appendFile('/react/shared/components/helper/people-viewed-profile/PeopleViewedProfile.js', 'text/jsx');
10
 
11
// months
12
$months = [
13
  'LABEL_MONTH_JANUARY',
14
  'LABEL_MONTH_FEBRUARY',
15
  'LABEL_MONTH_MARCH',
16
  'LABEL_MONTH_APRIL',
17
  'LABEL_MONTH_MAY',
18
  'LABEL_MONTH_JUNE',
19
  'LABEL_MONTH_JULY',
20
  'LABEL_MONTH_AUGUST',
21
  'LABEL_MONTH_SEPTEMBER',
22
  'LABEL_MONTH_OCTOBER',
23
  'LABEL_MONTH_NOVEMBER',
24
  'LABEL_MONTH_DECEMBER',
25
];
26
 
27
// vars to json
28
$userExperiences = json_encode($user_experiences);
29
$userEducations = json_encode($user_educations);
30
$userLanguages = json_encode($user_languages);
31
$userSkills = json_encode($user_skills);
32
 
33
$monthsJson = json_encode($months);
34
 
35
 
36
$js = <<<JS
37
const backendVars = {
38
  months: JSON.parse('$monthsJson'),
39
  userIdEncrypted: "$user_uuid",
40
  cover: "$cover",
41
  image: "$image",
42
  following: "$following",
43
  total_connections: "$total_connections",
44
  facebook: "$facebook",
45
  twitter: "$twitter",
46
  instagram: "$instagram",
47
  overview: `$overview`,
48
  userExperiences: JSON.parse('$userExperiences'),
49
  userEducations: JSON.parse('$userEducations'),
50
  formatted_address: `$formatted_address`,
51
  userLanguages: JSON.parse('$userLanguages'),
52
  userSkills: JSON.parse('$userSkills'),
3912 efrain 53
  userAptitudes: JSON.parse('$userAptitudes'),
54
  userHobbiesAndInterests: JSON.parse('$userHobbiesAndInterests'),
1 www 55
  showContact: "$show_contact",
56
  requestConnection: "$request_connection",
57
  CancelConnectionUrl: "$link_cancel",
58
  RequestConnectionUrl: "$link_request",
59
  fullName: `$full_name`,
60
  profileId: "$user_profile_id",
3121 efrain 61
  linkInmail: "$link_inmail",
1 www 62
}
63
 
64
JS;
65
$this->headLink()->appendStylesheet('/react-bundles/profile/view/main.css');
66
$this->inlineScript()->appendScript($js);
67
$this->inlineScript()->appendFile('/react-bundles/profile/view/profileViewBundle.js');
68
?>
69
 
70
<div id="react_profile_view">
71
  <div class="process-comm" id="paginator-process-comm">
72
    <div class="spinner">
73
      <div class="bounce1"></div>
74
      <div class="bounce2"></div>
75
      <div class="bounce3"></div>
76
    </div>
77
  </div>
78
</div>