Rev 5433 | Rev 5914 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?phpuse 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 = <<<JSconst 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 = {VIEW_LESS: 'LABEL_VIEW_LESS',VIEW_MORE: 'LABEL_VIEW_MORE'}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>