Rev 5913 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
use LeadersLinked\Model\Theme;
$currentNetworkHelper = $this->currentNetworkHelper();
$currentNetwork = $currentNetworkHelper->getNetwork();
// vars to json
$locationsJson = json_encode($locations);
$routeTimeline = $this->url('feed/timeline', ['id' => $company_uuid, 'type' => 'company']);
$js = <<<JS
const backendVars = {
companyId: "$company_uuid",
cover: "$cover",
image: "$image",
totalFollowers: "$total_followers",
facebook: "$facebook",
twitter: "$twitter",
instagram: "$instagram",
companyName: "$company_name",
overview: "$overview",
locations: $locationsJson,
industry: "$industry",
companySize: "$company_size",
foundationYear: "$foundation_year",
website: "$website",
timeline: '$routeTimeline'
}
const LABELS = {
MY_GROUPS: 'LABEL_MY_GROUPS',
GROUPS: 'LABEL_GROUPS',
WHAT_ARE_YOU_THINKING: 'LABEL_WHAT_ARE_YOU_THINKING',
GROUP_VIEW: 'LABEL_GROUP_VIEW',
VIEW_MORE: 'LABEL_VIEW_MORE',
VIEW_LESS: 'LABEL_VIEW_LESS',
WHO_HAS_SEEN_MY_PROFILE: 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
CONNECT_WITH: 'LABEL_CONNECT_WITH',
POSTS: 'LABEL_POSTS',
DATATABLE_EMPTY: 'LABEL_DATATABLE_EMPTY',
CONNECT: 'LABEL_CONNECT',
CANCEL: 'LABEL_CANCEL',
NOT_AVAILABLE_POSTS: 'LABEL_NOT_AVAILABLE_POSTS',
MICRO_LEARNING: 'LABEL_MICRO_LEARNING',
NOT_AVAILABLE_FEEDS: 'LABEL_NOT_AVAILABLE_FEEDS',
SEND: 'LABEL_SEND',
SHARE_A_POST: 'LABEL_SHARE_A_POST',
SHARE_WITH: 'LABEL_SHARE_WITH',
CONNECTIONS: 'LABEL_CONNECTIONS',
PUBLIC: 'LABEL_PUBLIC',
SUGGEST_GROUPS: 'LABEL_SUGGEST_GROUPS',
VIEW_RECOMMENDATIONS: 'LABEL_VIEW_RECOMMENDATIONS',
IMAGE: 'LABEL_IMAGE',
DOCUMENT: 'LABEL_DOCUMENT',
AUDIO: 'LABEL_AUDIO',
VIDEO: 'LABEL_VIDEO',
WRITE_A_POST: 'LABEL_WRITE_A_POST',
DELETE: 'LABEL_DELETE',
DOWNLOAD: 'LABEL_DOWNLOAD',
READ_MORE: 'LABEL_READ_MORE',
READ_LESS: 'LABEL_READ_LESS',
LIKE: 'LABEL_LIKE',
COMMENT: 'LABEL_COMMENT',
SHARE: 'LABEL_SHARE',
SHARED: 'LABEL_SHARED',
COMMENTS: 'LABEL_COMMENTS',
SENDS: 'LABEL_SENDS',
WRITE_A_COMMENT: 'LABEL_WRITE_A_COMMENT',
MICRO_LEARNING: 'LABEL_MICRO_LEARNING',
WRITE: 'LABEL_WRITE',
}
JS;
$this->inlineScript()->appendScript($js);
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
$this->inlineScript()->appendFile('/react-bundles/company/view/linkedinCompanyViewBundle.js');
$this->headLink()->appendStylesheet('/react-bundles/company/view/main.css');
$this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
} else {
$this->headLink()->appendStylesheet('/look-and-field/company.css');
$this->inlineScript()->appendFile('/react-bundles/company/view/companyViewBundle.js');
}
?>
<div id="react_my_company">
<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>