Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6605 Rev 6614
Línea 100... Línea 100...
100
                    
100
                    
101
                }
101
                }
Línea 102... Línea 102...
102
            }
102
            }
-
 
103
            
Línea 103... Línea 104...
103
            
104
            if($isJson) {
104
            if($isJson) {
105
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
105
                
106
                
106
                $feed_uuid = $this->params()->fromRoute('feed');
107
                $feed_uuid = $this->params()->fromRoute('feed');
Línea 156... Línea 157...
156
                    $routeTimeline = $this->url()->fromRoute('feed/timeline', ['id' => $currentUser->uuid, 'type' => 'user', 'feed' => $feed->uuid]);
157
                    $routeTimeline = $this->url()->fromRoute('feed/timeline', ['id' => $currentUser->uuid, 'type' => 'user', 'feed' => $feed->uuid]);
157
                } else {
158
                } else {
158
                    $routeTimeline = $this->url()->fromRoute('feed/timeline', ['id' => $currentUser->uuid, 'type' => 'user']);
159
                    $routeTimeline = $this->url()->fromRoute('feed/timeline', ['id' => $currentUser->uuid, 'type' => 'user']);
159
                }
160
                }
Línea -... Línea 161...
-
 
161
                
-
 
162
                $allowDailyPulse    = $acl->isAllowed($currentUser->usertype_id, 'daily-pulse') ? 1 : 0;
-
 
163
                if ($allowDailyPulse) {
-
 
164
                    $routeDailyPulse = $this->url('daily-pulse');
-
 
165
                } else {
-
 
166
                    $routeDailyPulse = '';
-
 
167
                }
-
 
168
                
-
 
169
                
160
                
170
                
161
                return new JsonModel([
171
                return new JsonModel([
162
                    'user_uuid' => $user->uuid,
172
                    'user_uuid' => $user->uuid,
163
                    'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
173
                    'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]),
164
                    'fullname' => trim($user->first_name . ' ' . $user->last_name),
174
                    'fullname' => trim($user->first_name . ' ' . $user->last_name),
Línea 167... Línea 177...
167
                    'visits' => $visits,
177
                    'visits' => $visits,
168
                    'connections' => $connections,
178
                    'connections' => $connections,
169
                    'image_size' => $image_size,
179
                    'image_size' => $image_size,
170
                    'feed' => '',
180
                    'feed' => '',
171
                    'routeTimeline' => $routeTimeline,
181
                    'routeTimeline' => $routeTimeline,
-
 
182
                    'routeDailyPulse' => $routeDailyPulse,
172
                    'moodle_name' => $currentNetwork->moodle_name ?  $currentNetwork->moodle_name : '',
183
                    'moodle_name' => $currentNetwork->moodle_name ?  $currentNetwork->moodle_name : '',
173
                    'moodle_image' => $this->url()->fromRoute('storage-network', ['type' => 'moodle']),
184
                    'moodle_image' => $this->url()->fromRoute('storage-network', ['type' => 'moodle']),
174
                    'microlearning_appstore' => $currentNetwork->microlearning_appstore ?  $currentNetwork->microlearning_appstore : '' ,
185
                    'microlearning_appstore' => $currentNetwork->microlearning_appstore ?  $currentNetwork->microlearning_appstore : '' ,
175
                    'microlearning_playstore' => $currentNetwork->microlearning_playstore ? $currentNetwork->microlearning_playstore : '',
186
                    'microlearning_playstore' => $currentNetwork->microlearning_playstore ? $currentNetwork->microlearning_playstore : '',