Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15347 Rev 15351
Línea 64... Línea 64...
64
    public function indexAction()
64
    public function indexAction()
65
    {
65
    {
66
        $currentUserPlugin = $this->plugin('currentUserPlugin');
66
        $currentUserPlugin = $this->plugin('currentUserPlugin');
67
        $currentUser = $currentUserPlugin->getUser();
67
        $currentUser = $currentUserPlugin->getUser();
Línea -... Línea 68...
-
 
68
        
-
 
69
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
70
        $network = $currentNetworkPlugin->getNetwork();
68
        
71
        
69
        $request = $this->getRequest();
72
        $request = $this->getRequest();
Línea 70... Línea 73...
70
        if($request->isGet()) {
73
        if($request->isGet()) {
Línea 88... Línea 91...
88
                }
91
                }
89
            }
92
            }
Línea 90... Línea 93...
90
            
93
            
Línea 91... Línea -...
91
            if($isJson) {
-
 
92
                
-
 
93
                if($this->config['leaderslinked.runmode.sandbox']) {
-
 
94
                    $url_frontend = $this->config['leaderslinked.frontend.sandbox_post'];
-
 
95
                } else {
-
 
96
                    $url_frontend = $this->config['leaderslinked.frontend.production_post'];
-
 
Línea 97... Línea -...
97
                }
-
 
98
                
94
            if($isJson) {
99
 
95
                
Línea 100... Línea 96...
100
                
96
 
101
                $search = $this->params()->fromQuery('search', []);
97
                $search = $this->params()->fromQuery('search', []);
Línea 128... Línea 124...
128
                        'active' => $record->status ,
124
                        'active' => $record->status ,
129
                        'date' => $dt->format('d/m/Y'),
125
                        'date' => $dt->format('d/m/Y'),
130
                        'actions' => [
126
                        'actions' => [
131
                            'link_edit' => $this->url()->fromRoute('publications/posts/edit', ['id' => $record->uuid ]),
127
                            'link_edit' => $this->url()->fromRoute('publications/posts/edit', ['id' => $record->uuid ]),
132
                            'link_delete' => $this->url()->fromRoute('publications/posts/delete', ['id' => $record->uuid ]),
128
                            'link_delete' => $this->url()->fromRoute('publications/posts/delete', ['id' => $record->uuid ]),
133
                            'link_view' => str_replace('[uuid]', $record->uuid, $url_frontend),
129
                            'link_view' => 'https://'. $network->main_hostname . '/post/' . $record->uuid,
134
                        ] 
130
                        ] 
135
                    ];
131
                    ];
Línea 136... Línea 132...
136
                    
132
                    
137
                    array_push($items, $item);
133
                    array_push($items, $item);