Diferencia entre revisiones de «Tema limpio (clean)»

De MoodleDocs
m (tidy up)
m (tidy up)
Línea 7: Línea 7:
==Empezando==
==Empezando==


From your Moodle '''theme''' directory '''right click''' on the '''clean''' theme and then '''''copy''' and  '''paste''''' back into your Moodle '''theme''' directory. You should now have a folder called '''Copy of clean'''. If you '''right click''' this folder you are given the option to '''Rename''' it. So rename this folder to your choosen theme name, using only lower case letters, and if needed, underscores. For the purpose of this tutorial we will call the theme 'cleantheme'.
Desde su directorio de Moodle '''theme''' haga un '''click derecho''' sobre del tema '''clean''' y entonces '''''cópielo''' y '''péguelo''''' de regreso a su directorio de Moodle '''theme'''. Usted ahora debería de tener una carpeta llamada  '''Copia de clean'''. Si Usted hace un '''click derecho''' sobre esta carpeta, se le ofrece la opción para '''Renombrar''' la carpeta. Así pues, renombre ésta carpeta al nombre elegido para su tema, usando únicamente letras minúsculas, y en caso necesario, el guión bajop (_) . Para el propósito de este tutorial, a éste tema le llamaremos 'cleantheme'.


On opening 'cleantheme' you will find several files and sub-directories which have files within them.
Al abrir 'cleantheme' Usted encontrará varios archivos y sub-directorios que tienen archivos dentro.


These are:
Éstos son:
; config.php :  Where all the theme configurations are made. ''(contains some elements that require renaming)''
; config.php :  Where all the theme configurations are made. ''(contains some elements that require renaming)''
; lib.php :  Where all the functions for the themes settings are found. ''(contains some elements that require renaming)''
; lib.php :  Where all the functions for the themes settings are found. ''(contains some elements that require renaming)''
Línea 27: Línea 27:
==Cambiando nombre a elementos==
==Cambiando nombre a elementos==


The problem when '''cloning''' a theme is that you need to rename all those instances where the old theme name occurs, in this case '''clean'''. So using the above list as a guide, search through and change all the instances of the theme name 'clean' to 'cleantheme'. This includes the filename of the lang/en/theme_clean.php. You need to change this to 'theme_cleantheme.php'.
El problema al '''clonar''' un tema es que Usted necesita renombrar todas las instancias en donde ocurra el nombre del tema antiguo, en este caso '''clean'''. Así pues, usando la lista superior como una guía, busque concienzudamente y cambie todas las intancias del nombre del tema 'clean' a 'cleantheme'. Ésto incluye el nombredearchivo de lang/en/theme_clean.php. Usted necesita cambiar éste a 'theme_cleantheme.php'.


==Instalando su tema==
==Instalando su tema==


Once all the changes to the name have been made, you can safely install the theme. If you are already logged in just refreshing the browser should trigger your Moodle site to begin the install 'Plugins Check'. If not then navigate to Administration > Notifications.
Una vez que haya hecho todos los cambios al nombre, Usted puede instalar el tema con seguridad. Si Usted ya está ingresado al sitio, solamente refrescando al navewgador debería de disparar a su sitio Moodle para que empiece la "Revisión de Plugins" para instalaciín. Si no fuera así, entonces navegue hacia Administración > Notificaciones.
 
Una vez que su tema esté exitosamente instalado, Usted puede seleccionarlo y empezar a modificarlo usando la página de configuraciones personalizadas encontrada al navegar a Administración > Administración del sitio > Apariencia > Temas >> y entonces elegir sobre (Cleantheme) o cómo Usted hubiera renombrado a su tema, desde la lista de nombres de temas que aparecen en éste punto en el bloque lateral.


Once your theme is successfully installed you can select it and begin to modify it using the custom settings page found by navigating to Administration > Site Administration > Appearance > Themes >> and then click on (Cleantheme) or whatever you renamed your theme to, from the list of theme names that appear at this point in the side block.


[[Category:Temas]]
[[Category:Temas]]


[[en:Clean theme]]
[[en:Clean theme]]

Revisión del 23:47 13 may 2013

Moodle 2.5


Éste documento describe cómo copiar y personalizar el tema gráfico Limpio (Clean) (bootstrapbase) para que Usted pueda trabajar en él y crear un tema suyo propio. Se asume que Usted tiene algo de comprensión acerca de cómo funcionan los temas gráficos en Moodle 2.5, y un conocimiento básico sobre HTML y CSS. También, debido al rápido desarrollo dentro de Moodle, que resulta en un número de versiones disponibles, como son 2.3.x y 2.4.x, y 2.5.x, es muy importante que entienda que éste tutorial sólamente es válido para el tema Limpio (Clean) para Moodle 2.5+.

Empezando

Desde su directorio de Moodle theme haga un click derecho sobre del tema clean y entonces cópielo y péguelo de regreso a su directorio de Moodle theme. Usted ahora debería de tener una carpeta llamada Copia de clean. Si Usted hace un click derecho sobre esta carpeta, se le ofrece la opción para Renombrar la carpeta. Así pues, renombre ésta carpeta al nombre elegido para su tema, usando únicamente letras minúsculas, y en caso necesario, el guión bajop (_) . Para el propósito de este tutorial, a éste tema le llamaremos 'cleantheme'.

Al abrir 'cleantheme' Usted encontrará varios archivos y sub-directorios que tienen archivos dentro.

Éstos son:

config.php
Where all the theme configurations are made. (contains some elements that require renaming)
lib.php
Where all the functions for the themes settings are found. (contains some elements that require renaming)
settings.php
Where all the setting for this theme are created. (contains some elements that require renaming)
version.php
Where the version number and plugin componant information is kept. (contains some elements that require renaming)
/lang/
This directory contains all language sub-directories for other languages if and when you want to add them.
/lang/en/
This sub-directory contains your language files, in this case English.
/lang/en/theme_clean.php
This file contains all the language strings for your theme. (contains some elements that require renaming as well as the filename itself)
/layout/
This directory contains all the layout files for this theme.
/layout/general.php
Layout file for front page and general pages combined.
/style/
This directory contains all the CSS files for this theme.
/style/custom.css
This is where all the settings CSS is generated.
/pix/
This directory contains a screen shot of this theme as well as a favicon and any images used in the theme.

Cambiando nombre a elementos

El problema al clonar un tema es que Usted necesita renombrar todas las instancias en donde ocurra el nombre del tema antiguo, en este caso clean. Así pues, usando la lista superior como una guía, busque concienzudamente y cambie todas las intancias del nombre del tema 'clean' a 'cleantheme'. Ésto incluye el nombredearchivo de lang/en/theme_clean.php. Usted necesita cambiar éste a 'theme_cleantheme.php'.

Instalando su tema

Una vez que haya hecho todos los cambios al nombre, Usted puede instalar el tema con seguridad. Si Usted ya está ingresado al sitio, solamente refrescando al navewgador debería de disparar a su sitio Moodle para que empiece la "Revisión de Plugins" para instalaciín. Si no fuera así, entonces navegue hacia Administración > Notificaciones.

Una vez que su tema esté exitosamente instalado, Usted puede seleccionarlo y empezar a modificarlo usando la página de configuraciones personalizadas encontrada al navegar a Administración > Administración del sitio > Apariencia > Temas >> y entonces elegir sobre (Cleantheme) o cómo Usted hubiera renombrado a su tema, desde la lista de nombres de temas que aparecen en éste punto en el bloque lateral.