Exemple #1
0
 public function devuelve_ruta()
 {
     $tipo_controller = new Tipo_controller();
     $contenido_controller = new ContenidoController();
     $standar_controller = new Standar_controller();
     $datos_generales = $standar_controller->obtener_datos_generales();
     if ($this->es_contenido() && $this->es_pagina()) {
         $contenido = $contenido_controller->get_contenido_by_slug($this->segmento[0]);
         if (file_exists(RUTA_PLANTILLA . '/paginas/pagina_' . $this->segmento[0] . '.php')) {
             get_cabecera($contenido, $datos_generales);
             require_once RUTA_PLANTILLA . '/paginas/pagina_' . $this->segmento[0] . '.php';
             get_pie($datos_generales);
         } else {
             require_once RUTA_PLANTILLA . '/paginas/pagina.php';
         }
     } else {
         if ($this->es_carga_ajax()) {
             require_once RUTA_PLANTILLA . '/paginas/' . $this->segmento[0];
         } else {
             $contenido = new Contenido();
             get_cabecera($contenido, $datos_generales);
             require_once RUTA_PLANTILLA . '/paginas/pagina_404.php';
             get_pie($datos_generales);
         }
     }
 }
Exemple #2
0
<?php

/**
 * theme.css.php -> genera los colores dinamiacamente cogidos desde la base de datos y definidos por el usuario.
 * 
 * 
 * @author Brais Calvo García <*****@*****.**>
 * 
 * @version 0.1
 * 
 */
header('Content-Type: text/css');
include_once '../../../config.php';
include_once RUTA_CONTROLLERS . '/Standar_controller.php';
$standar_controller = new Standar_controller();
$datos_generales = $standar_controller->obtener_datos_generales();
?>


.wg-color_extranjeria{ color: #E08513; font-size: 22px !important; }

.wg-color_empresarial{ color: #B1002E; font-size: 22px !important; }

.wg-color_laboral{ color: #1C6689; font-size: 22px !important; }

.wg-color_tributario{ color: #8A277A; font-size: 22px !important; }

.wg-vertical-align{ vertical-align: sub; font-size: 22px !important; }