Example #1
0
 function servicio__ejecutar()
 {
     //Determina si el ejecutar es por este ci o por el del parent
     $imagen = toba::memoria()->get_parametro('imagen');
     if (isset($imagen)) {
         return parent::servicio__ejecutar();
     }
     $url = toba::proyecto()->get_www('img/fck_templates/');
     $salida = "\n\t\tCKEDITOR.addTemplates('default', \n\t\t{\n\t\t\timagesPath: '{$url['url']}', \n\n\t\t\ttemplates: \n\n\t\t\t\t[ \n\n\t\t\t\t\t{ \n\n\t\t\t\t\t\ttitle: 'Lineal', \n\n\t\t\t\t\t\timage: 'tabla_1_col.gif', \n\n\t\t\t\t\t\tdescription: 'Un campo debajo del otro, es el layout original' , \n\n\t\t\t\t\t\thtml: '{$this->get_template_lineal()}' \n\n\t\t\t\t\t},\n\n\t\t\t\t\t{ \n\n\t\t\t\t\t\ttitle: 'Tabla Lineal', \n\n\t\t\t\t\t\timage: 'tabla_1_col.gif', \n\n\t\t\t\t\t\tdescription: 'Un campo debajo del otro, es el layout original' , \n\n\t\t\t\t\t\thtml: '{$this->get_template_columnas(1)}' \n\n\t\t\t\t\t},\n\n\t\t\t\t\t{ \n\n\t\t\t\t\t\ttitle: 'Tabla Dos Columnas',  \n\n\t\t\t\t\t\timage: 'tabla_2_col.gif', \n\n\t\t\t\t\t\tdescription: 'Se arma una tabla tomando los campos en el orden definido, incluyendo dos campos por fila' ,  \n\n\t\t\t\t\t\thtml: '{$this->get_template_columnas(2)}' \n\n\t\t\t\t\t}, \n\n\t\t\t\t\t{ \n\n\t\t\t\t\t\ttitle: 'Tabla Tres Columnas', \n\n\t\t\t\t\t\timage: 'tabla_3_col.gif',  \n\n\t\t\t\t\t\tdescription: 'Se arma una tabla tomando los campos en el orden definido, incluyendo tres campos por fila' ,  \n\n\t\t\t\t\t\thtml: '{$this->get_template_columnas(3)}' \n\n\t\t\t\t\t} \n\n\t\t\t\t] \n\n\t\t}); ";
     echo $salida;
 }