Proyectos de Subversion LeadersLinked - Services

Rev

Rev 183 | Rev 191 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 183 Rev 189
Línea 507... Línea 507...
507
            } else {
507
            } else {
508
                $google_map_key  = $this->config['leaderslinked.google_map.production_api_key'];
508
                $google_map_key  = $this->config['leaderslinked.google_map.production_api_key'];
509
            }
509
            }
Línea -... Línea 510...
-
 
510
            
-
 
511
 
-
 
512
            $parts = explode('.', $currentNetwork->main_hostname);
-
 
513
            if($parts[1] === 'com') {
-
 
514
                $replace_main = false;
-
 
515
            } else {
-
 
516
                $replace_main = true;
Línea 510... Línea 517...
510
            
517
            }
-
 
518
            
511
 
519
            
-
 
520
            
-
 
521
            $logo_url = $this->url()->fromRoute('storage-network', ['type' => 'logo'],['force_canonical' => true]);
-
 
522
            if($replace_main) {
512
            
523
                $logo_url = str_replace($currentNetwork->main_hostname, $currentNetwork->service_hostname, $logo_url);
513
            
524
            }
Línea 514... Línea 525...
514
            $logo_url = $this->url()->fromRoute('storage-network', ['type' => 'logo'],['force_canonical' => true]);
525
            
Línea 515... Línea 526...
515
            $logo_url = str_replace($currentNetwork->main_hostname, $currentNetwork->service_hostname, $logo_url);
526
            
-
 
527
            if($currentNetwork->alternative_hostname) {
516
            if($currentNetwork->alternative_hostname) {
528
                $logo_url = str_replace($currentNetwork->alternative_hostname, $currentNetwork->service_hostname, $logo_url);
-
 
529
                
517
                $logo_url = str_replace($currentNetwork->alternative_hostname, $currentNetwork->service_hostname, $logo_url);
530
            }
518
                
531
            
Línea 519... Línea 532...
519
            }
532
            
Línea 520... Línea 533...
520
            
533
            $navbar_url = $this->url()->fromRoute('storage-network', ['type' => 'navbar'],['force_canonical' => true]);
-
 
534
            if($replace_main) {
521
            
535
                $navbar_url = str_replace($currentNetwork->main_hostname, $currentNetwork->service_hostname, $navbar_url);
-
 
536
            }
522
            $navbar_url = $this->url()->fromRoute('storage-network', ['type' => 'navbar'],['force_canonical' => true]);
537
            if($currentNetwork->alternative_hostname) {
523
            $navbar_url = str_replace($currentNetwork->main_hostname, $currentNetwork->service_hostname, $navbar_url);
538
                $navbar_url = str_replace($currentNetwork->alternative_hostname, $currentNetwork->service_hostname, $navbar_url);
Línea 524... Línea 539...
524
            if($currentNetwork->alternative_hostname) {
539