Rev 4531 | Rev 5414 | 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: JSON.parse('$locationsJson'),industry: "$industry",companySize: "$company_size",foundationYear: "$foundation_year",website: "$website",timeline: '$routeTimeline'}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/templates/linkedin/dashboard/main.css');} else {$this->headLink()->appendStylesheet('/look-and-field/dashboard.css');$this->inlineScript()->appendFile('/react-bundles/company/view/companyViewBundle.js');}?><div id="react_my_connections"><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>