Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 747 Rev 754
Línea 274... Línea 274...
274
            return new JsonModel($data);
274
            return new JsonModel($data);
275
        }
275
        }
Línea 276... Línea 276...
276
        
276
        
Línea -... Línea 277...
-
 
277
    }
-
 
278
 
-
 
279
    public function themeAction()
-
 
280
    {
-
 
281
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
282
        $currentNetwork = $currentNetworkPlugin->getNetwork();
-
 
283
 
-
 
284
        $request = $this->getRequest();
-
 
285
        
-
 
286
        if(!$request->isGet()) {
-
 
287
            $data = [
-
 
288
                'success' => false,
-
 
289
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
-
 
290
            ];
-
 
291
            
Línea -... Línea 292...
-
 
292
            return new JsonModel($data);
-
 
293
        }
-
 
294
 
-
 
295
        if(!$currentNetwork) {
-
 
296
            $data = [
Línea -... Línea 297...
-
 
297
                'success' => false,
-
 
298
                'data' => 'ERROR_NETWORK_NOT_FOUND'
-
 
299
            ];
-
 
300
 
-
 
301
            return new JsonModel($data);
-
 
302
        }
-
 
303
 
-
 
304
        $data = [
-
 
305
            'success' => true,
-
 
306
            'theme' => [
-
 
307
                'bg-color' => $currentNetwork->css_bg_color,
-
 
308
                'body-bg-color' => $currentNetwork->css_body_bg_color,
-
 
309
                'bg-color-secondary' => $currentNetwork->css_bg_color_secondary,
-
 
310
                'font-color' => $currentNetwork->css_font_color,
-
 
311
                'font-color-hover' => $currentNetwork->css_font_color_hover,
-
 
312
                'title-color' => $currentNetwork->css_title_color,
-
 
313
                'subtitle-color' => $currentNetwork->css_subtitle_color,
-
 
314
                'icons-color' => $currentNetwork->css_icons_color,
-
 
315
                'button-bg' => $currentNetwork->css_button_bg,
-
 
316
                'button-bg-hover' => $currentNetwork->css_button_bg_hover,
-
 
317
                'button-text-color' => $currentNetwork->css_button_text_color,
-
 
318
                'button-bg-secondary' => $currentNetwork->css_button_bg_secondary,
-
 
319
                'button-bg-secondary-hover' => $currentNetwork->css_button_bg_secondary_hover,
-
 
320
                'button-text-color-secondary' => $currentNetwork->css_button_text_color_secondary,
-
 
321
                'button-bg-tertiary' => $currentNetwork->css_button_bg_tertiary,
-
 
322
                'button-text-color-tertiary' => $currentNetwork->css_button_text_color_tertiary,
-
 
323
                'border-primary' => $currentNetwork->css_border_primary,
-
 
324
                'border-trasnparent' => $currentNetwork->css_border_trasnparent,
-
 
325
                'chat-received' => $currentNetwork->css_chat_received,
-
 
326
                'chat-send' => $currentNetwork->css_chat_send,
-
 
327
                'chat-color' => $currentNetwork->css_chat_color,
-
 
328
                'light-gray' => $currentNetwork->css_light_gray,
-
 
329
                'gray' => $currentNetwork->css_gray,
-
 
330
                'danger' => $currentNetwork->css_danger,
-
 
331
                'danger-hover' => $currentNetwork->css_danger_hover,
-
 
332
                'online-green' => $currentNetwork->css_online_green,
-
 
333
                'border-gray-primary' => $currentNetwork->css_border_gray_primary,
-
 
334
                'white' => $currentNetwork->css_white,
-
 
335
                'white-backdrop' => $currentNetwork->css_white_backdrop,
-
 
336
                'border-radius' => $currentNetwork->css_border_radius,
-
 
337
                'light-shadow' => $currentNetwork->css_light_shadow,
-
 
338
                'shadow' => $currentNetwork->css_shadow
-
 
339
            ]
Línea 277... Línea 340...
277
    }
340
        ];
278
 
341