Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 14740 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 14740 Rev 15351
Línea 203... Línea 203...
203
        }
203
        }
204
    }
204
    }
Línea 205... Línea 205...
205
 
205
 
206
    private function renderFeed($feed, $now)
206
    private function renderFeed($feed, $now)
207
    {
-
 
208
        
207
    {
209
        $sandbox = $this->config['leaderslinked.runmode.sandbox'];
-
 
210
        if($sandbox) {
-
 
211
            $company_profile_url = $this->config['leaderslinked.frontend.sandbox_company_profile'];
-
 
212
            $user_profile_url = $this->config['leaderslinked.frontend.sandbox_user_profile'];
-
 
213
            
-
 
214
        } else {
-
 
215
            $company_profile_url = $this->config['leaderslinked.frontend.production_company_profile'];
208
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
216
            $user_profile_url = $this->config['leaderslinked.frontend.production_user_profile'];
-
 
Línea 217... Línea 209...
217
        } 
209
        $network = $currentNetworkPlugin->getNetwork();
218
 
210
 
Línea 219... Línea 211...
219
        $userMapper = UserMapper::getInstance($this->adapter);
211
        $userMapper = UserMapper::getInstance($this->adapter);
220
        $user = $userMapper->fetchOne($feed->user_id);
212
        $user = $userMapper->fetchOne($feed->user_id);
221
        
213
        
222
        $item['owner_time_elapse'] = Functions::timeAgo( $feed->added_on, $now);
214
        $item['owner_time_elapse'] = Functions::timeAgo( $feed->added_on, $now);
223
        $item['feed_priority'] = $feed->priority;
215
        $item['feed_priority'] = $feed->priority;
224
        $item['owner_url'] =  str_replace('[uuid]', $user->uuid, $user_profile_url);
216
        $item['owner_url'] = 'https://'. $network->main_hostname . '/profile/view/' . $user->uuid,
225
        $item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image]);
217
        $item['owner_image'] = $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image]);
226
        $item['owner_name'] = $user->first_name . ' ' . $user->last_name;    
218
        $item['owner_name'] = $user->first_name . ' ' . $user->last_name;